ImportBot Posted March 12, 2014 Author Share Posted March 12, 2014 Originally Posted by PapaCharlie9*: How to forbid all m320? showthread....etro-Op-Locker* Change the weapon list to just @"(M320)". * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 22, 2014 Author Share Posted March 22, 2014 Originally Posted by guapoloko*: And the M32? * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 22, 2014 Author Share Posted March 22, 2014 Originally Posted by PapaCharlie9*: And the M32?I don't know what an "M32" is. Do you mean the U_MGL grenade? Change the weapon list to @"(M320|U_MGL)". * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 22, 2014 Author Share Posted March 22, 2014 Originally Posted by guapoloko*: Many thanks papa9 is the m320 mgl that is causing me problems. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted April 17, 2014 Author Share Posted April 17, 2014 Originally Posted by swift*: @PapaCharlie9 I'm almost scared to ask a question without being flamed i'm lost and i read over and over but i'm lost we want a pistol and knife server on bf4 i got proconrulz and i enter the codes in rulz.txt filenames and some things work am i putting it in the wrong area? or using the wrong 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 pistol 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 pistol only server")); plugin.PRoConChat(plugin.R("%p_n% has been kicked for sniping on rush.")); } return false; * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted April 17, 2014 Author Share Posted April 17, 2014 Originally Posted by TMiland*: @PapaCharlie9 I'm almost scared to ask a question without being flamed i'm lost and i read over and over but i'm lost we want a pistol and knife server on bf4 i got proconrulz and i enter the codes in rulz.txt filenames and some things work am i putting it in the wrong area? or using the wrong 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 pistol 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 pistol only server")); plugin.PRoConChat(plugin.R("%p_n% has been kicked for sniping on rush.")); } return false; Hi, you need to use this code in Insane Limits, it wont work in Proconruz. Here's what i use for my popular Knifes & Pistols only server: /* Set the limit to evaluate OnKill and set the Action to None. Set first_check to this Expression: */ Code: ((kill.Category != "Handgun" || Regex.Match(kill.Weapon, @"(M93R|Glock18|SerbuShorty)", RegexOptions.IgnoreCase).Success) && !(kill.Category == "Suicide" || kill.Category == "Melee" || kill.Category == "Nonlethal" || kill.Category == "None"))/* Set second_check to this Code: */ Code: String kCounter = killer.Name + "_TreatAsOne_Count"; TimeSpan time = TimeSpan.FromSeconds(3); // Activations within 3 seconds count as 1 int warnings = 0; if (server.Data.issetInt(kCounter)) warnings = server.Data.getInt(kCounter); /* The first time through, warnings is zero. Whether this is an isolated activation or the first of a sequence of activations in a short period of time, do something on this first time through. */ String msg = "none"; if (warnings == 0) { msg = plugin.R("ATTENTION %k_n%! Do not use %w_n%! THIS IS KNIFES & PISTOLS ONLY!"); // First warning message plugin.ServerCommand("admin.say", msg, "player", killer.Name); plugin.SendPlayerYell(killer.Name, msg, 20); plugin.PRoConChat("ADMIN > " + msg); plugin.SendGlobalMessage(msg); plugin.KillPlayer(killer.Name, 3); plugin.ConsoleWrite("^b^1ILLEGAL WEAPON!^0^n " + killer.FullName + " used " + kill.Weapon + " against " + victim.FullName); server.Data.setInt(kCounter, warnings+1); return false; } /* The second and subsequent times through, 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 = plugin.R("FINAL WARNING %k_n%! Do not use %w_n%! Next Violation is a KICK!"); // Second warning message plugin.ServerCommand("admin.say", msg, "player", killer.Name); plugin.SendPlayerYell(killer.Name, msg, 20); plugin.PRoConChat("ADMIN > " + msg); plugin.KillPlayer(killer.Name, 3); plugin.ConsoleWrite("^b^1ILLEGAL WEAPON!^0^n " + killer.FullName + " used " + kill.Weapon + " against " + victim.FullName); } else if (warnings == 2) { msg = plugin.R("Kicking %k_n% for ignoring warnings and killing with %w_n%!"); plugin.SendGlobalMessage(msg); plugin.PRoConChat("ADMIN > " + msg); plugin.PRoConEvent(msg, "Insane Limits"); plugin.KickPlayerWithMessage(killer.Name, msg); } else if (warnings > 2) { msg = plugin.R("TBANNING %k_n% for 30mins. Still using PROHIBITED WEAPONS after being kicked!"); plugin.SendGlobalMessage(msg); plugin.PRoConChat("ADMIN > " + msg); plugin.PRoConEvent(msg, "Insane Limits"); plugin.EABanPlayerWithMessage(EABanType.Name, EABanDuration.Temporary, killer.Name, 30 /* minutes */, msg); } server.Data.setInt(kCounter, warnings+1); return false;This will prohibit M93R|Glock18|SerbuShorty and allow the kill categories Suicide, Melee, Nonlethal and None. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted April 18, 2014 Author Share Posted April 18, 2014 Originally Posted by PapaCharlie9*: @PapaCharlie9 I'm almost scared to ask a question without being flamedNo need to be scared, as long as you don't post the same question in 2 or 3 different forums and send me a PM with the same question. Pick which plugin you want to use, Procon Rulz or Insane Limits. Then, ask your question in the appropriate thread. If you ask here, you are asking about Insane Limits, so any reference to Procon Rulz is just wasting everyone's time, including yours. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted April 18, 2014 Author Share Posted April 18, 2014 Originally Posted by swift*: thank you so much i racked my brain trying to figure out..i was putting it on proconRulz i didnt know i could of used Insane Limits thank you again TMiland * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted April 21, 2014 Author Share Posted April 21, 2014 Originally Posted by TMiland*: Glad you got it working! :-) Sent from my GT-I9100 using Tapatalk * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted April 29, 2014 Author Share Posted April 29, 2014 Originally Posted by VBK-Clan*: Hi, Papacharlie thanks for great plug ins I need for our 32 slot pistol and knife server code but wants to be kicked in g18 93R and shorty and all other weapons people immediately defi and razor should be allowed can you please help? and yell after first spawn rules etc.. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted April 30, 2014 Author Share Posted April 30, 2014 Originally Posted by TMiland*: Hi, Papacharlie thanks for great plug ins I need for our 32 slot pistol and knife server code but wants to be kicked in g18 93R and shorty and all other weapons people immediately defi and razor should be allowed can you please help? and yell after first spawn rules etc.. If you see 4 posts above yours, you have it! * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted May 4, 2014 Author Share Posted May 4, 2014 Originally Posted by hepl2000*: i am in bf3 procon using proconrulz i need a pistol melee only but with no automatic pistos(g18, m93r) i didn't find a script for bf3 only for bf4, but i found this code from a rusan page, it works fine but i want to kill/kick wit g18 and 93R pistol use. I add Code: # kill/kick for using G18 & 93R (PART NOT WORKING) On Kill;Weapon Glock18;Weapon M93R;PlayerCount 2;Log %p% kicked (NO G18 & 93R);Kick %p% NO AUTOMATIC PISTOLS On Kill;Weapon Glock18;Weapon M93R;Say %p% kill for using AUTOMATIC PISTOLS;Kill 100but did not work... here the complete script anybody can tellme where is the error? Code: #BF3 TEST SCRICPT PROCONRULZ only pistols/melee/defib/repair tool (no g18 & 93r) On Kill;TeamFirst;Say %p%: first %pt% kill against %v%. On Kill;Weapon Weapons/Knife/Knife,Melee;ServerFirst;Say %p%: first knife against %v%. On Kill;Headshot;ServerFirst;Say %p%: first headshot against %v%. On Kill;Headshot;Rate 14 60;Ban %p% Aimbot banned by codekillers.net; # Melee Rule On Kill;Damage Melee;Say %p% took the soul of %v%, %v% should be ashamed. # G18 y 93R On Kill;Weapon Glock18;Weapon M93R;PlayerCount 2;Log %p% kicked (NO G18 & 93R);Kick %p% NO AUTOMATIC PISTOLS On Kill;Weapon Glock18;Weapon M93R;Say %p% kill for using AUTOMATIC PISTOLS;Kill 100 On Kill;Not Damage Melee;Not Damage Handgun;PlayerCount 2;Log %p% kicked (KNIFE & PISTOLS ONLY);Kick %p% pistols only On Kill;Not Damage Melee;Not Damage Handgun;Say %p% was killed KNIFE & PISTOLS ONLY;Kill 100 On Kill;Damage Explosive;PlayerCount 2;Log %p% kicked (KNIFE & PISTOLS ONLY);Kick %p% pistols&knife only On Kill;Damage Explosive;Say %p% was killed KNIFE & PISTOLS ONLY;Kill 100 On Kill;Damage ProjectileExplosive;PlayerCount 2;Log %p% banned;Ban %p% pistol & knife only! On Kill;Damage ProjectileExplosive;PlayerSay %p% Pistol & Knife Only!;Kill 100 On Kill;Weapon Repair&Tool;Say %v% got burned by %p% (%w%) On Kill;Weapon Defib;Say %v% was shockingly surprised by %p% (%w%) # Claymore test #On Kill;Weapon Weapons/Gadgets/Claymore/Claymore;PlayerSay %p% No Claymores!!!; On Kill;Weapon Weapons/Gadgets/Claymore/Claymore PlayerCount 5;PlayerSay %p% You have NO claymore kills left, you have been punished!;Say %p% Has NO claymore kills left and has been punished!;Kill PlayerCount 4;PlayerSay %p% You have NO claymore kills left; PlayerCount 3;PlayerSay %p% You have 1 claymore kills left; PlayerCount 2;PlayerSay %p% You have 2 claymore kills left; PlayerCount 1;PlayerSay %p% You have 3 claymore kills left; PlayerCount 0;PlayerSay %p% You have 4 claymore kills left; # Unreal Tournament Kill Streak Announcer by ty_ger07 #### Announcements of killstreak ending: On Kill;If %server_streak[%v%]% >= 5;Say %p% ENDED %v%'s %server_streak[%v%]%-KILL STREAK with %w% On TeamKill;If %server_streak[%v%]% >= 5;Say %p%'s TEAMKILL ENDED %v%'s %server_streak[%v%]%-KILL STREAK with %w% On Suicide;If %server_streak[%p%]% >= 5;Say %p% ENDED their %server_streak[%p%]%-KILL STREAK with a SUICIDE #### Reset the player's streak count when they are killed: On Kill;Set %server_streak[%v%]% 0 On TeamKill;Set %server_streak[%v%]% 0 On Suicide;Set %server_streak[%v%]% 0 #### Reset killincr to 0 if server_streak is 0 On Kill;If %server_streak[%p%]% == 0;Set %killincr% 0 #### Accumulate the kill count for each player in a var %server_streak[playername]% On Kill;Incr %killincr%;Incr %server_streak[%p%]%; #### Say periodic killstreak messages On Kill;If %killincr% == 30;Set %killincr% 25;PlayerSay GodLike! %p% %server_streak[%p%]% KILL STREAK On Kill;If %server_streak[%p%]% == 25;PlayerSay GodLike! %p% 25-KILL STREAK On Kill;If %server_streak[%p%]% == 20;PlayerSay Unstoppable! %p% 20-KILL STREAK On Kill;If %server_streak[%p%]% == 15;PlayerSay Dominating! %p% 15-KILL STREAK On Kill;If %server_streak[%p%]% == 10;PlayerSay Rampage! %p% 10-KILL STREAK On Kill;If %server_streak[%p%]% == 5;PlayerSay Killing Spree! %p% 5-KILL STREAK On Kill;Map Subway;Weapon Roadkill;PlayerCount 5;Log %p% banned for MAV;Ban %p% MAV use On Kill;Map Subway;Weapon Roadkill;PlayerCount 3;Log %p% kicked for MAV;Kick %p% MAV use On Kill;Map Subway;Weapon Roadkill;PlayerSay %p% no MAV;Kill 100 On Kill;Weapon Death; PlayerCount 32;Say %p% kicked for vehicle kills;Kick kicked for vehicle kills PlayerCount 20;Say %p% slayed for vehicle kill %c%/5;Kill 100 Say %p% - no vehicle kills (#%c%/5) * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted May 4, 2014 Author Share Posted May 4, 2014 Originally Posted by PapaCharlie9*: i am in bf3 procon using proconrulz i need a pistol melee only but with no automatic pistos(g18, m93r) i didn't find a script for bf3 only for bf4, but i found this code from a rusan page, it works fine but i want to kill/kick wit g18 and 93R pistol use. I add Code: # kill/kick for using G18 & 93R (PART NOT WORKING) On Kill;Weapon Glock18;Weapon M93R;PlayerCount 2;Log %p% kicked (NO G18 & 93R);Kick %p% NO AUTOMATIC PISTOLS On Kill;Weapon Glock18;Weapon M93R;Say %p% kill for using AUTOMATIC PISTOLS;Kill 100but did not work... here the complete script anybody can tellme where is the error? Code: #BF3 TEST SCRICPT PROCONRULZ only pistols/melee/defib/repair tool (no g18 & 93r) On Kill;TeamFirst;Say %p%: first %pt% kill against %v%. On Kill;Weapon Weapons/Knife/Knife,Melee;ServerFirst;Say %p%: first knife against %v%. On Kill;Headshot;ServerFirst;Say %p%: first headshot against %v%. On Kill;Headshot;Rate 14 60;Ban %p% Aimbot banned by codekillers.net; # Melee Rule On Kill;Damage Melee;Say %p% took the soul of %v%, %v% should be ashamed. # G18 y 93R On Kill;Weapon Glock18;Weapon M93R;PlayerCount 2;Log %p% kicked (NO G18 & 93R);Kick %p% NO AUTOMATIC PISTOLS On Kill;Weapon Glock18;Weapon M93R;Say %p% kill for using AUTOMATIC PISTOLS;Kill 100 On Kill;Not Damage Melee;Not Damage Handgun;PlayerCount 2;Log %p% kicked (KNIFE & PISTOLS ONLY);Kick %p% pistols only On Kill;Not Damage Melee;Not Damage Handgun;Say %p% was killed KNIFE & PISTOLS ONLY;Kill 100 On Kill;Damage Explosive;PlayerCount 2;Log %p% kicked (KNIFE & PISTOLS ONLY);Kick %p% pistols&knife only On Kill;Damage Explosive;Say %p% was killed KNIFE & PISTOLS ONLY;Kill 100 On Kill;Damage ProjectileExplosive;PlayerCount 2;Log %p% banned;Ban %p% pistol & knife only! On Kill;Damage ProjectileExplosive;PlayerSay %p% Pistol & Knife Only!;Kill 100 On Kill;Weapon Repair&Tool;Say %v% got burned by %p% (%w%) On Kill;Weapon Defib;Say %v% was shockingly surprised by %p% (%w%) # Claymore test #On Kill;Weapon Weapons/Gadgets/Claymore/Claymore;PlayerSay %p% No Claymores!!!; On Kill;Weapon Weapons/Gadgets/Claymore/Claymore PlayerCount 5;PlayerSay %p% You have NO claymore kills left, you have been punished!;Say %p% Has NO claymore kills left and has been punished!;Kill PlayerCount 4;PlayerSay %p% You have NO claymore kills left; PlayerCount 3;PlayerSay %p% You have 1 claymore kills left; PlayerCount 2;PlayerSay %p% You have 2 claymore kills left; PlayerCount 1;PlayerSay %p% You have 3 claymore kills left; PlayerCount 0;PlayerSay %p% You have 4 claymore kills left; # Unreal Tournament Kill Streak Announcer by ty_ger07 #### Announcements of killstreak ending: On Kill;If %server_streak[%v%]% >= 5;Say %p% ENDED %v%'s %server_streak[%v%]%-KILL STREAK with %w% On TeamKill;If %server_streak[%v%]% >= 5;Say %p%'s TEAMKILL ENDED %v%'s %server_streak[%v%]%-KILL STREAK with %w% On Suicide;If %server_streak[%p%]% >= 5;Say %p% ENDED their %server_streak[%p%]%-KILL STREAK with a SUICIDE #### Reset the player's streak count when they are killed: On Kill;Set %server_streak[%v%]% 0 On TeamKill;Set %server_streak[%v%]% 0 On Suicide;Set %server_streak[%v%]% 0 #### Reset killincr to 0 if server_streak is 0 On Kill;If %server_streak[%p%]% == 0;Set %killincr% 0 #### Accumulate the kill count for each player in a var %server_streak[playername]% On Kill;Incr %killincr%;Incr %server_streak[%p%]%; #### Say periodic killstreak messages On Kill;If %killincr% == 30;Set %killincr% 25;PlayerSay GodLike! %p% %server_streak[%p%]% KILL STREAK On Kill;If %server_streak[%p%]% == 25;PlayerSay GodLike! %p% 25-KILL STREAK On Kill;If %server_streak[%p%]% == 20;PlayerSay Unstoppable! %p% 20-KILL STREAK On Kill;If %server_streak[%p%]% == 15;PlayerSay Dominating! %p% 15-KILL STREAK On Kill;If %server_streak[%p%]% == 10;PlayerSay Rampage! %p% 10-KILL STREAK On Kill;If %server_streak[%p%]% == 5;PlayerSay Killing Spree! %p% 5-KILL STREAK On Kill;Map Subway;Weapon Roadkill;PlayerCount 5;Log %p% banned for MAV;Ban %p% MAV use On Kill;Map Subway;Weapon Roadkill;PlayerCount 3;Log %p% kicked for MAV;Kick %p% MAV use On Kill;Map Subway;Weapon Roadkill;PlayerSay %p% no MAV;Kill 100 On Kill;Weapon Death; PlayerCount 32;Say %p% kicked for vehicle kills;Kick kicked for vehicle kills PlayerCount 20;Say %p% slayed for vehicle kill %c%/5;Kill 100 Say %p% - no vehicle kills (#%c%/5) You posted in the wrong thread by mistake. This is an Insane Limits thread, not ProconRulz. You probably meant this one: myrcon.net/.../proconrulz-battlefield-4-pistols-and-melee-script * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted May 20, 2014 Author Share Posted May 20, 2014 Originally Posted by guapoloko*: Papa9, this is correct? It seems that sometimes stops working. First Check: Expression Code: kill.Weapon == "U_M98B" || !Regex.Match(kill.Weapon, @"(U_Taurus44|U_HK45C|U_CZ75|U_FN57|U_M1911|U_M9|U_M93R|U_MP412Rex|U_MP443|U_P226|U_QSZ92|U_SW40|U_GLOCK18|U_Defib|Melee|Suicide|SoldierCollision|DamageArea|Death)", RegexOptions.IgnoreCase).SuccessSecound Check: CodeCode: double count = limit.Activations(player.Name); if (count == 1) { plugin.KillPlayer(player.Name); plugin.SendPlayerMessage(player.Name, plugin.R ("%p_n%, THIS IS A PISTOL 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 PILTOL ONLY SERVER")); plugin.PRoConChat(plugin.R("%p_n% WAS KICKED FOR HAVING PROHIBITED WEAPON USED IN SERVER.")); } return false; * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted May 20, 2014 Author Share Posted May 20, 2014 Originally Posted by PapaCharlie9*: Papa9, this is correct? It seems that sometimes stops working.Change second_check to this: Secound Check: Code 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 PISTOL ONLY SERVER, DO NOT USE %w_n% AGAIN! NEXT TIME KICK")); } else { plugin.KickPlayerWithMessage(player.Name, plugin.R("%p_n%, KICKED YOU FOR USING %w_n% ON PILTOL ONLY SERVER")); plugin.PRoConChat(plugin.R("%p_n% WAS KICKED FOR HAVING PROHIBITED WEAPON USED IN SERVER.")); } return false;You could also change first_check to this Expression: Code: kill.Category != "Handgun" && !Regex.Match(kill.Weapon, @"(U_Defib|Melee|Suicide|SoldierCollision|DamageArea|Death)", RegexOptions.IgnoreCase).Success * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted May 21, 2014 Author Share Posted May 21, 2014 Originally Posted by guapoloko*: Many thanks once again Papa9! * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted May 22, 2014 Author Share Posted May 22, 2014 Originally Posted by guapoloko*: Papa9, is possible to combine these two expressions: Code: kill.Category != "Handgun" && !Regex.Match(kill.Weapon, @"(U_Defib|Melee|Suicide|SoldierCollision|DamageArea|Death)", RegexOptions.IgnoreCase).SuccessCode: (Regex.Match(server.MapFileName, @"(_:MP_Prison|Metro)", RegexOptions.IgnoreCase).Success && Regex.Match(kill.Weapon, @"(C4|NLAW|RPG7|SMAW|SRAW|M320|M67|V40|Grenade_RGO|MGL|XM25|M34|Claymore|m224|Handflare|Flashbang|M18|M67|V40|M15|SLAM)", RegexOptions.IgnoreCase).Success) * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted May 22, 2014 Author Share Posted May 22, 2014 Originally Posted by TMiland*: Papa9, is possible to combine these two expressions: Code: kill.Category != "Handgun" && !Regex.Match(kill.Weapon, @"(U_Defib|Melee|Suicide|SoldierCollision|DamageArea|Death)", RegexOptions.IgnoreCase).SuccessCode: (Regex.Match(server.MapFileName, @"(_:MP_Prison|Metro)", RegexOptions.IgnoreCase).Success && Regex.Match(kill.Weapon, @"(C4|NLAW|RPG7|SMAW|SRAW|M320|M67|V40|Grenade_RGO|MGL|XM25|M34|Claymore|m224|Handflare|Flashbang|M18|M67|V40|M15|SLAM)", RegexOptions.IgnoreCase).Success) Try this: Code: Regex.Match(server.MapFileName, @"(_:MP_Prison|XP0_Metro)", RegexOptions.IgnoreCase).Success && Regex.Match(kill.Category, @"(Handgun|Explosive|Impact)").Success * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted May 22, 2014 Author Share Posted May 22, 2014 Originally Posted by guapoloko*: Try this: Code: Regex.Match(server.MapFileName, @"(_:MP_Prison|XP0_Metro)", RegexOptions.IgnoreCase).Success && Regex.Match(kill.Category, @"(Handgun|Explosive|Impact)").Success TMiland, I want to keep the server as guns and knives only, and prohibit explosives. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted May 22, 2014 Author Share Posted May 22, 2014 Originally Posted by TMiland*: TMiland, I want to keep the server as guns and knives only, and prohibit explosives.Then the original limit will work, since only knifes and pistols are allowed. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted May 22, 2014 Author Share Posted May 22, 2014 Originally Posted by guapoloko*: Then the original limit will work, since only knifes and pistols are allowed.I understand, but the use of artifacts this too unfortunately have no way to prevent the use, only use followed by death. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted May 22, 2014 Author Share Posted May 22, 2014 Originally Posted by TMiland*: I understand, but the use of artifacts this too unfortunately have no way to prevent the use, only use followed by death.I am using this: Code: ((kill.Category != "Handgun" || Regex.Match(kill.Weapon, @"(M93R|Glock18|SerbuShorty)", RegexOptions.IgnoreCase).Success) && !(kill.Category == "Suicide" || kill.Category == "Melee" || kill.Category == "Nonlethal" || kill.Category == "None"))That should cover exploding barrels and gas tanks, plus some other stuff. And M93R|Glock18|SerbuShorty is NOT allowed. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted May 22, 2014 Author Share Posted May 22, 2014 Originally Posted by guapoloko*: I am using this: Code: ((kill.Category != "Handgun" || Regex.Match(kill.Weapon, @"(M93R|Glock18|SerbuShorty)", RegexOptions.IgnoreCase).Success) && !(kill.Category == "Suicide" || kill.Category == "Melee" || kill.Category == "Nonlethal" || kill.Category == "None"))That should cover exploding barrels and gas tanks, plus some other stuff. And M93R|Glock18|SerbuShorty is NOT allowed. And being released M93R and the Glock 18 as would be the expression? * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted May 22, 2014 Author Share Posted May 22, 2014 Originally Posted by PapaCharlie9*: TMiland is right, but the maps still need to be combined. Try this: Code: Regex.Match(server.MapFileName, @"(_:MP_Prison|XP0_Metro)", RegexOptions.IgnoreCase).Success && kill.Category != "Handgun" && !Regex.Match(kill.Weapon, @"(U_Defib|Melee|Suicide|SoldierCollision|DamageArea|Death)", RegexOptions.IgnoreCase).Success * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted May 22, 2014 Author Share Posted May 22, 2014 Originally Posted by TMiland*: And being released M93R and the Glock 18 as would be the expression?Didn't understand, please elaborate. Edit: Thanks PC9 * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted May 22, 2014 Author Share Posted May 22, 2014 Originally Posted by guapoloko*: TMiland is right, but the maps still need to be combined. Try this: Code: Regex.Match(server.MapFileName, @"(_:MP_Prison|XP0_Metro)", RegexOptions.IgnoreCase).Success && kill.Category != "Handgun" && !Regex.Match(kill.Weapon, @"(U_Defib|Melee|Suicide|SoldierCollision|DamageArea|Death)", RegexOptions.IgnoreCase).Success Papa9, to map rotation just add the maps "(: MP_Prison | XP0_Metro)"? Thank you for your help TMiland like to know as much as you. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted May 23, 2014 Author Share Posted May 23, 2014 Originally Posted by TMiland*: Papa9, to map rotation just add the maps "(: MP_Prison | XP0_Metro)"? Thank you for your help TMiland like to know as much as you. PC9 is my teacher If you want more maps, add them like this: Code: (_:MP_Prison|XP0_Metro[b]|MapName3|MapName4[/b]) * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted May 23, 2014 Author Share Posted May 23, 2014 Originally Posted by PapaCharlie9*: Papa9, to map rotation just add the maps "(: MP_Prison | XP0_Metro)"?When you said you wanted to combine the two expressions, I thought you meant the maps also. What I suggested "try this" above means: For Op. Locker and Metro 2014 only, punish weapons that are not Handgun, Defib, Melee (knife), Suicide, SoldierCollision, DamageArea or Death. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted December 20, 2014 Author Share Posted December 20, 2014 Originally Posted by p19blo*: im using this to restrict certain weapons on my server when when i add this code Code: ! Regex.Match(kill.Weapon, @"(U_A91|U_ACR|U_AEK971|U_AK12|U_AK5C|U_AKU12|U_AMR2|U_AMR2_CQB|U_AMR2_MED|U_AR160|U_ASVAL|U_AWS|U_Bulldog|U_CBJ-MS|U_CS-LR4|U_CS5|U_CZ805|U_CZ75|U_DesertEagle|U_Defib|EODBot|U_F2000|U_FAMAS|U_Flashbang|U_FN57|U_FY-JS|U_G36C|U_GalilACE|U_GalilACE23|U_GalilACE52|U_GalilACE53|U_Glock18|U_GOL|U_Grenade_RGO|U_HK45C|U_JNG90|U_JS2|U_L85A2|U_L96A1|U_LSAT|U_M16A4|U_M1911|U_M200|U_M240|U_M249|U_M39EBR|U_M40A5|U_M416|U_M4A1|U_M60E4|U_M67|U_M82A3|U_M82A3_CQB|U_M82A3_MED|U_M9|U_M93R|U_M98B|U_MagpulPDR|U_Medkit|U_MG4|U_MK11|U_MP7|U_MP412Rex|U_MP443|U_MTAR21|U_MPX|U_MX4|U_P226|U_P90|U_Pecheneg|U_PortableMedicpack|U_PP2000|U_QBB95|U_QBU88|U_QBZ951|U_QSZ92|U_Repairtool|U_RFB|U_RPK12|U_RPK-74|U_SAR21|U_SCAR-H|U_SCAR-HSV|U_Scorpion|U_Scout|U_SG553LB|U_SKS|U_SR2|U_SR338|U_SRS|U_SteyrAug|U_SV98|U_SVD12|U_SW40|U_Taurus44|U_Type88|U_Type95B|U_Ultimax|U_UMP9|U_UMP45|U_Unica6|U_V4|Melee|Suicide|SoldierCollision|DamageArea|Death|)", RegexOptions.IgnoreCase)i get this error Code: [16:21:32 88] [Insane Limits] ERROR: (CS0023, line: 27, column: 23): Operator '!' cannot be applied to operand of type 'System.Text.RegularExpressions.Match' * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted December 20, 2014 Author Share Posted December 20, 2014 Originally Posted by PapaCharlie9*: im using this to restrict certain weapons on my server when when i add this code Code: ! Regex.Match(kill.Weapon, @"(U_A91|U_ACR|U_AEK971|U_AK12|U_AK5C|U_AKU12|U_AMR2|U_AMR2_CQB|U_AMR2_MED|U_AR160|U_ASVAL|U_AWS|U_Bulldog|U_CBJ-MS|U_CS-LR4|U_CS5|U_CZ805|U_CZ75|U_DesertEagle|U_Defib|EODBot|U_F2000|U_FAMAS|U_Flashbang|U_FN57|U_FY-JS|U_G36C|U_GalilACE|U_GalilACE23|U_GalilACE52|U_GalilACE53|U_Glock18|U_GOL|U_Grenade_RGO|U_HK45C|U_JNG90|U_JS2|U_L85A2|U_L96A1|U_LSAT|U_M16A4|U_M1911|U_M200|U_M240|U_M249|U_M39EBR|U_M40A5|U_M416|U_M4A1|U_M60E4|U_M67|U_M82A3|U_M82A3_CQB|U_M82A3_MED|U_M9|U_M93R|U_M98B|U_MagpulPDR|U_Medkit|U_MG4|U_MK11|U_MP7|U_MP412Rex|U_MP443|U_MTAR21|U_MPX|U_MX4|U_P226|U_P90|U_Pecheneg|U_PortableMedicpack|U_PP2000|U_QBB95|U_QBU88|U_QBZ951|U_QSZ92|U_Repairtool|U_RFB|U_RPK12|U_RPK-74|U_SAR21|U_SCAR-H|U_SCAR-HSV|U_Scorpion|U_Scout|U_SG553LB|U_SKS|U_SR2|U_SR338|U_SRS|U_SteyrAug|U_SV98|U_SVD12|U_SW40|U_Taurus44|U_Type88|U_Type95B|U_Ultimax|U_UMP9|U_UMP45|U_Unica6|U_V4|Melee|Suicide|SoldierCollision|DamageArea|Death|)", RegexOptions.IgnoreCase)i get this error Code: [16:21:32 88] [Insane Limits] ERROR: (CS0023, line: 27, column: 23): Operator '!' cannot be applied to operand of type 'System.Text.RegularExpressions.Match' Add .Success to the end: Code: ! Regex.Match(kill.Weapon, @"(U_A91|U_ACR|U_AEK971|U_AK12|U_AK5C|U_AKU12|U_AMR2|U_AMR2_CQB|U_AMR2_MED|U_AR160|U_ASVAL|U_AWS|U_Bulldog|U_CBJ-MS|U_CS-LR4|U_CS5|U_CZ805|U_CZ75|U_DesertEagle|U_Defib|EODBot|U_F2000|U_FAMAS|U_Flashbang|U_FN57|U_FY-JS|U_G36C|U_GalilACE|U_GalilACE23|U_GalilACE52|U_GalilACE53|U_Glock18|U_GOL|U_Grenade_RGO|U_HK45C|U_JNG90|U_JS2|U_L85A2|U_L96A1|U_LSAT|U_M16A4|U_M1911|U_M200|U_M240|U_M249|U_M39EBR|U_M40A5|U_M416|U_M4A1|U_M60E4|U_M67|U_M82A3|U_M82A3_CQB|U_M82A3_MED|U_M9|U_M93R|U_M98B|U_MagpulPDR|U_Medkit|U_MG4|U_MK11|U_MP7|U_MP412Rex|U_MP443|U_MTAR21|U_MPX|U_MX4|U_P226|U_P90|U_Pecheneg|U_PortableMedicpack|U_PP2000|U_QBB95|U_QBU88|U_QBZ951|U_QSZ92|U_Repairtool|U_RFB|U_RPK12|U_RPK-74|U_SAR21|U_SCAR-H|U_SCAR-HSV|U_Scorpion|U_Scout|U_SG553LB|U_SKS|U_SR2|U_SR338|U_SRS|U_SteyrAug|U_SV98|U_SVD12|U_SW40|U_Taurus44|U_Type88|U_Type95B|U_Ultimax|U_UMP9|U_UMP45|U_Unica6|U_V4|Melee|Suicide|SoldierCollision|DamageArea|Death|)", RegexOptions.IgnoreCase).Success * 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.