ImportBot Posted December 7, 2013 Author Share Posted December 7, 2013 Originally Posted by GmanNL*: Hello Guys, I'm trying to get this working. I'm rather new to Procon but i'm starting to get the hang of it. Though if i past the weapon code from the start post in ProconRulz i get the following: proconrulz_pistolonlyscript_notworking.PNG What am i doing wrong? * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted December 8, 2013 Author Share Posted December 8, 2013 Originally Posted by PapaCharlie9*: Hello Guys, I'm trying to get this working. I'm rather new to Procon but i'm starting to get the hang of it. Though if i past the weapon code from the start post in ProconRulz i get the following: proconrulz_pistolonlyscript_notworking.PNG What am i doing wrong? Wrong thread, you want Procon Rulz, this is Insane Limits. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted December 8, 2013 Author Share Posted December 8, 2013 Originally Posted by jking54*: These are all pistols: U_Taurus44 U_HK45C U_CZ75 U_FN57 U_Glock18 U_M1911 U_M9 U_M93R U_MP412Rex U_MP443 U_P226 U_QSZ92 You need to add the "melee" kill because you said the knife is also allowed. Also "suicide", "death", "SoldierCollision", "DamageArea" could be problem. I don't think you want to punish these kills. On kill First check, expression Code: !Regex.Match(kill.Weapon, @"(U_Taurus44|U_HK45C|U_CZ75|U_FN57|U_Glock18|U_M1911|U_M9|U_M93R|U_MP412Rex|U_MP443|U_P226|U_QSZ92|Melee|Suicide|SoldierCollision|DamageArea|Death)", RegexOptions.IgnoreCase).Success Second check, code your code There are 13 pistols last I checked? nvm, shorty 12g isn't in there, I added it to mine though. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted December 11, 2013 Author Share Posted December 11, 2013 Originally Posted by LumPenPacK*: There are 13 pistols last I checked? nvm, shorty 12g isn't in there, I added it to mine though.This shorty 12g weapon is more a shotgun than a pistol but it's up to you which weapons you add to this expression. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted December 11, 2013 Author Share Posted December 11, 2013 Originally Posted by Pvtjohntowle*: This shorty 12g weapon is more a shotgun than a pistol but it's up to you which weapons you add to this expression.OK can someone give me a code for shotguns only server with the shorty 12g as the secondary and no snipers or explosives, no pistols and no death, flares and flashbangs OK. My pistols and knives (shorty OK) is running near capacity... * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted December 11, 2013 Author Share Posted December 11, 2013 Originally Posted by LumPenPacK*: OK can someone give me a code for shotguns only server with the shorty 12g as the secondary and no snipers or explosives, no pistols and no death, flares and flashbangs OK. My pistols and knives (shorty OK) is running near capacity... The procedure is always the same. The only thing you have to change are the weapon codes. You can take the "RCON weapon codes" from this spreadsheet: https://docs.google.com/spreadsheet/...rive_web#gid=0 * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted December 11, 2013 Author Share Posted December 11, 2013 Originally Posted by Pvtjohntowle*: The procedure is always the same. The only thing you have to change are the weapon codes. You can take the "RCON weapon codes" from this spreadsheet: https://docs.google.com/spreadsheet/...rive_web#gid=0 OK Cool man I have just edited my code and replaced all the pistol codes with the shotty codes.. we will see how this works !! should be a gang bang time on Op Locker !!! * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted December 12, 2013 Author Share Posted December 12, 2013 Originally Posted by upurs*: I have set up procon as a client and not through a layer added this Limit.. enabled and compiled on 1st kill the player is warned but after that nothing,, no kick or anything,, if i restart insaine,, the warning come up afain ,, then nothing Expression on 1st and code on 2nd heres the code double count = limit.Activations(player.Name); if (count == 1) plugin.SendGlobalMessage(plugin.R("%p_n%, this is a Pistolas & Knives only server, do not use %w_n% again! Next time kick")); else if (count > 1) plugin.KickPlayerWithMessage(player.Name, plugin.R("%p_n%, kicked you for using %w_n% on pistol only server")); return false; can someone please help ty * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted December 13, 2013 Author Share Posted December 13, 2013 Originally Posted by Pvtjohntowle*: Shotguns only went off with a bang last night Thoroughly enjoyed it !! * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted December 15, 2013 Author Share Posted December 15, 2013 Originally Posted by Pvtjohntowle*: Why do players still can kill with ACR-W and not get punished (killed) using it ? Code: kill.Weapon == "U_M98B" || kill.Weapon == "U_M93R" || !Regex.Match(kill.Weapon, @"(U_870|U_M26Mass_Frag|U_DVB12|U_HAWK|U_M1014|U_QBS09|U_SAIGA_20K|U_SPAS12|U_USAS-12|U_UTAS|U_SerbuShorty|U_Defib|Melee|Suicide|SoldierCollision|DamageArea)", RegexOptions.IgnoreCase).Success * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted December 15, 2013 Author Share Posted December 15, 2013 Originally Posted by LumPenPacK*: Why do players still can kill with ACR-W and not get punished (killed) using it ? Code: kill.Weapon == "U_M98B" || kill.Weapon == "U_M93R" || !Regex.Match(kill.Weapon, @"(U_870|U_M26Mass_Frag|U_DVB12|U_HAWK|U_M1014|U_QBS09|U_SAIGA_20K|U_SPAS12|U_USAS-12|U_UTAS|U_SerbuShorty|U_Defib|Melee|Suicide|SoldierCollision|DamageArea)", RegexOptions.IgnoreCase).Success I can't see any reference to the ACR in your code. U_ACR * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted December 15, 2013 Author Share Posted December 15, 2013 Originally Posted by Pvtjohntowle*: i am not understanding this. So for every weapon that I don't want used, I have to put the code that represents them in the first check code as kill.Weapon. That's going to be time consuming. Sent from my GT-I9300 using Tapatalk * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted December 15, 2013 Author Share Posted December 15, 2013 Originally Posted by PapaCharlie9*: i am not understanding this. So for every weapon that I don't want used, I have to put the code that represents them in the first check code as kill.Weapon. That's going to be time consuming.No, that's not what he meant. He meant, ACR-W should be punished by that code. Are you sure that it wasn't? How do you know an ACR-W was used? To be absolutely sure, you can change the first_check code. Change it from Expression to Code and make it be this: Code: if (!Regex.Match(kill.Weapon, @"(U_870|U_M26Mass_Frag|U_DVB12|U_HAWK|U_M1014|U_QBS09|U_SAIGA_20K|U_SPAS12|U_USAS-12|U_UTAS|U_SerbuShorty|U_Defib|Melee|Suicide|SoldierCollision|DamageArea)", RegexOptions.IgnoreCase).Success) { plugin.ConsoleWrite("^b^1ILLEGAL WEAPON!^0^n " + killer.FullName + " used " + kill.Weapon + " against " + victim.FullName); return true; } else { plugin.ConsoleWrite("^9ok: " + killer.FullName + " used " + kill.Weapon); return false; }That will give you plugin.log messages like this: Code: [b][Insane Limits][/b] ok: Johnny used U_HAWK [b][Insane Limits][/b] ok: [X2X]DirtyPete used U_870 [b][Insane Limits][/b] ok: blueFandago used U_870 [b][Insane Limits][/b] [b]ILLEGAL WEAPON![/b] [X2X]DirtyPete used U_ACR against JohnnyYou will be able to see every weapon that was allowed and every weapon that was illegal for every kill. It will be a bit spammy, but the only way to know for sure what is being allowed and what isn't. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted December 17, 2013 Author Share Posted December 17, 2013 Originally Posted by p19blo*: No, that's not what he meant. He meant, ACR-W should be punished by that code. Are you sure that it wasn't? How do you know an ACR-W was used? To be absolutely sure, you can change the first_check code. Change it from Expression to Code and make it be this: Code: if (!Regex.Match(kill.Weapon, @"(U_870|U_M26Mass_Frag|U_DVB12|U_HAWK|U_M1014|U_QBS09|U_SAIGA_20K|U_SPAS12|U_USAS-12|U_UTAS|U_SerbuShorty|U_Defib|Melee|Suicide|SoldierCollision|DamageArea)", RegexOptions.IgnoreCase).Success) { plugin.ConsoleWrite("^b^1ILLEGAL WEAPON!^0^n " + killer.FullName + " used " + kill.Weapon + " against " + victim.FullName); return true; } else { plugin.ConsoleWrite("^9ok: " + killer.FullName + " used " + kill.Weapon); return false; }That will give you plugin.log messages like this: Code: [b][Insane Limits][/b] ok: Johnny used U_HAWK [b][Insane Limits][/b] ok: [X2X]DirtyPete used U_870 [b][Insane Limits][/b] ok: blueFandago used U_870 [b][Insane Limits][/b] [b]ILLEGAL WEAPON![/b] [X2X]DirtyPete used U_ACR against JohnnyYou will be able to see every weapon that was allowed and every weapon that was illegal for every kill. It will be a bit spammy, but the only way to know for sure what is being allowed and what isn't.anyway to export this information without going through the logs? this is currently what does my banning Code: String kCounter = killer.Name + "_TreatAsOne_Count_Kills"; TimeSpan time = TimeSpan.FromSeconds(1000); // Activations within 3 seconds count as 1 String msg = null; int warnings = 1; if (server.Data.issetInt(kCounter)) warnings = server.Data.getInt(kCounter); /* Check to make sure we are not getting multiple activations in a short period of time. Ignore if less than the time span required. */ if (limit.Activations(killer.Name, time) > 1) return false; /* We get here only if there was exactly one activation in the time span */ if (warnings == 1) { msg = "You have " + (warnings) + "non pistol kill this round, the maximum allowed on this server is 1"; plugin.ServerCommand("admin.yell", msg, "15", "player", killer.Name); plugin.PRoConChat("ADMIN to " + killer.Name + ">" + msg); } if (warnings >= 2) { msg ="%p_n%, banned for using %w_n% on Pistol and Knife only server"; plugin.EABanPlayerWithMessage(EABanType.EA_GUID, EABanDuration.Permanent, player.Name, 0, "%p_n%, banned for using %w_n% on Pistol and Knife only server, get unbanned at www.rockpapergodmode.com"); msg = "Banning " + killer.FullName + " for " + msg + victim.FullName; plugin.SendGlobalMessage(msg); plugin.PRoConChat("ADMIN > " + msg); plugin.PRoConEvent(msg, "Insane Limits"); } server.Data.setInt(kCounter, warnings+1); return false; * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted December 17, 2013 Author Share Posted December 17, 2013 Originally Posted by PapaCharlie9*: anyway to export this information without going through the logs?You could write it to a separate log file, which will show up as procon/Logs/(ip_port)/(yearMONTHday)_killweapons.log Use this code for first_check: Code: String logName = plugin.R("Logs/%server_host%_%server_port%/") + DateTime.Now.ToString("yyyyMMdd") + "_killweapons.log"; String time = "[" + DateTime.Now.ToString("HH:mm:ss") + "] "; if (!Regex.Match(kill.Weapon, @"(U_870|U_M26Mass_Frag|U_DVB12|U_HAWK|U_M1014|U_QBS09|U_SAIGA_20K|U_SPAS12|U_USAS-12|U_UTAS|U_SerbuShorty|U_Defib|Melee|Suicide|SoldierCollision|DamageArea)", RegexOptions.IgnoreCase).Success) { plugin.Log(logName, time + "ILLEGAL WEAPON! " + killer.FullName + " used " + kill.Weapon + " against " + victim.FullName); return true; } else { plugin.Log(logName, time + "ok: " + killer.FullName + " used " + kill.Weapon); return false; } * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted December 17, 2013 Author Share Posted December 17, 2013 Originally Posted by p19blo*: You could write it to a separate log file, which will show up as procon/Logs/(ip_port)/(yearMONTHday)_killweapons.log Use this code for first_check: Code: String logName = plugin.R("Logs/%server_host%_%server_port%/") + DateTime.Now.ToString("yyyyMMdd") + "_killweapons.log"; String time = "[" + DateTime.Now.ToString("HH:mm:ss") + "] "; if (!Regex.Match(kill.Weapon, @"(U_870|U_M26Mass_Frag|U_DVB12|U_HAWK|U_M1014|U_QBS09|U_SAIGA_20K|U_SPAS12|U_USAS-12|U_UTAS|U_SerbuShorty|U_Defib|Melee|Suicide|SoldierCollision|DamageArea)", RegexOptions.IgnoreCase).Success) { plugin.Log(logName, time + "ILLEGAL WEAPON! " + killer.FullName + " used " + kill.Weapon + " against " + victim.FullName); return true; } else { plugin.Log(logName, time + "ok: " + killer.FullName + " used " + kill.Weapon); return false; } this stopped working after a round ? players coudl kill with any wepaon. i changes shotguns for pistols only Code: String logName = plugin.R("Logs/%server_host%_%server_port%/") + DateTime.Now.ToString("yyyyMMdd") + "_killweapons.log"; String time = "[" + DateTime.Now.ToString("HH:mm:ss") + "] "; if (! Regex.Match(kill.Weapon, @"(U_Taurus44|U_HK45C|U_CZ75|U_FN57|U_Glock18|U_M1911|U_M9|U_M93R|U_MP412Rex|U_MP443|U_P226|U_QSZ92|Melee|Suicide|SoldierCollision|DamageArea|Death)", RegexOptions.IgnoreCase).Success { plugin.ConsoleWrite("^b^1ILLEGAL WEAPON!^0^n " + killer.FullName + " used " + kill.Weapon + " against " + victim.FullName); return true; } else { plugin.Log(logName, time + "ok: " + killer.FullName + " used " + kill.Weapon); return false; } * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted December 18, 2013 Author Share Posted December 18, 2013 Originally Posted by PapaCharlie9*: this stopped working after a round ? players coudl kill with any wepaon. i changes shotguns for pistols onlyAnd you are still using the second_check code from post #44? The problem is this line: Code: TimeSpan time = TimeSpan.FromSeconds(1000); // Activations within 3 seconds count as 1That's 1000 seconds, not 3 seconds. Change it to 3 and see if it works better. Actually, you don't even need the timing part, that's only really needed for weapons that commonly do multi-kills, like explosives. Change your second_check to this simpler version: Code: String kCounter = killer.Name + "_TreatAsOne_Count_Kills"; String msg = null; int warnings = 1; if (server.Data.issetInt(kCounter)) warnings = server.Data.getInt(kCounter); if (warnings == 1) { msg = "You have " + (warnings) + " non pistol kill this round, the maximum allowed on this server is 1"; plugin.ServerCommand("admin.yell", msg, "15", "player", killer.Name); plugin.PRoConChat("ADMIN to " + killer.Name + ">" + msg); } if (warnings >= 2) { msg ="%p_n%, banned for using %w_n% on Pistol and Knife only server"; plugin.EABanPlayerWithMessage(EABanType.EA_GUID, EABanDuration.Permanent, player.Name, 0, "%p_n%, banned for using %w_n% on Pistol and Knife only server, get unbanned at www.rockpapergodmode.com"); msg = "Banning " + killer.FullName + " for " + msg + victim.FullName; plugin.SendGlobalMessage(msg); plugin.PRoConChat("ADMIN > " + msg); plugin.PRoConEvent(msg, "Insane Limits"); } server.Data.setInt(kCounter, warnings+1); return false; * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted December 18, 2013 Author Share Posted December 18, 2013 Originally Posted by p19blo*: i'll give it a go. thank you * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 6, 2014 Author Share Posted March 6, 2014 Originally Posted by guapoloko*: Are managing to use the M98B on my knives and guns server. The reason? * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 6, 2014 Author Share Posted March 6, 2014 Originally Posted by PapaCharlie9*: Are managing to use the M98B on my knives and guns server. The reason? That's a known issue. Here is the fix: myrcon.net/...insane-limits-knife-and-pistols-only#entry46680 * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 7, 2014 Author Share Posted March 7, 2014 Originally Posted by p19blo*: is there new pistols out ? noob question i know, but someones been banned on my server for using a new revolver ? Code: ! Regex.Match(kill.Weapon, @"(U_Taurus44|U_HK45C|U_CZ75|U_FN57|U_Glock18|U_M1911|U_M9|U_M93R|U_MP412Rex|U_MP443|U_P226|U_QSZ92|Melee|Suicide|SoldierCollision|DamageArea|Death)", RegexOptions.IgnoreCase).Successis what i have right now * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 7, 2014 Author Share Posted March 7, 2014 Originally Posted by PapaCharlie9*: Beats me. Were new weapons added for Second Assault? Were you running a Second Assault map, or any DLC for that matter? Check here for possible new weapon codes: showthread....5-Weapon-Codes* * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 9, 2014 Author Share Posted March 9, 2014 Originally Posted by TMiland*: is there new pistols out ? noob question i know, but someones been banned on my server for using a new revolver ? Code: ! Regex.Match(kill.Weapon, @"(U_Taurus44|U_HK45C|U_CZ75|U_FN57|U_Glock18|U_M1911|U_M9|U_M93R|U_MP412Rex|U_MP443|U_P226|U_QSZ92|Melee|Suicide|SoldierCollision|DamageArea|Death)", RegexOptions.IgnoreCase).Successis what i have right nowThis is what i use right now: Code: kill.Weapon == "U_M98B" || kill.Weapon == "U_M93R" || !Regex.Match(kill.Weapon, @"(U_Taurus44|U_HK45C|U_CZ75|U_FN57|U_M1911|U_M9|U_MP412Rex|U_MP443|U_P226|U_QSZ92|U_SW40|U_Flashbang|U_Defib|Melee|Suicide|SoldierCollision|DamageArea|Death)", RegexOptions.IgnoreCase).SuccessAdded U_SW40, and Code: [b]kill.Weapon == "U_M98B" || kill.Weapon == "U_M93R"[/b]is needed because the U_M9 gun is in those names, if you don't define them, they can use both those weapons. *edit I don't allow U_M93R, U_Glock18 and Shorty, so you need to add them to the code if you are to allow them. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 10, 2014 Author Share Posted March 10, 2014 Originally Posted by bluekind*: Hi guys ... I am tried to modified code for Sniper only. but I am getting error. Any help will be appreciated. my 1sk check code Code: !Regex.Match(kill.Weapon, @"(U_AMR2|U_AMR2_CQB|U_AMR2_MED|U_CS-LR4|U_FY-JS|U_JNG90|U_M200|U_M40A5|U_M82A3|U_M82A3_CQB| U_M82A3_MED|U_M98B|U_Scout|U_SRS|U_SV98|U_L96A1|U_GOL|Melee|Suicide|SoldierCollision|DamageArea|Death)", RegexOptions.IgnoreCase).Successmy 2nd Check code Code: Set second_check to this Code: double count = limit.Activations(player.Name); if (count == 1) { plugin.KillPlayer(player.Name); plugin.SendPlayerMessage(player.Name, plugin.R ("%p_n%, this is a Sniper only server, do not use %w_n% again! Next time kick")); } else if (count == 2) { plugin.KickPlayerWithMessage(player.Name, plugin.R("%p_n%, kicked you for using %w_n% on Sniper only server")); plugin.PRoConChat(plugin.R("%p_n% has been kicked for not using the sniper.")); } return false;I am havign 2 problem. 1. Its not kill or kicking player for using anything other then sniper. 2. I am getting the following error. Code: [21:08:27 76] [Insane Limits] Thread(settings): Compiling Limit #1 - Sniper Only - OnKill [21:08:27 80] [Insane Limits] Thread(settings): ERROR: 1 error compiling Code [21:08:27 80] [Insane Limits] Thread(settings): ERROR: (CS1002, line: 27, column: 270): ; expectedThanks in advance. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 10, 2014 Author Share Posted March 10, 2014 Originally Posted by TMiland*: Not sure about that second check code, but here's what i use: Code: String kCounter = killer.Name + "_TreatAsOne_Count_MaxKills"; TimeSpan time = TimeSpan.FromSeconds(3); // Activations within 3 seconds count as 1 String msg = null; int warnings = 0; if (server.Data.issetInt(kCounter)) warnings = server.Data.getInt(kCounter); /* We get here only if there was exactly one activation in the time span */ if (warnings == 0) { msg = "We are playing Pistols & Knife only!"; plugin.ServerCommand("admin.yell", "FINAL WARNING " + killer.Name + "! " + msg, "player", killer.Name); plugin.ServerCommand("admin.yell", msg, "15", "player", killer.Name); plugin.PRoConChat("ADMIN to " + killer.Name + "> " + msg); plugin.KillPlayer(killer.Name, 5); server.Data.setInt(kCounter, warnings+1); return false; } /* Check to make sure we are not getting multiple activations in a short period of time. Ignore if less than the time span required. */ if (limit.Activations(killer.Name, time) > 1) return false; if (warnings >= 1) { msg ="not using Knife or Pistol to kill! "; //plugin.KickPlayerWithMessage(killer.Name, msg); //EA Ban by player EA GUID - temp ban for 10 minutes plugin.EABanPlayerWithMessage(EABanType.EA_GUID, EABanDuration.Temporary, killer.Name, 10, msg); plugin.ConsoleWrite("^b^1ILLEGAL WEAPON!^0^n " + killer.FullName + " used " + kill.Weapon + " against " + victim.FullName); msg = "Temp banning (10 min) " + killer.FullName + " for " + msg + killer.FullName + " used " + kill.Weapon + " against " + victim.FullName; plugin.SendGlobalMessage(msg); plugin.PRoConChat("ADMIN > " + msg); plugin.PRoConEvent(msg, "Insane Limits"); } server.Data.setInt(kCounter, warnings+1); return false;This will warn on first kill with prohibited weapon, and ban for 10 minutes on second. :-) * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 10, 2014 Author Share Posted March 10, 2014 Originally Posted by bluekind*: Not sure about that second check code, but here's what i use: Code: String kCounter = killer.Name + "_TreatAsOne_Count_MaxKills"; TimeSpan time = TimeSpan.FromSeconds(3); // Activations within 3 seconds count as 1 String msg = null; int warnings = 0; if (server.Data.issetInt(kCounter)) warnings = server.Data.getInt(kCounter); /* We get here only if there was exactly one activation in the time span */ if (warnings == 0) { msg = "We are playing Pistols & Knife only!"; plugin.ServerCommand("admin.yell", "FINAL WARNING " + killer.Name + "! " + msg, "player", killer.Name); plugin.ServerCommand("admin.yell", msg, "15", "player", killer.Name); plugin.PRoConChat("ADMIN to " + killer.Name + "> " + msg); plugin.KillPlayer(killer.Name, 5); server.Data.setInt(kCounter, warnings+1); return false; } /* Check to make sure we are not getting multiple activations in a short period of time. Ignore if less than the time span required. */ if (limit.Activations(killer.Name, time) > 1) return false; if (warnings >= 1) { msg ="not using Knife or Pistol to kill! "; //plugin.KickPlayerWithMessage(killer.Name, msg); //EA Ban by player EA GUID - temp ban for 10 minutes plugin.EABanPlayerWithMessage(EABanType.EA_GUID, EABanDuration.Temporary, killer.Name, 10, msg); plugin.ConsoleWrite("^b^1ILLEGAL WEAPON!^0^n " + killer.FullName + " used " + kill.Weapon + " against " + victim.FullName); msg = "Temp banning (10 min) " + killer.FullName + " for " + msg + killer.FullName + " used " + kill.Weapon + " against " + victim.FullName; plugin.SendGlobalMessage(msg); plugin.PRoConChat("ADMIN > " + msg); plugin.PRoConEvent(msg, "Insane Limits"); } server.Data.setInt(kCounter, warnings+1); return false;This will warn on first kill with prohibited weapon, and ban for 10 minutes on second. :-)Thanks I will check and report back.But still getting following error ] [insane Limits] ERROR: (CS1002, line: 27, column: 270): ; expected * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 10, 2014 Author Share Posted March 10, 2014 Originally Posted by PapaCharlie9*: I am havign 2 problem. 1. Its not kill or kicking player for using anything other then sniper. 2. I am getting the following error. Code: [21:08:27 76] [Insane Limits] Thread(settings): Compiling Limit #1 - Sniper Only - OnKill [21:08:27 80] [Insane Limits] Thread(settings): ERROR: 1 error compiling Code [21:08:27 80] [Insane Limits] Thread(settings): ERROR: (CS1002, line: 27, column: 270): ; expectedThanks in advance.From second_check, remove this line from the code:Code: Set second_check to this Code:Also, changeCode: else if (count == 2)to this: Code: else if (count >= 2) * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 11, 2014 Author Share Posted March 11, 2014 Originally Posted by bluekind*: From second_check, remove this line from the code: Code: Set second_check to this Code:Also, changeCode: else if (count == 2)to this: Code: else if (count >= 2) Still getting the same error. and its not killing or kicking people. below is my setting insane.PNG * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 11, 2014 Author Share Posted March 11, 2014 Originally Posted by PapaCharlie9*: Still getting the same error. and its not killing or kicking people. below is my settingYou have first_check set incorrectly. limit_1_first_check should be Expression, not Code. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 12, 2014 Author Share Posted March 12, 2014 Originally Posted by guapoloko*: How to forbid all m320? * 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.