ImportBot Posted February 27, 2014 Author Share Posted February 27, 2014 Originally Posted by virusdead*: Your market does not correctly it does not killed when utulise player c4 and claymore Code: # INFORMATION ON FIRST SPAWN ## BY COLONELSEVEN On Spawn;Map XP0_Metro;PlayerFirst;PlayerSay ::: No M320HE,M320LVG,Rockets!;PlayerYell ::: No M320HE,M320LVG,Rockets! # BAN CHECK #On Spawn;PlayerFirst;If %ini_bans_[%p%]% == 3;TempBan 86400 %p%, you've been banned 3 times before. Therefore a 24 hour ban.;Set %ini_bans_[%p%]% 0 On Spawn;PlayerOnce;If %ini_bans_[%p%]% > 0;Log ^1%p% ^0has ^2%ini_bans_[%p%]% ^0previous temporary bans. # KILL AND KICK RULES On Kill;Not Weapon U_Flashbang,U_C4,U_C4_Support,U_Claymore,U_Claymore_Recon,U_XM25;Damage Explosive,ProjectileExplosive;PlayerCount 2;Log ::: ^1%p% ^0was BANNED for using a ^1%w%;Incr %ini_bans_[%p%]%;Say ::: BANNED: %p% for using a %w%;TempBan 1800 %p%, No M320HE,M320LVG,Rockets! (30m ban)! You used a %w%. On Kill;Not Weapon U_Flashbang,U_C4,U_C4_Support,U_Claymore,U_Claymore_Recon,U_XM25;Damage Explosive,ProjectileExplosive;PlayerCount 1;Log ::: ^1%p% ^0was KICKED for using a ^1%w%;Say ::: KICKED: %p% for using a %w%;Kick %p%, No M320HE,M320LVG,Rockets! You used a %w%. On Kill;Not Weapon U_Flashbang,U_C4,U_C4_Support,U_Claymore,U_Claymore_Recon,U_XM25;Damage Explosive,ProjectileExplosive;PlayerCount 0;Log ::: ^1%p% ^0has ^1%c%/1 ^0offenses (^1%w%^0);Set %warnyell% 1;Say ::: WARNING: %p%, warning %c%/1 for using a %w%;PlayerSay ::: WARNING: %p%, warning %c%/1 for using a %w%;Kill 100 # WARNING YELL ON SPAWN On Spawn;If %warnyell% == 1;Log ::: warning yell^1 1/1 ^0given to ^1%p%;PlayerYell %p%, you've 1/1 offenses! No M320HE,M320LVG,Rockets! NEXT WILL BE A KICK;Set %warnyell% 0 * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted February 27, 2014 Author Share Posted February 27, 2014 Originally Posted by Sevendot*: @Doom69 Good stuff! Your market does not correctly it does not killed when utulise player c4 and claymore Code: *snip* On Kill;Not Weapon U_Flashbang,U_C4,U_C4_Support,U_Claymore,U_Claymore_Recon,U_XM25;Damage Explosive,ProjectileExplosive; Yes, that script works. It excludes Flashbang, C4, Claymore, Airburst. Meaning, they're allowed. All other explosives are not. Take note that it applies this rule on ALL maps. Not just Metro 2014. Because On Kill;Not Weapon U_Flashbang is written. Not On Kill;Map XP0_Metro;Not Weapon U_Flashbang. Not Weapon - When the Weapon is Not the following..U_Flashbang,U_C4,U_C4_Support,U_Claymore,U_Claymor e_Recon,U_XM25 So, this rule excludes these weapons when the rule is triggered. Because if the weapon is a C4 (of Flash, Clay, Airb.), it stops the rest of the rule. You need to edit and remove the mention of C4,Claymore and Airburst: Not Weapon U_Flashbang,U_C4,U_C4_Support,U_Claymore,U_Claymor e_Recon,U_XM25 So far I've seen copy and pastes from codes supplied in this topic. I've mentioned this before, check out http://www.forsterlewis.com/proconrulz.pdf. This contains all the information you need to fully understand the way ProconRulz processes it's code. English is not your forte, understandable. However, some effort to understanding and attempting to solve the problems you're seeing would be greatly appreciated by me (and others). In turn I will help you when you get stuck! * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted February 27, 2014 Author Share Posted February 27, 2014 Originally Posted by virusdead*: yes I'm not very good at English I myself am French, and I try to understand your script if I understand the script is allowed.U_Flashbang,U_V40,U_M67,U_M34,U_Grenade_RG O Code: # INFORMATION ON FIRST SPAWN On Spawn;Map XP0_Metro;PlayerFirst;PlayerSay ::: METRO 2014: P_EXPLOSIVES ARE NOT ALLOWED;PlayerSay ::: METRO 2014: P_EXPLOSIVES ARE NOT ALLOWED;PlayerSay ::: METRO 2014: P_EXPLOSIVES ARE NOT ALLOWED;PlayerYell ::: METRO 2014: P_EXPLOSIVES ARE NOT ALLOWED # KILL AND KICK RULES On Kill;Map XP0_Metro;Not Weapon U_Flashbang,U_V40,U_M67,U_M34,U_Grenade_RGO;Damage Explosive,ProjectileExplosive;PlayerCount 2;Log ::: ^1%p% ^0was BANNED for using a ^1%w%;Incr %ini_bans_[%p%]%;Say ::: BANNED: %p% for using a %w%;TempBan 1800 %p%, No M320HE,M320LVG,Rockets! (30m ban)! You used a %w%. On Kill;Map XP0_Metro;Not Weapon U_Flashbang,U_V40,U_M67, U_M34,U_Grenade_RGO;Damage Explosive,ProjectileExplosive;PlayerCount 1;Log ::: ^1%p% ^0was KICKED for using a ^1%w%;Say ::: KICKED: %p% for using a %w%;Kick %p%, No M320HE,M320LVG,Rockets! You used a %w%. On Kill;Map XP0_Metro;Not Weapon U_Flashbang,U_V40,U_M67, U_M34,U_Grenade_RGO;Damage Explosive,ProjectileExplosive;PlayerCount 0;Log ::: ^1%p% ^0has ^1%c%/1 ^0offenses (^1%w%^0);Set %warnyell% 1;Say ::: WARNING: %p%, warning %c%/1 for using a %w%;PlayerSay ::: WARNING: %p%, warning %c%/1 for using a %w%;Kill 100 # WARNING YELL ON SPAWN On Spawn;If %warnyell% == 1;Log ::: warning yell^1 1/1 ^0given to ^1%p%;PlayerYell %p%, you've 1/1 offenses! No M320HE,M320LVG,Rockets! NEXT WILL BE A KICK;Set %warnyell% 0 * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted February 27, 2014 Author Share Posted February 27, 2014 Originally Posted by Sevendot*: yes I'm not very good at English I myself am French, and I try to understand your script if I understand the script is allowed.U_Flashbang,U_V40, U_M67, U_M34, U_Grenade_RGO Code: # INFORMATION ON FIRST SPAWN On Spawn;Map XP0_Metro;PlayerFirst;PlayerSay ::: METRO 2014: P_EXPLOSIVES ARE NOT ALLOWED;PlayerSay ::: METRO 2014: P_EXPLOSIVES ARE NOT ALLOWED;PlayerSay ::: METRO 2014: P_EXPLOSIVES ARE NOT ALLOWED;PlayerYell ::: METRO 2014: P_EXPLOSIVES ARE NOT ALLOWED # KILL AND KICK RULES On Kill;Map XP0_Metro;Not Weapon U_Flashbang,U_V40, U_M67, U_M34, U_Grenade_RGO;Damage Explosive,ProjectileExplosive;PlayerCount 2;Log ::: ^1%p% ^0was BANNED for using a ^1%w%;Incr %ini_bans_[%p%]%;Say ::: BANNED: %p% for using a %w%;TempBan 1800 %p%, No M320HE,M320LVG,Rockets! (30m ban)! You used a %w%. On Kill;Map XP0_Metro;Not Weapon U_Flashbang,U_V40, U_M67, U_M34, U_Grenade_RGO;Damage Explosive,ProjectileExplosive;PlayerCount 1;Log ::: ^1%p% ^0was KICKED for using a ^1%w%;Say ::: KICKED: %p% for using a %w%;Kick %p%, No M320HE,M320LVG,Rockets! You used a %w%. On Kill;Map XP0_Metro;Not Weapon U_Flashbang,U_V40, U_M67, U_M34, U_Grenade_RGO;Damage Explosive,ProjectileExplosive;PlayerCount 0;Log ::: ^1%p% ^0has ^1%c%/1 ^0offenses (^1%w%^0);Set %warnyell% 1;Say ::: WARNING: %p%, warning %c%/1 for using a %w%;PlayerSay ::: WARNING: %p%, warning %c%/1 for using a %w%;Kill 100 # WARNING YELL ON SPAWN On Spawn;If %warnyell% == 1;Log ::: warning yell^1 1/1 ^0given to ^1%p%;PlayerYell %p%, you've 1/1 offenses! No M320HE,M320LVG,Rockets! NEXT WILL BE A KICK;Set %warnyell% 0 Exactly! Not Weapon U_Flashbang,U_V40,U_M67,U_M34,U_Grenade_RGO (I have removed the spaces after the comma). This rule you've modified now only continues if the weapon is not a Flashbang, V40, M67, M34 or RGO! And because of this these weapons are excluded from the rule. Good work. Make sure to test your script with a clan member or friend before putting it live! * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted February 28, 2014 Author Share Posted February 28, 2014 Originally Posted by nutter308*: I copied and pasted you code in your first post, but it dosnt kick or ban players. It is saying this in the chat but isn't actually executing the kick/ban on the offending players. Is there anything I may have missed? * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted February 28, 2014 Author Share Posted February 28, 2014 Originally Posted by virusdead*: Exactly! Not Weapon U_Flashbang,U_V40,U_M67,U_M34,U_Grenade_RGO (I have removed the spaces after the comma). This rule you've modified now only continues if the weapon is not a Flashbang, V40, M67, M34 or RGO! And because of this these weapons are excluded from the rule. Good work. Make sure to test your script with a clan member or friend before putting it live! I finally understood how it works and it is installed, and it works wonderfully thank you * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted February 28, 2014 Author Share Posted February 28, 2014 Originally Posted by Sevendot*: I copied and pasted you code in your first post, but it dosnt kick or ban players. It is saying this in the chat but isn't actually executing the kick/ban on the offending players. Is there anything I may have missed?If your server is on Official it won't kick or ban. This only works on Ranked.If your server is Ranked, the script in the first post is still actual and working. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted February 28, 2014 Author Share Posted February 28, 2014 Originally Posted by Metanolo*: Howdy guys! I'm looking to negate explosive projectiles in domination only, is it possible to filter by game mode and not only by map? * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted February 28, 2014 Author Share Posted February 28, 2014 Originally Posted by Sevendot*: Howdy guys! I'm looking to negate explosive projectiles in domination only, is it possible to filter by game mode and not only by map? In stead of Map MP0_Metro; use MapMode Domination; or MapMode Domination0. Not entirely sure, haven't utilized it yet.Try it out. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 1, 2014 Author Share Posted March 1, 2014 Originally Posted by Yupster*: Thanks Sevendot...........works a treat now I still get idiots who say they didn't know it's no explosives but those idiots never read anything including the server title and chat/yells.............. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 1, 2014 Author Share Posted March 1, 2014 Originally Posted by Metanolo*: ...use MapMode Domination;...It works perfectly fine, thank you! * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 3, 2014 Author Share Posted March 3, 2014 Originally Posted by nutter308*: If your server is on Official it won't kick or ban. This only works on Ranked. If your server is Ranked, the script in the first post is still actual and working. Thanks for the reply seven. Our server is running Ranked, I find it really odd because the script is trying to execute the Kick/Ban command but it doesn't go through with the command. I'll keep trying and if I find a solution ill post it incase anyone else runs into the same problems. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 4, 2014 Author Share Posted March 4, 2014 Originally Posted by Sevendot*: Thanks for the reply seven. Our server is running Ranked, I find it really odd because the script is trying to execute the Kick/Ban command but it doesn't go through with the command. I'll keep trying and if I find a solution ill post it incase anyone else runs into the same problems. What's the version of your ProconRulz? You require 44j.1 at least. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 4, 2014 Author Share Posted March 4, 2014 Originally Posted by Hutchew*: Any way to set multiple kills with one grenade/explosive only count as 1 offense? If someone gets 3+ kills right away, it earns them a ban without any other warnings, correct? Thanks, Hutchew * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 5, 2014 Author Share Posted March 5, 2014 Originally Posted by Sevendot*: Any way to set multiple kills with one grenade/explosive only count as 1 offense? If someone gets 3+ kills right away, it earns them a ban without any other warnings, correct? Thanks, Hutchew Try adding Not Rate 3 1; to the mix. This should make the rule only pass if the rate of kills is not 3 in 1 second. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 5, 2014 Author Share Posted March 5, 2014 Originally Posted by Slayer*: Try adding Not Rate 3 1; to the mix. This should make the rule only pass if the rate of kills is not 3 in 1 second.Does that Not Rate 3 1; go before the ;Damage or after the Explosive,ProjectileExplosive; in the kill line only? like I did below in the rule, or does it go into each line in the rule? Kill line. Code: On Kill;Not Weapon U_Flashbang,U_C4,U_C4_Support,U_Claymore,U_Claymore_Recon,U_Grenade_RGO,U_M34,U_M67,U_V40,U_XM25;Damage Explosive,ProjectileExplosive;Not Rate 3 1;PlayerCount 0;Log ::: ^1%p% ^0has ^1%c%/1 ^0offenses (^1%w%^0);Set %warnyell% 1;Say ::: WARNING: %p%, warning %c%/1 for using a %w%;PlayerSay ::: WARNING: %p%, warning %c%/1 for using a %w%;Kill 100So if I understand it correctly the Not Rate 3 1; in the kill line will kill the player for the first infraction like normal but if it detects a multi kill of say 3 the rule wont take them straight to a temp ban but just kill them as if it was just one infraction, unless it was 4 kills then BAM lol. Then the rest of the rule after the first kill command will still carry on as normal, (unless the person then gets multi kill and gets kicked and temp banned in the one action which doesn't bother me as they should have learnt from the first server kill, combined with all the server messages running.) Full rule. Code: ## BY COLONELSEVEN - Modified by Doom69 aka -Slayer- # INFORMATION ON FIRST SPAWN On Spawn;PlayerFirst;PlayerSay ::: No M320HE,M320LVG,M32MGL,Rockets!;PlayerYell ::: No M320HE,M320LVG,M32MGL,Rockets! # BAN CHECK On Spawn;PlayerFirst;If %ini_bans_[%p%]% == 5;TempBan 86400 %p%, you've been banned 5 times before. Therefore a 24 hour ban.;Set %ini_bans_[%p%]% 0 On Spawn;PlayerOnce;If %ini_bans_[%p%]% > 0;Log ^1%p% ^0has ^2%ini_bans_[%p%]% ^0previous temporary bans. # KILL AND KICK RULES On Kill;Not Weapon U_Flashbang,U_C4,U_C4_Support,U_Claymore,U_Claymore_Recon,U_Grenade_RGO,U_M34,U_M67,U_V40,U_XM25;Damage Explosive,ProjectileExplosive;PlayerCount 2;Log ::: ^1%p% ^0was BANNED for using a ^1%w%;Incr %ini_bans_[%p%]%;Say ::: BANNED: %p% for using a %w%;TempBan 1800 %p%, No M320HE,M320LVG,M32MGL,Rockets! (30m ban)! You used a %w%. On Kill;Not Weapon U_Flashbang,U_C4,U_C4_Support,U_Claymore,U_Claymore_Recon,U_Grenade_RGO,U_M34,U_M67,U_V40,U_XM25;Damage Explosive,ProjectileExplosive;PlayerCount 1;Log ::: ^1%p% ^0was KICKED for using a ^1%w%;Say ::: KICKED: %p% for using a %w%;Kick %p%, No M320HE,M320LVG,M32MGL,Rockets! You used a %w%. On Kill;Not Weapon U_Flashbang,U_C4,U_C4_Support,U_Claymore,U_Claymore_Recon,U_Grenade_RGO,U_M34,U_M67,U_V40,U_XM25;Damage Explosive,ProjectileExplosive;Not Rate 3 1;PlayerCount 0;Log ::: ^1%p% ^0has ^1%c%/1 ^0offenses (^1%w%^0);Set %warnyell% 1;Say ::: WARNING: %p%, warning %c%/1 for using a %w%;PlayerSay ::: WARNING: %p%, warning %c%/1 for using a %w%;Kill 100 # WARNING YELL ON SPAWN On Spawn;If %warnyell% == 1;Log ::: warning yell^1 1/1 ^0given to ^1%p%;PlayerYell %p%, you've 1/1 offenses! No M320HE,M320LVG,M32MGL,Rockets! NEXT WILL BE A KICK;Set %warnyell% 0 * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 5, 2014 Author Share Posted March 5, 2014 Originally Posted by Hutchew*: I was actually thinking more along the lines of something like this: InsaneLimits example* I would assume if it can be done in IL, it can probably be done in ProcRulz, but I haven't the mental capacity to figure it out myself. Whatcha think? Can it be done? Thanks, Hutchew * 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 Sevendot*: I see Doom69 is getting the hang of it! All Activations In stead of using the built-in PlayerCount # (trigger +#) we can use our own counter variable. Untested. Use as example. Code: ## UNTESTED NO EXPLOSIVES # SET KICK AND BAN ROOF # KICKON - SET TO OFFENSE # TO KICK ON - SETS MAXWARN -1 On Spawn;ServerFirst;Set %ini_colseven_kickon% 3 On Spawn;ServerFirst;Set %ini_colseven_maxwarn% %ini_colseven_kickon%-1 # TBANON - SET TO OFFENSE # TO TBAN ON On Spawn;ServerFirst;Set %ini_colseven_tbanon% 4 # PBANON - SET TO OFFENSE # TO BAN ON On Spawn;ServerFirst;Set %ini_colseven_pbanon% 5 # COUNTER FOR EXPLOSIVE KILLS - MAX RATE 1 KILL PER 5 SECONDS On Kill;Damage Explosive,ProjectileExplosive;Rate 1 5;Incr %expl_counter% # HANDLE PUNISHMENT On Kill;If %expl_counter% >= %ini_colseven_pbanon%;Say ::: BANNED: %p%, BANNED for using explosives (%w%).;TempBan 86400 %p%, banned (24HR) for using explosives (%w%). On Kill;If %expl_counter% == %ini_colseven_tbanon%;Say ::: T-BANNED: %p%, BANNED for using explosives (%w%).;TempBan 600 %p%, banned (10MIN) for using explosives (%w%). On Kill;If %expl_counter% == %ini_colseven_kickon%;Say ::: KICKED: %p%, kicked for using explosives (%w%).;Kick %p%, kicked for using explosives (%w%). On Kill;Damage Explosive,ProjectileExplosive;If %expl_counter% <= %ini_colseven_maxwarn%;Say ::: WARNING: %p%, killed for using explosives (%w%). Warning %expl_counter%/%ini_colseven_maxwarn%.;Kill 100Basic script. You can modify it for log entries yourself! * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted April 1, 2014 Author Share Posted April 1, 2014 Originally Posted by betegember*: Hi im using this parameters without problem but now this command give a this message in proconcommandconsole. # KILL AND KICK RULES On Kill;Map XP0_Metro,MP_Prison;Not Weapon U_Flashbang;Damage Explosive,ProjectileExplosive;PlayerCount 2;Log ::: ^1%p% ^0was BANNED for using a ^1%w%;Incr %ini_bans?[%p%]%;Say ::: BANNED: %p% for using a %w%;TempBan 1800 %p%, No M320,Rockets,C4,Nades, Clay on Metro and Locker! (30m ban)! You used a %w%. On Kill;Map XP0_Metro,MP_Prison;Not Weapon U_Flashbang;Damage Explosive,ProjectileExplosive;PlayerCount 1;Log ::: ^1%p% ^0was KICKED for using a ^1%w%;Say ::: KICKED: %p% for using a %w%;Kick %p%, No M320,Rockets,C4,Nades, Clay on Metro and Locker! You used a %w%. On Kill;Map XP0_Metro,MP_Prison;Not Weapon U_Flashbang;Damage Explosive,ProjectileExplosive;Not Rate 3 1;PlayerCount 0;Log ::: ^1%p% ^0has ^1%c%/1 ^0offenses (^1%w%^0);Set %warnyell% 1;Say ::: WARNING: %p%, warning %c%/1 for using a %w%;PlayerSay ::: WARNING: %p%, warning %c%/1 for using a %w%;Kill 100 AND this is problem message in console: [18:44:00 49] ProconRulz: recoverable exception in process_part (ProconRulz will continue...) [18:44:00 49] ProconRulz: process_part rule.unparsed_rule = [On Kill;Map XP0_Metro,MP_Prison;Not Weapon U_Flashbang;Damage Explosive,ProjectileExplosive;Not Rate 3 1;PlayerCount 0;Log ::: %p% has %c%/1 offenses (%w%);Set %warnyell% 1;Say ::: WARNING: %p%, warning %c%/1 for using a %w%;PlayerSay ::: WARNING: %p%, warning %c%/1 for using a %w%;Kill 100] [18:44:00 49] ProconRulz: process_part player_name = [in here player name im delete it] [18:44:00 49] ProconRulz: process_part p.part_type = Map [18:44:00 49] ProconRulz: process_part k.Killer.SoldierName = [in here player name im delete it] [18:44:00 49] ProconRulz: System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt. bei PRoConEvents.ProconRulz.process_part(ParsedRule rule, PartClass p, String player_name, Kill k, String msg, Dictionary`2& keywords) any suggestion ? * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted April 3, 2014 Author Share Posted April 3, 2014 Originally Posted by Slayer*: Hi im using this parameters without problem but now this command give a this message in proconcommandconsole. Code: # KILL AND KICK RULES On Kill;Map XP0_Metro,MP_Prison;Not Weapon U_Flashbang;Damage Explosive,ProjectileExplosive;PlayerCount 2;Log ::: ^1%p% ^0was BANNED for using a ^1%w%;Incr %ini_bans_[%p%]%;Say ::: BANNED: %p% for using a %w%;TempBan 1800 %p%, No M320,Rockets,C4,Nades, Clay on Metro and Locker! (30m ban)! You used a %w%. On Kill;Map XP0_Metro,MP_Prison;Not Weapon U_Flashbang;Damage Explosive,ProjectileExplosive;PlayerCount 1;Log ::: ^1%p% ^0was KICKED for using a ^1%w%;Say ::: KICKED: %p% for using a %w%;Kick %p%, No M320,Rockets,C4,Nades, Clay on Metro and Locker! You used a %w%. On Kill;Map XP0_Metro,MP_Prison;Not Weapon U_Flashbang;Damage Explosive,ProjectileExplosive;Not Rate 3 1;PlayerCount 0;Log ::: ^1%p% ^0has ^1%c%/1 ^0offenses (^1%w%^0);Set %warnyell% 1;Say ::: WARNING: %p%, warning %c%/1 for using a %w%;PlayerSay ::: WARNING: %p%, warning %c%/1 for using a %w%;Kill 100AND this is problem message in console:Code: [18:44:00 49] ProconRulz: recoverable exception in process_part (ProconRulz will continue...) [18:44:00 49] ProconRulz: process_part rule.unparsed_rule = [On Kill;Map XP0_Metro,MP_Prison;Not Weapon U_Flashbang;Damage Explosive,ProjectileExplosive;Not Rate 3 1;PlayerCount 0;Log ::: %p% has %c%/1 offenses (%w%);Set %warnyell% 1;Say ::: WARNING: %p%, warning %c%/1 for using a %w%;PlayerSay ::: WARNING: %p%, warning %c%/1 for using a %w%;Kill 100] [18:44:00 49] ProconRulz: process_part player_name = [in here player name im delete it] [18:44:00 49] ProconRulz: process_part p.part_type = Map [18:44:00 49] ProconRulz: process_part k.Killer.SoldierName = [in here player name im delete it] [18:44:00 49] ProconRulz: System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt. bei PRoConEvents.ProconRulz.process_part(ParsedRule rule, PartClass p, String player_name, Kill k, String msg, Dictionary`2& keywords)any suggestion ?That rule you posted is that the only part of the rule you are using from the full rule? Not sure about the error, make sure Proconrulz is up to date along with your version of procon it all helps. If it is I'd use the full rule depending on whether you want 2 warns them the kick or 1 warn then the kick, there are rules to choose from in these 5 pages of this thread that cover both what your after and with only 5 pages to read you will find the one you want to meet your needs. Seeing you are warning 1 time and then kicking try reworking this one for your needs it's my limited explosives script after some tweaking with help. Just add your maps into it and remove the nades if you don't wont them and redo the warning messages and ban time. Code: ## BY COLONELSEVEN - Modified by Doom69 aka -Slayer- # INFORMATION ON FIRST SPAWN On Spawn;PlayerFirst;PlayerSay ::: No M320HE,M320LVG,M32MGL,Rockets!;PlayerYell ::: No M320HE,M320LVG,M32MGL,Rockets! # BAN CHECK On Spawn;PlayerFirst;If %ini_bans_[%p%]% == 5;TempBan 86400 %p%, you've been banned 5 times before. Therefore a 24 hour ban.;Set %ini_bans_[%p%]% 0 On Spawn;PlayerOnce;If %ini_bans_[%p%]% > 0;Log ^1%p% ^0has ^2%ini_bans_[%p%]% ^0previous temporary bans. # KILL AND KICK RULES On Kill;Not Weapon U_Flashbang,U_C4,U_C4_Support,U_Claymore,U_Claymore_Recon,U_Grenade_RGO,U_M34,U_M67,U_V40,U_XM25;Damage Explosive,ProjectileExplosive;PlayerCount 2;Log ::: ^1%p% ^0was BANNED for using a ^1%w%;Incr %ini_bans_[%p%]%;Say ::: BANNED: %p% for using a %w%;TempBan 1800 %p%, No M320HE,M320LVG,M32MGL,Rockets! (30m ban)! You used a %w%. On Kill;Not Weapon U_Flashbang,U_C4,U_C4_Support,U_Claymore,U_Claymore_Recon,U_Grenade_RGO,U_M34,U_M67,U_V40,U_XM25;Damage Explosive,ProjectileExplosive;PlayerCount 1;Log ::: ^1%p% ^0was KICKED for using a ^1%w%;Say ::: KICKED: %p% for using a %w%;Kick %p%, No M320HE,M320LVG,M32MGL,Rockets! You used a %w%. On Kill;Not Weapon U_Flashbang,U_C4,U_C4_Support,U_Claymore,U_Claymore_Recon,U_Grenade_RGO,U_M34,U_M67,U_V40,U_XM25;Damage Explosive,ProjectileExplosive;Not Rate 3 1;PlayerCount 0;Log ::: ^1%p% ^0has ^1%c%/1 ^0offenses (^1%w%^0);Set %warnyell% 1;Say ::: WARNING: %p%, warning %c%/1 for using a %w%;PlayerSay ::: WARNING: %p%, warning %c%/1 for using a %w%;Kill 100 # WARNING YELL ON SPAWN On Spawn;If %warnyell% == 1;Log ::: warning yell^1 1/1 ^0given to ^1%p%;PlayerYell %p%, you've 1/1 offenses! No M320HE,M320LVG,M32MGL,Rockets! NEXT WILL BE A KICK;Set %warnyell% 0Your script is banning all explosives on those maps so try this one below 1 warn then kick, just change the temp ban time to what you want. Code: ## BY COLONELSEVEN - Modified by -Slayer- # INFORMATION ON FIRST SPAWN On Spawn;Map XP0_Metro,MP_Prison;PlayerFirst;PlayerSay ::: METRO 2014-OPERATION LOCKER: EXPLOSIVES ARE NOT ALLOWED;PlayerSay ::: METRO 2014-OPERATION LOCKER: EXPLOSIVES ARE NOT ALLOWED;PlayerSay ::: METRO 2014-OPERATION LOCKER: EXPLOSIVES ARE NOT ALLOWED;PlayerYell ::: METRO 2014-OPERATION LOCKER: EXPLOSIVES ARE NOT ALLOWED # BAN CHECK On Spawn;PlayerFirst;If %ini_bans_[%p%]% == 5;TempBan 86400 %p%, you've been banned 5 times before. Therefore a 24 hour ban.;Set %ini_bans_[%p%]% 0 On Spawn;PlayerOnce;If %ini_bans_[%p%]% > 0;Log ^1%p% ^0has ^2%ini_bans_[%p%]% ^0previous temporary bans. # KILL AND KICK RULES On Kill;Map XP0_Metro,MP_Prison;Not Weapon U_Flashbang;Damage Explosive,ProjectileExplosive;PlayerCount 2;Log ::: ^1%p% ^0was BANNED for using a ^1%w%;Incr %ini_bans_[%p%]%;Say ::: BANNED: %p% for using a %w%;TempBan 1800 %p%, NO EXPLOSIVES! (30m ban)! You used a %w%. On Kill;Map XP0_Metro,MP_Prison;Not Weapon U_Flashbang;Damage Explosive,ProjectileExplosive;PlayerCount 1;Log ::: ^1%p% ^0was KICKED for using a ^1%w%;Say ::: KICKED: %p% for using a %w%;Kick %p%, NO EXPLOSIVES! You used a %w%. On Kill;Map XP0_Metro,MP_Prison;Not Weapon U_Flashbang;Damage Explosive,ProjectileExplosive;Not Rate 3 1;PlayerCount 0;Log ::: ^1%p% ^0has ^1%c%/1 ^0offenses (^1%w%^0);Set %warnyell% 1;Say ::: WARNING: %p%, warning %c%/1 for using a %w%;PlayerSay ::: WARNING: %p%, warning %c%/1 for using a %w%;Kill 100 # WARNING YELL ON SPAWN On Spawn;Map XP0_Metro,MP_Prison;If %warnyell% == 1;Log ::: warning yell^1 1/1 ^0given to ^1%p%;PlayerYell %p%, you've 1/1 offenses! NO EXPLOSIVES! NEXT WILL BE A KICK;Set %warnyell% 0p.s this might be the blind leading the blind here, so test the script out, it loads into proconrulz without errors though. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted April 8, 2014 Author Share Posted April 8, 2014 Originally Posted by Checka_Wiemi*: Hey guys, I'm also using this awesome procon rule by sevendot. So I got a question. We also got a no explosives metro only server and lots of players are complaining about the shotguns frag ammo. I've already tried a view things to forbid them, but they doesn't count as "Explosive" or "ProjectileExplosive". I've also tried to write "U_M26Mass_Frag" but it doesn't work. Here's the code I'm using right now (It's just a little part of it).: "On Kill;Damage Explosive,ProjectileExplosive,U_M26Mass_Frag;Playe rCount 3;..." If anybody can help me it would be very nice. Thanks :-) * 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*: do you add the codes to rulz.txt filenames? im confused... * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted April 24, 2014 Author Share Posted April 24, 2014 Originally Posted by Sevendot*: Hey guys, I'm also using this awesome procon rule by sevendot. So I got a question. We also got a no explosives metro only server and lots of players are complaining about the shotguns frag ammo. I've already tried a view things to forbid them, but they doesn't count as "Explosive" or "ProjectileExplosive". I've also tried to write "U_M26Mass_Frag" but it doesn't work. Here's the code I'm using right now (It's just a little part of it).: "On Kill;Damage Explosive,ProjectileExplosive,U_M26Mass_Frag;Playe rCount 3;..." If anybody can help me it would be very nice. Thanks :-) I'd go with two rules that act the same but with different conditions:"On Kill;Weapon U_M26Mass_Frag;PlayerCount 3;..." "On Kill;Damage Explosive,ProjectileExplosive;PlayerCount 3;..." On Kill if Weapon U_M26Mass_Frag > Continue Rule. If not Weapon U_M26Mass_Frag > Skip rule and go to next rule. Then: On Kill if Damage Explosive OR ProjectileExplosive > Continue Rule. If not Damage... Etc. Etc. * 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 trans-am*: # KILL AND KICK RULES On Kill;Map XP0_Metro;Not Weapon U_Flashbang;Damage Explosive,ProjectileExplosive;Log ::: ^1%p% ^0has ^2%c%/2 ^0offenses (^1%w%^0);Set %warnyell% 1;Say ::: WARNING: %p%, warning %c%/2 for using a %w%;PlayerSay ::: WARNING: %p%, warning %c%/2 for using a %w%;Kill 100 # WARNING YELL ON SPAWN On Spawn;Map XP0_Metro;If %warnyell% == 2;Log ::: METRO 2014 warning yell^2 2/2 ^0given to ^1%p%;PlayerYell %p%, you've 2/2 offenses! NEXT WILL BE A KICK;Set %warnyell% 0 On Spawn;Map XP0_Metro;If %warnyell% == 1;Log ::: METRO 2014 warning yell^2 1/2 ^0given to ^1%p%;PlayerYell %p%, you've 1/2 offenses! No explosives!;Set %warnyell% 0 What does those in bold mean? Is this classified as Damage Explosive,ProjectileExplosive? XM25 AIRBURST, M320 LVG, M224 MORTAR, UCAV, SUAV, M320 HE, M320 3GL Is this classified as Shortgun? XM25 DART * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted June 4, 2014 Author Share Posted June 4, 2014 Originally Posted by Pat78*: Hi, I read all the posts on this rule and thank you for your work. I find this very boring, but it's been 3 days since I have a problem and I do not understand. Can you help me? On the metro map and locker, we don't want RPG, smaw, M320 (all), no claymore, no C4, only grenade and all And compiling some code on everyone here, I did this. But it does not work, the server kills with grenades v40, RGO, all grenade and why. Normally with this line: Not Weapon U_Flashbang,U_V40,U_M67,U_M34,U_Grenade_RGO The rule should stop, can you tell me what doesn't work? Code: # INFORMATION ON FIRST SPAWN Metro 2014 On Spawn;Map XP0_Metro;PlayerFirst;PlayerSay ::: METRO 2014: P_EXPLOSIVES ARE NOT ALLOWED;PlayerSay ::: METRO 2014: P_EXPLOSIVES ARE NOT ALLOWED;PlayerSay ::: METRO 2014: P_EXPLOSIVES ARE NOT ALLOWED;PlayerYell ::: METRO 2014: RPG,SMAW,M320HE,M320LVG,XM25,C4,Claymore ARE NOT ALLOWED ! # INFORMATION ON FIRST SPAWN O. Locker On Spawn;Map MP_Prison;PlayerFirst;PlayerSay ::: O. Locker: RPG,SMAW,M320HE,M320LVG,XM25,C4,Claymore ARE NOT ALLOWED;PlayerSay ::: O. Locker: RPG,SMAW,M320HE,M320LVG,XM25,C4,Claymore ARE NOT ALLOWED;PlayerSay ::: O. Locker: RPG,SMAW,M320HE,M320LVG,XM25,C4,Claymore ARE NOT ALLOWED;PlayerYell ::: O. Locker: RPG,SMAW,M320HE,M320LVG,XM25,C4,Claymore ARE NOT ALLOWED ! # KILL AND KICK RULES On Kill;Map XP0_Metro,MP_Prison;Not Weapon U_Flashbang,U_V40,U_M67,U_M34,U_Grenade_RGO;Damage Explosive,ProjectileExplosive;PlayerCount 2;Log ::: ^1%p% ^0was BANNED for using a ^1%w%;Incr %ini_bans_[%p%]%;Say ::: BANNED: %p% for using a %w%;TempBan 1800 %p%, No RPG,SMAW,M320HE,M320LVG,XM25,C4,Claymore! (30m ban)! You used a %w%. On Kill;Map XP0_Metro,MP_Prison;Not Weapon U_Flashbang,U_V40,U_M67, U_M34,U_Grenade_RGO;Damage Explosive,ProjectileExplosive;PlayerCount 1;Log ::: ^1%p% ^0was KICKED for using a ^1%w%;Say ::: KICKED: %p% for using a %w%;Kick %p%, No RPG,SMAW,M320HE,M320LVG,XM25,C4,Claymore! You used a %w%. On Kill;Map XP0_Metro,MP_Prison;Not Weapon U_Flashbang,U_V40,U_M67, U_M34,U_Grenade_RGO;Damage Explosive,ProjectileExplosive;PlayerCount 0;Log ::: ^1%p% ^0has ^1%c%/1 ^0offenses (^1%w%^0);Set %warnyell% 1;Say ::: WARNING: %p%, warning %c%/1 for using a %w%;PlayerSay ::: WARNING: %p%, warning %c%/1 for using a %w%;Kill 100 # WARNING YELL ON SPAWN On Spawn;If %warnyell% == 1;Log ::: warning yell^1 1/1 ^0given to ^1%p%;PlayerYell %p%, you've 1/1 offenses! No RPG,SMAW,M320HE,M320LVG,XM25,C4,Claymore! NEXT WILL BE A KICK;Set %warnyell% 0THX * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted June 4, 2014 Author Share Posted June 4, 2014 Originally Posted by trans-am*: Hi, On the metro map and locker, we don't want RPG, smaw, M320 (all), no claymore, no C4, only grenade and all. Code: # KILL AND KICK RULES On Kill;Map XP0_Metro,MP_Prison;Not Weapon U_Flashbang,U_V40,U_M67,U_M34,U_Grenade_RGO;Damage Explosive,ProjectileExplosive;PlayerCount 2;Log ::: ^1%p% ^0was BANNED for using a ^1%w%;Incr %ini_bans_[%p%]%;Say ::: BANNED: %p% for using a %w%;TempBan 1800 %p%, No RPG,SMAW,M320HE,M320LVG,XM25,C4,Claymore! (30m ban)! You used a %w%. On Kill;Map XP0_Metro,MP_Prison;Not Weapon U_Flashbang,U_V40,U_M67, U_M34,U_Grenade_RGO;Damage Explosive,ProjectileExplosive;PlayerCount 1;Log ::: ^1%p% ^0was KICKED for using a ^1%w%;Say ::: KICKED: %p% for using a %w%;Kick %p%, No RPG,SMAW,M320HE,M320LVG,XM25,C4,Claymore! You used a %w%. On Kill;Map XP0_Metro,MP_Prison;Not Weapon U_Flashbang,U_V40,U_M67, U_M34,U_Grenade_RGO;Damage Explosive,ProjectileExplosive;PlayerCount 0;Log ::: ^1%p% ^0has ^1%c%/1 ^0offenses (^1%w%^0);Set %warnyell% 1;Say ::: WARNING: %p%, warning %c%/1 for using a %w%;PlayerSay ::: WARNING: %p%, warning %c%/1 for using a %w%;Kill 100THXI take it as BAN RPG, smaw, M320 (all), claymore,C4 & Allow grenade(all) . Something like what you want is in this thread if you do a little digging See below. Only Projectiles like the RPG are now disallowed. Grenades should be allowed. Make sure to test it first and adjust the lines in red. Code: ## BY COLONELSEVEN # KILL AND KICK RULES On Kill;Map XP0_Metro;Not Weapon U_Flashbang;Damage ProjectileExplosive;PlayerCount 3;Log ::: ^1%p% ^0was BANNED for using a ^1%w%;Say ::: BANNED: %p% for using a %w%;TempBan 1800 %p%, No Explosives (30m ban)! You used a %w%. On Kill;Map XP0_Metro;Not Weapon U_Flashbang;Damage ProjectileExplosive;PlayerCount 2;Log ::: ^1%p% ^0was KICKED for using a ^1%w%;Say ::: KICKED: %p% for using a %w%;Kick %p%, No Explosives on Metro 2014! You used a %w%. On Kill;Map XP0_Metro;Not Weapon U_Flashbang;Damage ProjectileExplosive;PlayerCount 1;Log ::: ^1%p% ^0has ^2%c%/2 ^0offenses (^1%w%^0);Set %warnyell% 2;Say ::: WARNING: %p%, warning %c%/2 for using a %w%;PlayerSay ::: WARNING: %p%, warning %c%/2 for using a %w%;Kill 100 On Kill;Map XP0_Metro;Not Weapon U_Flashbang;Damage ProjectileExplosive;Log ::: ^1%p% ^0has ^2%c%/2 ^0offenses (^1%w%^0);Set %warnyell% 1;Say ::: WARNING: %p%, warning %c%/2 for using a %w%;PlayerSay ::: WARNING: %p%, warning %c%/2 for using a %w%;Kill 100 Here you are:Remove those in Pink Code: # KILL AND KICK RULES On Kill;Map XP0_Metro,MP_Prison;Not Weapon U_Flashbang,U_V40,U_M67,U_M34,U_Grenade_RGO;Damage Explosive,ProjectileExplosive;PlayerCount 2;Log ::: ^1%p% ^0was BANNED for using a ^1%w%;Incr %ini_bans_[%p%]%;Say ::: BANNED: %p% for using a %w%;TempBan 1800 %p%, No RPG,SMAW,M320HE,M320LVG,XM25,C4,Claymore! (30m ban)! You used a %w%. On Kill;Map XP0_Metro,MP_Prison;Not Weapon U_Flashbang,U_V40,U_M67, U_M34,U_Grenade_RGO;Damage Explosive,ProjectileExplosive;PlayerCount 1;Log ::: ^1%p% ^0was KICKED for using a ^1%w%;Say ::: KICKED: %p% for using a %w%;Kick %p%, No RPG,SMAW,M320HE,M320LVG,XM25,C4,Claymore! You used a %w%. On Kill;Map XP0_Metro,MP_Prison;Not Weapon U_Flashbang,U_V40,U_M67, U_M34,U_Grenade_RGO;Damage Explosive,ProjectileExplosive;PlayerCount 0;Log ::: ^1%p% ^0has ^1%c%/1 ^0offenses (^1%w%^0);Set %warnyell% 1;Say ::: WARNING: %p%, warning %c%/1 for using a %w%;PlayerSay ::: WARNING: %p%, warning %c%/1 for using a %w%;Kill 100 I'm not sure this is going to work as what i did was edit the code. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted June 4, 2014 Author Share Posted June 4, 2014 Originally Posted by Pat78*: thank you for this answer, but if I understand correctly, page 2 sevendot said Damage Explosive = Grenades, C4, Claymore etc. Damage ProjectileExplosive = RPG, SRAW, IGLA etc. and I would like the C4 and claymores either the rule "not allowed" And projectileExplosive it's ok for my rules but for the C4 and claymore it's on Explosive If I use this, C4 and claymore is allowed Code: # KILL AND KICK RULES On Kill;Map XP0_Metro,MP_Prison;Not Weapon U_Flashbang,U_V40,U_M67,U_M34,U_Grenade_RGO;Damage Explosive,ProjectileExplosive;PlayerCount 2;Log ::: ^1%p% ^0was BANNED for using a ^1%w%;Incr %ini_bans_[%p%]%;Say ::: BANNED: %p% for using a %w%;TempBan 1800 %p%, No RPG,SMAW,M320HE,M320LVG,XM25,C4,Claymore! (30m ban)! You used a %w%. On Kill;Map XP0_Metro,MP_Prison;Not Weapon U_Flashbang,U_V40,U_M67, U_M34,U_Grenade_RGO;Damage Explosive,ProjectileExplosive;PlayerCount 1;Log ::: ^1%p% ^0was KICKED for using a ^1%w%;Say ::: KICKED: %p% for using a %w%;Kick %p%, No RPG,SMAW,M320HE,M320LVG,XM25,C4,Claymore! You used a %w%. On Kill;Map XP0_Metro,MP_Prison;Not Weapon U_Flashbang,U_V40,U_M67, U_M34,U_Grenade_RGO;Damage Explosive,ProjectileExplosive;PlayerCount 0;Log ::: ^1%p% ^0has ^1%c%/1 ^0offenses (^1%w%^0);Set %warnyell% 1;Say ::: WARNING: %p%, warning %c%/1 for using a %w%;PlayerSay ::: WARNING: %p%, warning %c%/1 for using a %w%;Kill 100it is for this that I put before with Damage Explosive Not Weapon U_Flashbang,U_V40,U_M67, U_M34,U_Grenade_RGO * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted January 31, 2015 Author Share Posted January 31, 2015 Originally Posted by Clandestine_ZA*: Hi there! Thank you for creating wonderful scripts for us to use. I'm looking for a script that bans all explosives. I remember some time ago that there was a scripts that is extremely slim and doesnt specify a list of weapons but instead just includes all in a single rule ;Damage Explosive,ProjectileExplosive Please assist * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted January 31, 2015 Author Share Posted January 31, 2015 Originally Posted by Slayer*: Have a read around the forums and the through this thread I'm sure you'll find one, there's plenty of examples. edit: Also try over ...*, you might find something that suits you needs. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 4, 2015 Author Share Posted March 4, 2015 Originally Posted by Flexsist*: Hallo Leute, Ich habe ein Problem mit ProconRulz. Ich möchte dass auf der Metro Map kein SMAW oder RPG-7 verwendet wird. Dafür habe ich folgendes in den Regeln eingetragen: Code: On Kill; Map MP_Subway; Damage Explosive, ProjectileExplosive RPG?7 On Kill; Map MP_Subway; Damage Explosive, ProjectileExplosive RPG?7; PlayerCount 3; Kick On Kill; Map MP_Subway; Damage Explosive, ProjectileExplosive RPG?7; PlayerCount 2; Kill On Kill; Map MP_Subway; Damage Explosive, ProjectileExplosive RPG?7; PlayerCount 1; Kill On Kill; Map MP_Subway; Damage Explosive, ProjectileExplosive RPG?7; Say No RPG-7 or SMAW on Metro Map, %p% !! On Kill; Map MP_Subway; Damage Explosive, ProjectileExplosive SMAW On Kill; Map MP_Subway; Damage Explosive, ProjectileExplosive SMAW; PlayerCount 3; Kick On Kill; Map MP_Subway; Damage Explosive, ProjectileExplosive SMAW; PlayerCount 2; Kill On Kill; Map MP_Subway; Damage Explosive, ProjectileExplosive SMAW; PlayerCount 1; Kill On Kill; Map MP_Subway; Damage Explosive, ProjectileExplosive SMAW; Say No RPG-7 or SMAW on Metro Map, %p% !!Laut Procon gibt es mit den Codes keine Fehler, doch leider funktioniert es nicht. Was mache ich falsch? (Ich bin ein Procon Noob ^^ ) MfG Flexsist * 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.