ImportBot Posted June 19, 2015 Author Share Posted June 19, 2015 Originally Posted by God_Zilla*: PapaCharlie9, LCARSx64 Thanks for the answer! We will be patiently wait. Thank you! * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted June 20, 2015 Author Share Posted June 20, 2015 Originally Posted by )RAG()N*: The following will display a message each time a player leaves the server when the number of players is less than a given amount (change the value and message highlighted in red to meet your requirements): Show Message When Reduced Population Create a new limit to evaluate OnLeave. Set action to None. Set first_check to this Code: Code: int iCount = 20; String sMsg = "Message to display!"; if (server.PlayerCount < iCount) plugin.SendGlobalMessage(sMsg); return false; Is that what you were after? Is it possible to set it to display the message at set time intervals like every 3mins instead of OnLeave? Thanks for your help. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted June 20, 2015 Author Share Posted June 20, 2015 Originally Posted by LCARSx64*: Is it possible to set it to display the message at set time intervals like every 3mins instead of OnLeave? Thanks for your help. Use the same code but change the trigger to OnIntervalServer and set the evaluation_interval to 180. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted June 20, 2015 Author Share Posted June 20, 2015 Originally Posted by )RAG()N*: Use the same code but change the trigger to OnIntervalServer and set the evaluation_interval to 180.Thank Mate,, Great work * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted June 23, 2015 Author Share Posted June 23, 2015 Originally Posted by pspjim*: Hi LCARSx64, I am receiving the following error: [09:00:38 50] [insane Limits] Thread(settings): Compiling Limit #1 - kdrrank - OnKill [09:00:38 53] [insane Limits] Thread(settings): ERROR: 1 error compiling Code [09:00:38 53] [insane Limits] Thread(settings): ERROR: (CS1010, line: 55, column: 44): Newline in constant is there anything I needed to switch on or off inadvance? I currently have the plugin running without any restrictions. virtural mode true direct fetch true slow weapon stats false statslog false custom lists false custome smtp false custome storage false custom twitter false custom privacy policy false hide sections true limit state enabled evaluation OnKill first check code second check disabled action none Use this: Rank && Sniper Excluder Create a new limit to evaluate OnKill. Set action to None. Set first_check to this Code: Code: // Rank & Sniper Excluder - Limit 1 of 1 // v1.0 - OnKill - first_check // String msg = ""; bool isAdmin = false; bool bKill = false; bool bKick = false; bool bBan = false; bool bMove = false; bool bLevel = false; if (plugin.CheckAccount(killer.Name, out bKill, out bKick, out bBan, out bMove, out bLevel)) { if (bKill && bKick && bBan && bMove && bLevel) isAdmin = true; } if (isAdmin || plugin.isInWhitelist(killer.Name)) return false; if (killer.Rank > 100 || killer.Kdr > 2.5) { msg = "NOOB ONLY SERVER!"; plugin.SendPlayerMessage(killer.Name, msg); plugin.SendPlayerYell(killer.Name, "\n" + msg, 8); plugin.KillPlayer(killer.Name); } else if (kill.Category == "SniperRifle") { msg = "NO SNIPER RIFLES!"; plugin.SendPlayerMessage(killer.Name, msg); plugin.SendPlayerYell(killer.Name, "\n" + msg, 8); plugin.KillPlayer(killer.Name); plugin.SendGlobalMessage(killer.FullName + " was killed for using a sniper rifle!"); } return false; The command is !fmove, this command comes built-in to both of these plugins: In-Game Admin (this comes with Procon). Advanced In-Game Admin and Ban Enforcer - AdKats: myrcon.net/.../advanced-in-game-admin-and-ban-enforcer-adkats * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted June 23, 2015 Author Share Posted June 23, 2015 Originally Posted by LCARSx64*: Hi LCARSx64, I am receiving the following error: [09:00:38 50] [insane Limits] Thread(settings): Compiling Limit #1 - kdrrank - OnKill [09:00:38 53] [insane Limits] Thread(settings): ERROR: 1 error compiling Code [09:00:38 53] [insane Limits] Thread(settings): ERROR: (CS1010, line: 55, column: 44): Newline in constant is there anything I needed to switch on or off inadvance? I currently have the plugin running without any restrictions. virtural mode true direct fetch true slow weapon stats false statslog false custom lists false custome smtp false custome storage false custom twitter false custom privacy policy false hide sections true limit state enabled evaluation OnKill first check code second check disabled action none That's a little odd, it compiles fine for me are you sure you're completely copying the code?Also, virtual_mode should be set to False. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted June 23, 2015 Author Share Posted June 23, 2015 Originally Posted by pspjim*: I just switch the virtual mode to be False I set the first check: Code The followings are the exact code i insert to first check(code)and return [16:23:10 06] [insane Limits] ERROR: 1 error compiling Code [16:23:10 06] [insane Limits] ERROR: (CS1010, line: 55, column: 44): Newline in constant // Rank & Sniper Excluder - Limit 1 of 1 // v1.0 - OnKill - first_check // String msg = ""; bool isAdmin = false; bool bKill = false; bool bKick = false; bool bBan = false; bool bMove = false; bool bLevel = false; if (plugin.CheckAccount(killer.Name, out bKill, out bKick, out bBan, out bMove, out bLevel)) { if (bKill && bKick && bBan && bMove && bLevel) isAdmin = true; } if (isAdmin || plugin.isInWhitelist(killer.Name)) return false; if (killer.Rank > 135 || killer.Kdr > 2.5 || killer.Kpm > 1.0) { msg = "NOOB ONLY SERVER!"; plugin.SendPlayerMessage(killer.Name, msg); plugin.SendPlayerYell(killer.Name, "\n" + msg, 8); plugin.KillPlayer(killer.Name); } else if (kill.Category == "SniperRifle" || kill.Category == "DMR") { if (kill.Category == "SniperRifle") { msg = NO SNIPER RIFLES!"; } else { msg = "NO DMRs!"; } plugin.SendPlayerMessage(killer.Name, msg); plugin.SendPlayerYell(killer.Name, "\n" + msg, 8); plugin.KillPlayer(killer.Name); if (kill.Category == "SniperRifle") { plugin.SendGlobalMessage(killer.FullName + " was killed for using a sniper rifle!"); } else { plugin.SendGlobalMessage(killer.FullName + " was killed for using a DMR!"); } } return false; * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted June 23, 2015 Author Share Posted June 23, 2015 Originally Posted by LCARSx64*: I just switch the virtual mode to be False I set the first check: Code The followings are the exact code i insert to first check(code)and return [16:23:10 06] [insane Limits] ERROR: 1 error compiling Code [16:23:10 06] [insane Limits] ERROR: (CS1010, line: 55, column: 44): Newline in constant Hmmm, ok try this:Code: // Rank & Sniper Excluder - Limit 1 of 1 // v1.0 - OnKill - first_check // String msg = ""; bool isAdmin = false; bool bKill = false; bool bKick = false; bool bBan = false; bool bMove = false; bool bLevel = false; if (plugin.CheckAccount(killer.Name, out bKill, out bKick, out bBan, out bMove, out bLevel)) { if (bKill && bKick && bBan && bMove && bLevel) isAdmin = true; } if (isAdmin || plugin.isInWhitelist(killer.Name)) return false; if (killer.Rank > 100 || killer.Kdr > 2.5) { msg = "NOOB ONLY SERVER!"; plugin.SendPlayerMessage(killer.Name, msg); plugin.SendPlayerYell(killer.Name, msg, 8); plugin.KillPlayer(killer.Name); } else if (kill.Category == "SniperRifle") { msg = "NO SNIPER RIFLES!"; plugin.SendPlayerMessage(killer.Name, msg); plugin.SendPlayerYell(killer.Name, msg, 8); plugin.KillPlayer(killer.Name); plugin.SendGlobalMessage(killer.FullName + " was killed for using a sniper rifle!"); } return false; * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted June 23, 2015 Author Share Posted June 23, 2015 Originally Posted by twinsears*: My apologies for asking because I am sure this information is somewhere on here but I can't find it. I'd like to add three limits to my server. I don't want anyone to join the server if: 1) their rank is above a level 75 2) their overall kdr is 2.0 or better I want the server to tban anyone who 1) has a kdr that is better than 5.0 over two consecutive rounds if they have 20 or more kills per round over both rounds. Any help is much appreciated including pointing me to previous posts with these limits! Thanks! * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted June 24, 2015 Author Share Posted June 24, 2015 Originally Posted by pspjim*: My apologies for asking because I am sure this information is somewhere on here but I can't find it. I'd like to add three limits to my server. I don't want anyone to join the server if: 1) their rank is above a level 75 2) their overall kdr is 2.0 or better I want the server to tban anyone who 1) has a kdr that is better than 5.0 over two consecutive rounds if they have 20 or more kills per round over both rounds. Any help is much appreciated including pointing me to previous posts with these limits! Thanks! just search my namei asked the same thing and actually it is within 10 pages in this thread * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted June 24, 2015 Author Share Posted June 24, 2015 Originally Posted by Mamba334*: Question what are the advantages/disadvantages (if any) of using the first_check, second_check and action? So for example I've got this limit:- But what if I just combined the entire limit into one piece of code in first_check like this? Code: if [u]( player.Spm > 1150 )[/u] { plugin.Log("Logs/InsaneLimits_SPM.csv", plugin.R("%date%,%time%,%p_n%,%l_n%,%p_pg%")); plugin.EABanPlayerWithMessage(EABanType.Name, EABanDuration.Permanent, player.Name, 0, "[Auto-Admin] Your SPM is higher than 1150"); } return false;Would it decrease/increase load on the layer? Or would there be no difference at all? Are there any advantages/disadvantages to combining everything into one piece of code or is it better to have things separated out into actions, expressions and code?I underlined the question I have for you. This isn't working for me on my server. Could it be the space betwwen ( and player.Spm * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted June 25, 2015 Author Share Posted June 25, 2015 Originally Posted by LCARSx64*: I underlined the question I have for you. This isn't working for me on my server. Could it be the space betwwen ( and player.SpmNo, it's not the space. Looking at the screenshot you posted, the fix is simple: Set limit_1_first_check to Code Set limit_1_first_check_code to: Code: if ( player.Spm > 1150 ) { plugin.Log("Logs/InsaneLimits_SPM.csv", plugin.R("%date%,%time%,%p_n%,%l_n%,%p_pg%")); plugin.EABanPlayerWithMessage(EABanType.Name, EABanDuration.Permanent, player.Name, 0, "[Auto-Admin] Your SPM is higher than 1150"); } return false;Set limit_1_second_check to DisabledSet limit_1_action to None That should fix it. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted June 25, 2015 Author Share Posted June 25, 2015 Originally Posted by Mamba334*: Even though there is no benefit to kicking high ping players - see ...*.Note, we had this in BF3. High pings result in a laggy server or when you try to kill them, they're bouncing all over the place. Cheaters sometimes also have high pings. This plugin will help you out a lot. I can't find one for BF4, so I just kick the high pingers that reach over 250. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted June 25, 2015 Author Share Posted June 25, 2015 Originally Posted by LCARSx64*: Note, we had this in BF3. High pings result in a laggy server or when you try to kill them, they're bouncing all over the place. Cheaters sometimes also have high pings. This plugin will help you out a lot. I can't find one for BF4, so I just kick the high pingers that reach over 250.Really the wrong place to ask but, the Latency Manager plugin is what you are looking for: showthread....14%29-May-2015* * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted June 26, 2015 Author Share Posted June 26, 2015 Originally Posted by Mamba334*: No, it's not the space. Looking at the screenshot you posted, the fix is simple: Set limit_1_first_check to Code Set limit_1_first_check_code to: Code: if ( player.Spm > 1150 ) { plugin.Log("Logs/InsaneLimits_SPM.csv", plugin.R("%date%,%time%,%p_n%,%l_n%,%p_pg%")); plugin.EABanPlayerWithMessage(EABanType.Name, EABanDuration.Permanent, player.Name, 0, "[Auto-Admin] Your SPM is higher than 1150"); } return false;Set limit_1_second_check to DisabledSet limit_1_action to None That should fix it. Thank you! * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted June 29, 2015 Author Share Posted June 29, 2015 Originally Posted by Mamba334*: We'r using "Take PunkBuster Screenshot at Specified K/D Ratio" limit: myrcon.net/...insane-limits-examples#entry18465 I have add Limit action: Log / Plugin: PunkBuster Screenshot has requested from %p_n% (KdrRound limit exceeded) So we have now nice info in logs about PB SS request. However the problem is that it send requests all the time and its little bit spamming Procon. Can we add some time limit (60 seconds for example) between SS request ? I have try to change onKill for OnIntervalServer but after that plugin is not compiled (some name problems) I think this will work: Leave this set to OnKill event. Leave first_check Expression as: Code: (player.KdrRound > 4.0)Change second_check Code to (change the value highlighted red to your desired time in seconds):Code: TimeSpan time = TimeSpan.FromSeconds(60); if (limit.Activations(player.Name, time) == 1) { plugin.ServerCommand("punkBuster.pb_sv_command", "PB_SV_GetSs \"" + killer.Name + "\""); } return false; Any reason why when a pbscreenshot is triggered, I have to go to pbscreens and restart pbscreens? Is this just a glitch? * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted June 29, 2015 Author Share Posted June 29, 2015 Originally Posted by LCARSx64*: Any reason why when a pbscreenshot is triggered, I have to go to pbscreens and restart pbscreens? Is this just a glitch?Ummm, I have no idea why that quote has my name on it, but I can tell you that is definitely not my post. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted June 30, 2015 Author Share Posted June 30, 2015 Originally Posted by MRniceGuy*: hello i would love to set random welcome messages for new player i want to set a couple random messages to show up when people joins not just only one message is it possible? thank you. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted June 30, 2015 Author Share Posted June 30, 2015 Originally Posted by LCARSx64*: hello i would love to set random welcome messages for new player i want to set a couple random messages to show up when people joins not just only one message is it possible? thank you. Here you go: Random Welcome Messages Create a new limit to evaluate OnJoin. Set action to None. Set first_check to this Code: Code: // Random Welcome Messages - Limit 1 of 1 // v1.0 - OnJoin - first_check // List<String> lMsgs = new List<String>(); lMsgs.Add("Welcome to the server %p_n%!"); lMsgs.Add("Hello %p_n%"); // Add as many lMsgs.Add lines as you like Random rnd = new Random(); if (lMsgs.Count > 0) { plugin.SendPlayerMessage(player.Name, plugin.R(lMsgs[rnd.Next(lMsgs.Count)])); } return false; End of post. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted June 30, 2015 Author Share Posted June 30, 2015 Originally Posted by GR101*: Hi, does anybody have an in-game chat auto responder with multiple responses? I need it for about 15 different scenarios with multiple word look-ups. I use "On Say;Text lag;PlayerYell %p%: chat message…….." but if the player types 'flag' my auto responder send out the message. I need the auto responder to respond on the exact words. Thank you for considering this. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted June 30, 2015 Author Share Posted June 30, 2015 Originally Posted by Mamba334*: Ummm, I have no idea why that quote has my name on it, but I can tell you that is definitely not my post. I think I just copied it wrong. My fault. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted June 30, 2015 Author Share Posted June 30, 2015 Originally Posted by Mamba334*: Really the wrong place to ask but, the Latency Manager plugin is what you are looking for: showthread....14%29-May-2015*I wasn't asking for that plugin. I've already tried that. I was trying to be helpful and advise him that high pings do matter and cause certain issues was all. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted June 30, 2015 Author Share Posted June 30, 2015 Originally Posted by Mamba334*: Hi, does anybody have an in-game chat auto responder with multiple responses? I need it for about 15 different scenarios with multiple word look-ups. I use "On Say;Text lag;PlayerYell %p%: chat message…….." but if the player types 'flag' my auto responder send out the message. I need the auto responder to respond on the exact words. Thank you for considering this. Are you talking about when you type (say) 'lag', a command that will tell the player with a high ping they are causing lag? * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted June 30, 2015 Author Share Posted June 30, 2015 Originally Posted by ColColonCleaner*: I wasn't asking for that plugin. I've already tried that. I was trying to be helpful and advise him that high pings do matter and cause certain issues was all.If you are seeing them 'bounce around' like you said, you are probably running far too low of a network smoothing value, which causes the animations on your end to screw up on those players. Increase it to at least 25 and your issue will go away. You mentioned you haven't been able to find a BF4 ping kicker, then are linked a BF4 ping kicker, then say it doesn't work. What was the issue? It's also not the only ping kicker available here. EDIT: Wait...you tried connecting high pings to cheating? Why on earth would you try to do that? * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted June 30, 2015 Author Share Posted June 30, 2015 Originally Posted by ColColonCleaner*: Are you talking about when you type (say) 'lag', a command that will tell the player with a high ping they are causing lag?High ping players have not affected server lag since early BF3, your information is very outdated, that was fixed around patch 30. Also, no, that's not at all what he's talking about. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted June 30, 2015 Author Share Posted June 30, 2015 Originally Posted by GitSum*: I thought there was a limit (couple years old now) for "insulting" other players - I can't find it. Anybody remember it or can you point me to it? Something like "!insult playername" and it would post it chat some sort of insult * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted June 30, 2015 Author Share Posted June 30, 2015 Originally Posted by LCARSx64*: Hi, does anybody have an in-game chat auto responder with multiple responses? I need it for about 15 different scenarios with multiple word look-ups. I use "On Say;Text lag;PlayerYell %p%: chat message…….." but if the player types 'flag' my auto responder send out the message. I need the auto responder to respond on the exact words. Thank you for considering this. This is rather easy to do but I'd need more info: What words do you want to trigger the messages? What messages do you want for each of the trigger words? * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted June 30, 2015 Author Share Posted June 30, 2015 Originally Posted by GR101*: This is rather easy to do but I'd need more info: What words do you want to trigger the messages? What messages do you want for each of the trigger words? Cheers LCARSx64, much appreciated. Here are the trigger words and corresponding messages:- Code: On Say;Text hack,cheat,cheater,hacker,wallhack,aimbot,multihack;PlayerYell %p%: We strongly advice you to report suspects on our website or on their battlelog profile. On Say;Text balance,auto balance,autobalance,autobalance teams,balance teams,even teams,even the teams,team stacking;PlayerYell %p%: teams are ballanced automatically. On Say;Text vip,donation,donate;PlayerYell %p%: Support us by donating or purchasing VIP slots. On Say;Text stacked,scramble,scramble teams,scramble players;PlayerYell %p%: Teams are scrambled every round based on player Score per Minute (SPM). On Say;Text report,!report,@report,#report,admins,!admins,@admins,#admins,admin,!admin,@admin,#admin;PlayerYell %p%: Sorry admin can't respond right now. On Say;Text promotion,promoted;PlayerYell %p%: CONGRATULATIONS ON YOUR NEW PROMOTION! On Say;Text website;PlayerYell %p%: visit our web page. On Say;Text recruiting;PlayerYell %p%: we are recruiting new active members check us out. On Say;Text lag;PlayerYell %p%: Server is NOT lagging out, check your Internet connection for network latency and packet loss. On Say;Text anticheat,anti-cheat, anti cheat;PlayerYell %p%: This server streams to PBBans, GGC and ACI for anti-cheat protection On Say;Text teamspeak;PlayerYell %p%: Join us on Teamspeak if you want a chat or an Admin.Please could you make it easy to add additional message if needed? * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted July 1, 2015 Author Share Posted July 1, 2015 Originally Posted by MRniceGuy*: Here you go: Random Welcome Messages Create a new limit to evaluate OnJoin. Set action to None. Set first_check to this Code: Code: // Random Welcome Messages - Limit 1 of 1 // v1.0 - OnJoin - first_check // List<String> lMsgs = new List<String>(); lMsgs.Add("Welcome to the server %p_n%!"); lMsgs.Add("Hello %p_n%"); // Add as many lMsgs.Add lines as you like Random rnd = new Random(); if (lMsgs.Count > 0) { plugin.SendPlayerMessage(player.Name, plugin.R(lMsgs[rnd.Next(lMsgs.Count)])); } return false; End of post. Thank you so much It is possible to also set a random on spawn message when a players joins and respawns for first time? would be great xD * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted July 1, 2015 Author Share Posted July 1, 2015 Originally Posted by LCARSx64*: Thank you so much It is possible to also set a random on spawn message when a players joins and respawns for first time? would be great xD Players that leave and rejoin already get a randomly selected message. Cheers LCARSx64, much appreciated. Here are the trigger words and corresponding messages:- Code: On Say;Text hack,cheat,cheater,hacker,wallhack,aimbot,multihack;PlayerYell %p%: We strongly advice you to report suspects on our website or on their battlelog profile. On Say;Text balance,auto balance,autobalance,autobalance teams,balance teams,even teams,even the teams,team stacking;PlayerYell %p%: teams are ballanced automatically. On Say;Text vip,donation,donate;PlayerYell %p%: Support us by donating or purchasing VIP slots. On Say;Text stacked,scramble,scramble teams,scramble players;PlayerYell %p%: Teams are scrambled every round based on player Score per Minute (SPM). On Say;Text report,!report,@report,#report,admins,!admins,@admins,#admins,admin,!admin,@admin,#admin;PlayerYell %p%: Sorry admin can't respond right now. On Say;Text promotion,promoted;PlayerYell %p%: CONGRATULATIONS ON YOUR NEW PROMOTION! On Say;Text website;PlayerYell %p%: visit our web page. On Say;Text recruiting;PlayerYell %p%: we are recruiting new active members check us out. On Say;Text lag;PlayerYell %p%: Server is NOT lagging out, check your Internet connection for network latency and packet loss. On Say;Text anticheat,anti-cheat, anti cheat;PlayerYell %p%: This server streams to PBBans, GGC and ACI for anti-cheat protection On Say;Text teamspeak;PlayerYell %p%: Join us on Teamspeak if you want a chat or an Admin.Please could you make it easy to add additional message if needed?Although the following is probably not the most efficient solution, it should do what you want (I added a few extra matches that may crop up, also, setting the value highlighted in red to true will cause these messages to be displayed to Admins): Auto-Responder Create a new limit to evaluate OnAnyChat. Set action to None. Set first_check to this Code: Code: // Auto-Responder - Limit 1 of 1 // v2.0 - OnAnyChat - first_check // bool bShowToAdmin = [b]false[/b]; List<String> lTriggers = new List<String>(); List<String> lResponses = new List<String>(); // Add the trigger words lTriggers.Add("HACK|CHEAT|CHEATER|HACKER|WALLHACK|AIMBOT|MULTIHACK"); lTriggers.Add("BALANCE|AUTOBALANCE|AUTO.BALANCE|AUTOBALANCE.TEAMS|BALANCE.TEAMS|EVEN.TEAMS|EVEN.THE.TEAMS|TEAM.STACKING"); lTriggers.Add("VIP|DONATION|DONATE"); lTriggers.Add("STACKED|SCRAMBLE|SCRAMBLE.TEAMS|SCRAMBLE.PLAYERS"); lTriggers.Add("REPORT|ADMINS|ADMIN"); lTriggers.Add("PROMOTION|PROMOTED|RANKED.UP"); lTriggers.Add("WEBSITE|FORUM|FORUMS"); lTriggers.Add("RECRUITING|RECRUITES|MEMBERS"); lTriggers.Add("LAG|LAGGY|LAGGING"); lTriggers.Add("ANTICHEAT|ANTI.CHEAT"); lTriggers.Add("TEAMSPEAK|VOIP|VOICE.COMMS"); // Add as many lTriggers.Add lines as you like, but there must be // a corresponding lResponses.Add line for each lTriggers.Add line lResponses.Add("/nWe strongly advice you to report suspects on\nour website or on their battlelog profile."); lResponses.Add("/nTeams are balanced automatically."); lResponses.Add("/nSupport us by donating or purchasing VIP slots."); lResponses.Add("/nTeams are scrambled every round based on player Score per Minute (SPM)."); lResponses.Add("/nSorry an Admin can't respond right now."); lResponses.Add("/nCONGRATULATIONS ON YOUR NEW PROMOTION!"); lResponses.Add("/nVisit our web page."); lResponses.Add("/nWe are recruiting new active members check us out."); lResponses.Add("/nThe server is NOT lagging out, check your Internet\nconnection for network latency and packet loss."); lResponses.Add("/nThis server streams to PBBans, GGC and ACI\nfor anti-cheat protection."); lResponses.Add("/nJoin us on Teamspeak if you want a chat or need an Admin."); // String sPatA = @"(_<=\W|^)("; String sPatB = @")(_=\W|$)"; bool bComplete = false; bool bKill = false; bool bKick = false; bool bBan = false; bool bMove = false; bool bLevel = false; int iCount = 0; if (!bShowToAdmin) { if (plugin.CheckAccount(player.Name, out bKill, out bKick, out bBan, out bMove, out bLevel)) { if (bKill && bKick && bBan && bMove & bLevel) return false; } } while (!bComplete) { if (Regex.Match(player.LastChat, sPatA + lTriggers[iCount] + sPatB, RegexOptions.IgnoreCase).Success) { plugin.SendPlayerYell(player.Name, lResponses[iCount], 8); bComplete = true; } else { iCount++; if (iCount > lTriggers.Count) bComplete = true; } } return false; End of post. * Restored post. It could be that the author is no longer active. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.