ImportBot Posted December 30, 2013 Share Posted December 30, 2013 Originally Posted by C-4-N*: Hello , as lot of people constantly ask for no explosives i have writting one , who everyone will can edit easly it's a big code , i confess , but needed to get simply it 's particulary adpated for explosifs , when a rule is triggered , it only increase by one , no matter number of kills, good for no explosif prevention To adapt it for your needs , you'll only have to change numbers in section with ### EDITABLE ### at top of code the rest will get automaticaly If you test it and seek errors , please let me know, i get lot of test with "On say" but not with "not rate 2 4" on Multikills (thanks bambam for this way to incr only by one counts) Hope you'll like it Code: on spawn;serverfirst ### EDITABLE ### Limite de tolérance , nombre d'effractions ### set %ini_limit_ban% 9 set %ini_limit_tempban% 7 set %ini_limit_kick% 5 set %ini_limit_kill% 3 set %ini_limit_warn% 1 ### EDITABLE ### LIMITS you want apply (ban / tempban / ...) Active with 1 / Desactive with 0 ### set %ini_limit_activeban% 1 set %ini_limit_activetempban% 1 set %ini_limit_activekick% 1 set %ini_limit_activekill% 1 set %ini_limit_activewarn% 1 ### EDITABLE ### WEAPONS choice , Forbid with 1 / Allowed with 0 ### set %ini_limit_claymore% 1 set %ini_limit_c4% 1 set %ini_limit_projectiles_explosives% 1 set %ini_limit_grenades% 1 # Forbidden Weapons, count and sanctions # ### c4 ### On kill;Not rate 2 4;if %ini_limit_c4% == 1;if %wk% contains U_C4; set %ini_c4_%p%% %ini_c4_%p%% + 1 if %ini_limit_activeban% == 1;if %ini_c4_%p%% >= %ini_limit_ban%;Say :::::::::: [%p%] Ban for C4 using !;Ban %p% for C4 (Auto BAN);set %ini_c4_%p%% 0 if %ini_limit_activetempban% == 1;if %ini_c4_%p%% >= %ini_limit_tempban%;if %ini_c4_%p%% < %ini_limit_ban%;Say :::::::::: [%p%] TempBan for C4 using !;tempBan 900 %p% for C4 (Tempban);if %ini_limit_activeban% == 0;set %ini_c4_%p%% 0 On kill;if %wk% contains U_C4;if %ini_limit_activekick% == 1;if %ini_c4_%p%% >= %ini_limit_kick% if %ini_limit_activetempban% == 1;if %ini_c4_%p%% >= %ini_limit_kick%;if %ini_c4_%p%% < %ini_limit_tempban%;Say :::::::::: [%p%] Kick for using C4 !;kick C4 using if %ini_limit_activetempban% == 0;if %ini_c4_%p%% >= %ini_limit_kick%;if %ini_c4_%p%% < %ini_limit_ban%;Say :::::::::: [%p%] Kick for using C4 !;kick C4 using;if %ini_limit_activeban% == 0;set %ini_c4_%p%% 0 On kill;if %wk% contains U_C4;if %ini_limit_activekill% == 1;;if %ini_c4_%p%% >= %ini_limit_kill% if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 1;if %ini_c4_%p%% < %ini_limit_kick%;Say :::::::::: [%p%] kill for C4 using !;kill 100 if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 0;if %ini_c4_%p%% < %ini_limit_kick%;Say :::::::::: [%p%] kill for C4 using !;kill 100 if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 1;if %ini_c4_%p%% < %ini_limit_tempban%;Say :::::::::: [%p%] kill for C4 using !;kill 100 if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 0;if %ini_c4_%p%% < %ini_limit_ban%;Say :::::::::: [%p%] kill for C4 using !;kill 100;if %ini_limit_activeban% == 0;set %ini_c4_%p%% 0 On kill;if %wk% contains U_C4;if %ini_limit_activewarn% == 1;if %ini_limit_activekill% == 1;if %ini_c4_%p%% >= %ini_limit_warn% if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 1;if %ini_c4_%p%% < %ini_limit_kill%;playersay :::::::::: [%p%] Stop C4 using ! if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 1;if %ini_c4_%p%% < %ini_limit_kill%;playersay :::::::::: [%p%] Stop C4 using ! if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 0;if %ini_c4_%p%% < %ini_limit_kill%;playersay :::::::::: [%p%] Stop C4 using ! if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 0;if %ini_c4_%p%% < %ini_limit_kill%;playersay :::::::::: [%p%] Stop C4 using ! On kill;if %wk% contains U_C4;if %ini_limit_activewarn% == 1;if %ini_limit_activekill% == 0;if %ini_c4_%p%% >= %ini_limit_warn% if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 1;if %ini_c4_%p%% < %ini_limit_tempban%;playersay :::::::::: [%p%] Stop C4 using ! if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 1;if %ini_c4_%p%% < %ini_limit_kick%;playersay :::::::::: [%p%] Stop C4 using ! if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 0;if %ini_c4_%p%% < %ini_limit_kick%;playersay :::::::::: [%p%] Stop C4 using ! if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 0;if %ini_c4_%p%% < %ini_limit_ban%;playersay :::::::::: [%p%] Stop C4 using !;if %ini_limit_activeban% == 0;set %ini_c4_%p%% 0 ### claymore ### On kill;Not rate 2 4;if %ini_limit_claymore% == 1;if %wk% contains U_Claymore; set %ini_claymore_%p%% %ini_claymore_%p%% + 1 if %ini_limit_activeban% == 1;if %ini_claymore_%p%% >= %ini_limit_ban%;Say :::::::::: [%p%] Ban for Claymore using !;Ban %p% for C4 (Auto BAN);set %ini_claymore_%p%% 0 if %ini_limit_activetempban% == 1;if %ini_claymore_%p%% >= %ini_limit_tempban%;if %ini_claymore_%p%% < %ini_limit_ban%;Say :::::::::: [%p%] TempBan for C4 using !;tempBan 900 %p% for Claymore (Tempban);if %ini_limit_activeban% == 0;set %ini_claymore_%p%% 0 On kill;if %wk% contains U_Claymore;if %ini_limit_activekick% == 1;if %ini_claymore_%p%% >= %ini_limit_kick% if %ini_limit_activetempban% == 1;if %ini_claymore_%p%% >= %ini_limit_kick%;if %ini_claymore_%p%% < %ini_limit_tempban%;Say :::::::::: [%p%] Kick for using Claymore !;kick Claymore using if %ini_limit_activetempban% == 0;if %ini_claymore_%p%% >= %ini_limit_kick%;if %ini_claymore_%p%% < %ini_limit_ban%;Say :::::::::: [%p%] Kick for using Claymore !;kick Claymore using;if %ini_limit_activeban% == 0;set %ini_claymore_%p%% 0 On kill;if %wk% contains U_Claymore;if %ini_limit_activekill% == 1;if %ini_claymore_%p%% >= %ini_limit_kill% if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 1;if %ini_claymore_%p%% < %ini_limit_kick%;Say :::::::::: [%p%] kill for Claymore using !;kill 100 if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 0;if %ini_claymore_%p%% < %ini_limit_kick%;Say :::::::::: [%p%] kill for Claymore using !;kill 100 if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 1;if %ini_claymore_%p%% < %ini_limit_tempban%;Say :::::::::: [%p%] kill for Claymore using !;kill 100 if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 0;if %ini_claymore_%p%% < %ini_limit_ban%;Say :::::::::: [%p%] kill for Claymore using !;kill 100;if %ini_limit_activeban% == 0;set %ini_claymore_%p%% 0 On kill;if %wk% contains U_Claymore;if %ini_limit_activewarn% == 1;if %ini_limit_activekill% == 1;;if %ini_claymore_%p%% >= %ini_limit_warn% if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 1;if %ini_claymore_%p%% < %ini_limit_kill%;playersay :::::::::: [%p%] Stop Claymore using ! if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 1;if %ini_claymore_%p%% < %ini_limit_kill%;playersay :::::::::: [%p%] Stop Claymore using ! if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 0;if %ini_claymore_%p%% < %ini_limit_kill%;playersay :::::::::: [%p%] Stop Claymore using ! if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 0;if %ini_claymore_%p%% < %ini_limit_kill%;playersay :::::::::: [%p%] Stop Claymore using ! On kill;if %wk% contains U_Claymore;if %ini_limit_activewarn% == 1;if %ini_limit_activekill% == 0;if %ini_claymore_%p%% >= %ini_limit_warn% if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 1;if %ini_claymore_%p%% < %ini_limit_tempban%;playersay :::::::::: [%p%] Stop Claymore using ! if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 1;if %ini_claymore_%p%% < %ini_limit_kick%;playersay :::::::::: [%p%] Stop Claymore using ! if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 0;if %ini_claymore_%p%% < %ini_limit_kick%;playersay :::::::::: [%p%] Stop Claymore using ! if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 0;if %ini_claymore_%p%% < %ini_limit_ban%;playersay :::::::::: [%p%] Stop Claymore using !;if %ini_limit_activeban% == 0;set %ini_claymore_%p%% 0 ### projectiles explosives ### On kill;Not rate 2 4;if %ini_limit_projectiles_explosives% == 1;Damage ProjectileExplosive set %ini_ProjectileExplosive_%p%% %ini_ProjectileExplosive_%p%% + 1 if %ini_limit_activeban% == 1;if %ini_ProjectileExplosive_%p%% >= %ini_limit_ban%;Say :::::::::: [%p%] Ban for Proj.Explo > %w% using !;Ban %p% for Proj.Explo > %w% using !(Auto BAN);set %ini_ProjectileExplosive_%p%% 0 if %ini_limit_activetempban% == 1;if %ini_ProjectileExplosive_%p%% >= %ini_limit_tempban%;if %ini_ProjectileExplosive_%p%% < %ini_limit_ban%;Say :::::::::: [%p%] TempBan for Proj.Explo > %w% using !;tempBan 900 %p% for Proj.Explo > %w% (Tempban);if %ini_limit_activeban% == 0;set %ini_ProjectileExplosive_%p%% 0 On kill;Damage ProjectileExplosive;if %ini_limit_activekick% == 1;if %ini_ProjectileExplosive_%p%% >= %ini_limit_kick% if %ini_limit_activetempban% == 1;if %ini_ProjectileExplosive_%p%% >= %ini_limit_kick%;if %ini_ProjectileExplosive_%p%% < %ini_limit_tempban%;Say :::::::::: [%p%] Kick for Proj.Explo > %w% using !;kick for Proj.Explo > %w% using ! if %ini_limit_activetempban% == 0;if %ini_ProjectileExplosive_%p%% >= %ini_limit_kick%;if %ini_ProjectileExplosive_%p%% < %ini_limit_ban%;Say :::::::::: [%p%] Kick for Proj.Explo > %w% using !;kick for Proj.Explo > %w% using !;if %ini_limit_activeban% == 0;set %ini_ProjectileExplosive_%p%% 0 On kill;Damage ProjectileExplosive;if %ini_limit_activekill% == 1;if %ini_ProjectileExplosive_%p%% >= %ini_limit_kill% if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 1;if %ini_ProjectileExplosive_%p%% < %ini_limit_kick%;Say :::::::::: [%p%] kill for Proj.Explo > %w% using !;kill 100 if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 0;if %ini_ProjectileExplosive_%p%% < %ini_limit_kick%;Say :::::::::: [%p%] kill for Proj.Explo > %w% using !;kill 100 if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 1;if %ini_ProjectileExplosive_%p%% < %ini_limit_tempban%;Say :::::::::: [%p%] kill for Proj.Explo > %w% using !;kill 100 if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 0;if %ini_ProjectileExplosive_%p%% < %ini_limit_ban%;Say :::::::::: [%p%] kill for Proj.Explo > %w% using !;kill 100;if %ini_limit_activeban% == 0;set %ini_ProjectileExplosive_%p%% 0 On kill;Damage ProjectileExplosive;if %ini_limit_activewarn% == 1;if %ini_limit_activekill% == 1;if %ini_ProjectileExplosive_%p%% >= %ini_limit_warn% if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 1;if %ini_ProjectileExplosive_%p%% < %ini_limit_kill%;playersay :::::::::: [%p%] Stop Projectiles Explosives ! if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 1;if %ini_ProjectileExplosive_%p%% < %ini_limit_kill%;playersay :::::::::: [%p%] Stop Projectiles Explosives ! if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 0;if %ini_ProjectileExplosive_%p%% < %ini_limit_kill%;playersay :::::::::: [%p%] Stop Projectiles Explosives ! if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 0;if %ini_ProjectileExplosive_%p%% < %ini_limit_kill%;playersay :::::::::: [%p%] Stop Projectiles Explosives ! On kill;Damage ProjectileExplosive;if %ini_limit_activewarn% == 1;if %ini_limit_activekill% == 0;if %ini_ProjectileExplosive_%p%% >= %ini_limit_warn% if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 1;if %ini_ProjectileExplosive_%p%% < %ini_limit_tempban%;playersay :::::::::: [%p%] Stop Projectiles Explosives ! if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 1;if %ini_ProjectileExplosive_%p%% < %ini_limit_kick%;playersay :::::::::: [%p%] Stop Projectiles Explosives ! if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 0;if %ini_ProjectileExplosive_%p%% < %ini_limit_kick%;playersay :::::::::: [%p%] Stop Projectiles Explosives ! if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 0;if %ini_ProjectileExplosive_%p%% < %ini_limit_ban%;playersay :::::::::: [%p%] Stop Projectiles Explosives;if %ini_limit_activeban% == 0;set %ini_ProjectileExplosive_%p%% 0 # Grenades # On kill;Not rate 2 4;if %ini_limit_grenades% == 1;Weapon U_V40,U_M67,U_M34,U_Grenade_RGO,U_Flashbang set %ini_grenade_%p%% %ini_grenade_%p%% + 1 if %ini_limit_activeban% == 1;if %ini_grenade_%p%% >= %ini_limit_ban%;Say :::::::::: [%p%] Ban for Explo > %w% using !;Ban %p% for Grenade > %w% using !(Auto BAN);set %ini_grenade_%p%% 0 if %ini_limit_activetempban% == 1;if %ini_grenade_%p%% >= %ini_limit_tempban%;if %ini_grenade_%p%% < %ini_limit_ban%;Say :::::::::: [%p%] TempBan for Grenade > %w% using !;tempBan 900 %p% for Explo > %w% (Tempban);if %ini_limit_activeban% == 0;set %ini_grenade_%p%% 0 On kill;Weapon U_V40,U_M67,U_M34,U_Grenade_RGO,U_Flashbang;if %ini_limit_activekick% == 1;if %ini_grenade_%p%% >= %ini_limit_kick% if %ini_limit_activetempban% == 1;if %ini_grenade_%p%% >= %ini_limit_kick%;if %ini_grenade_%p%% < %ini_limit_tempban%;Say :::::::::: [%p%] Kick for Grenade > %w% using !;kick for Grenade > %w% using ! if %ini_limit_activetempban% == 0;if %ini_grenade_%p%% >= %ini_limit_kick%;if %ini_grenade_%p%% < %ini_limit_ban%;Say :::::::::: [%p%] Kick for Grenade > %w% using !;kick for Grenade > %w% using !;if %ini_limit_activeban% == 0;set %ini_grenade_%p%% 0 On kill;Weapon U_V40,U_M67,U_M34,U_Grenade_RGO,U_Flashbang;if %ini_limit_activekill% == 1;if %ini_grenade_%p%% >= %ini_limit_kill% if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 1;if %ini_grenade_%p%% < %ini_limit_kick%;Say :::::::::: [%p%] kill for Grenade > %w% using !;kill 100 if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 0;if %ini_grenade_%p%% < %ini_limit_kick%;Say :::::::::: [%p%] kill for Grenade > %w% using !;kill 100 if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 1;if %ini_grenade_%p%% < %ini_limit_tempban%;Say :::::::::: [%p%] kill for Grenade > %w% using !;kill 100 if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 0;if %ini_grenade_%p%% < %ini_limit_ban%;Say :::::::::: [%p%] kill for Grenade > %w% using !;kill 100;if %ini_limit_activeban% == 0;set %ini_grenade_%p%% 0 On kill;Weapon U_V40,U_M67,U_M34,U_Grenade_RGO,U_Flashbang;if %ini_limit_activewarn% == 1;if %ini_limit_activekill% == 1;if %ini_grenade_%p%% >= %ini_limit_warn% if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 1;if %%ini_grenade_%p%% < %ini_limit_kill%;playersay :::::::::: [%p%] Stop Grenade ! if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 1;if %ini_grenade_%p%% < %ini_limit_kill%;playersay :::::::::: [%p%] Stop Grenade ! if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 0;if %ini_grenade_%p%% < %ini_limit_kill%;playersay :::::::::: [%p%] Stop Grenade ! if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 0;if %ini_grenade_%p%% < %ini_limit_kill%;playersay :::::::::: [%p%] Stop Grenade ! On kill;Weapon U_V40,U_M67,U_M34,U_Grenade_RGO,U_Flashbang;if %ini_limit_activewarn% == 1;if %ini_limit_activekill% == 0;if %ini_grenade_%p%% >= %ini_limit_warn% if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 1;if %ini_grenade_%p%% < %ini_limit_tempban%;playersay :::::::::: [%p%] Stop Grenade ! if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 1;if %ini_grenade_%p%% < %ini_limit_kick%;playersay :::::::::: [%p%] Stop Grenade ! if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 0;if %ini_grenade_%p%% < %ini_limit_kick%;playersay :::::::::: [%p%] Stop Grenade ! if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 0;if %ini_grenade_%p%% < %ini_limit_ban%;playersay :::::::::: [%p%] Stop Grenade !;if %ini_limit_activeban% == 0;set %ini_grenade_%p%% 0 * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted December 30, 2013 Author Share Posted December 30, 2013 Originally Posted by C-4-N*: I tried to get it slim as i can with my knows, i m not developer there is lot of possibility , so lot of conditions to get if someone have ideas to improve size , you re welcome **** Here the way to get limits on only one map ! exemple with map lockers (mp_prison) change at top of code on spawn;serverfirst ... with on spawn;serverfirst;not if %m% contains "Locker";set %ini_limit% 0 on spawn;serverfirst;if %m% contains "Locker" suite of code below * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted December 30, 2013 Author Share Posted December 30, 2013 Originally Posted by virusdead*: yop tres beau script mais si nous voulons ajouté une map ex/ prison locker tu l ajoute ou ? * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted December 30, 2013 Author Share Posted December 30, 2013 Originally Posted by C-4-N*: simple tout se passe au départ du script si tu souhaites utiliser que sur locker changes on spawn;serverfirst ... par on spawn;serverfirst;not if %m% contains "Locker";set %ini_limit% 0 on spawn;serverfirst;if %m% contains "Locker" rest du code ici * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted December 30, 2013 Author Share Posted December 30, 2013 Originally Posted by virusdead*: ok pour moi pour la map et pour changé le mode d avertissement: si je veux que le règlement sur mon serveur soit de cette façon est-ce que c est ici qu'on modifie ### EDITABLE ### Limite de tolérance , nombre d'effractions ### set %ini_limit_ban% 6 set %ini_limit_tempban% 4 set %ini_limit_kick% 3 set %ini_limit_kill% 2 set %ini_limit_warn% 1 * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted December 30, 2013 Author Share Posted December 30, 2013 Originally Posted by C-4-N*: Oui et n oublie pas de régler les ârmes que tu souhaites interdire. 1 pour interdire 0 pour autorise ### EDITABLE ### WEAPONS choice , Forbid with 1 / Allowed with 0 ### set %ini_limit_claymore% 1 set %ini_limit_c4% 1 set %ini_limit_projectiles_explosives% 1 set %ini_limit_grenades% 1 * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted December 31, 2013 Author Share Posted December 31, 2013 Originally Posted by LjMjollnir*: Script removed by LjMjollnir * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted December 31, 2013 Author Share Posted December 31, 2013 Originally Posted by C-4-N*: nice idea and nice done to , but it's a general code, take a bit more time, and not adapted for explosives , my think^^ i first do this code , to get increase by one when a rules is triggered and not increase by the number of kills, because it's not good for no explosives prevention and then just want to permit everyone to use it , and edit easly * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted December 31, 2013 Author Share Posted December 31, 2013 Originally Posted by LjMjollnir*: Code: On Kill;Damage Explosive;If %ini_weapons_explosive% = 1 Set %ta% 1;Set %weapgroup% "C4/Claymore/Grenades/Mines" On Kill;Damage ProjectileExplosive;If %ini_weapons_pexplosive% = 1 Set %ta% 1;Set %weapgroup% "Rockets/M320/Airburst"those 2 bits there check for both types of Explosives yeah mine doesnt do it individually .. but for the most part that is all we have required .. and since it Sets %ta% == 1 even if several people have died in the 1 explosion it really only counts as 1 punish count.. (no need for Not Rate and will also reduce code size see code later below) following down to the actual punish section Code: On Kill;If %ta% = 1 Incr %pun% If %pun% = %ini_limit_pb%;Ban No %weapgroup%;Say ### Perma Banned %p% for breaking rules ###;set %ta% 0 If %pun% = %ini_limit_tb%;TempBan %ini_limit_tbt% NO %weapgroup%;Say ### Temporary Banned(%ini_limit_tbt%seconds) %p% for breaking rules ###;set %ta% 0 If %pun% >= %ini_limit_kl%;Kick NO %weapgroup%;Say ### Kicked %p% for breaking rules ###;set %ta% 0 PlayerSay No %weapgroup%;Kill 100;Say ### %p% Killed for breaking rules %w% not allowed. ###;PlayerSay type !rules;set %ta% 0it just checks if you have the %ta% flag set the on Kill is triggered from the same kill as before.. and you'l notice it handles ALL the weapon types in the one section. if you want to reduce your code size you could adopt something similar.. which is why i posted the code btw .. your code appears to repeat alot of things over an over.. im from an Object oriented programming background where you attempt to reuse the same code for many purposes once you get use to it you can reduce the size of your code quite easily. Reducing code size does have alot of benefits less chance of errors along the way and much easier to change the code later on .. instead of changing 16 instances all doing the same thing you only need to change it once i'll leave my script here till the morning.. but after that is going away back into my stash along with some other nice scripts.. (Complete ingame map management.. Gunmaster!!.. and several others )... when our server is out of action (5 months maybe more) then ill post up my scripts for all to use * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted December 31, 2013 Author Share Posted December 31, 2013 Originally Posted by virusdead*: Code: On Kill;Damage Explosive;If %ini_weapons_explosive% = 1 Set %ta% 1;Set %weapgroup% "C4/Claymore/Grenades/Mines" On Kill;Damage ProjectileExplosive;If %ini_weapons_pexplosive% = 1 Set %ta% 1;Set %weapgroup% "Rockets/M320/Airburst"those 2 bits there check for both types of Explosives yeah mine doesnt do it individually .. but for the most part that is all we have required .. and since it Sets %ta% == 1 even if several people have died in the 1 explosion it really only counts as 1 punish count.. (no need for Not Rate and will also reduce code size see code later below) following down to the actual punish section Code: On Kill;If %ta% = 1 Incr %pun% If %pun% = %ini_limit_pb%;Ban No %weapgroup%;Say ### Perma Banned %p% for breaking rules ###;set %ta% 0 If %pun% = %ini_limit_tb%;TempBan %ini_limit_tbt% NO %weapgroup%;Say ### Temporary Banned(%ini_limit_tbt%seconds) %p% for breaking rules ###;set %ta% 0 If %pun% >= %ini_limit_kl%;Kick NO %weapgroup%;Say ### Kicked %p% for breaking rules ###;set %ta% 0 PlayerSay No %weapgroup%;Kill 100;Say ### %p% Killed for breaking rules %w% not allowed. ###;PlayerSay type !rules;set %ta% 0it just checks if you have the %ta% flag set the on Kill is triggered from the same kill as before.. and you'l notice it handles ALL the weapon types in the one section. if you want to reduce your code size you could adopt something similar.. which is why i posted the code btw .. your code appears to repeat alot of things over an over.. im from an Object oriented programming background where you attempt to reuse the same code for many purposes once you get use to it you can reduce the size of your code quite easily. Reducing code size does have alot of benefits less chance of errors along the way and much easier to change the code later on .. instead of changing 16 instances all doing the same thing you only need to change it once i'll leave my script here till the morning.. but after that is going away back into my stash along with some other nice scripts.. (Complete ingame map management.. Gunmaster!!.. and several others )... when our server is out of action (5 months maybe more) then ill post up my scripts for all to use For your script or you put your maps? * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted January 1, 2014 Author Share Posted January 1, 2014 Originally Posted by LjMjollnir*: For your script or you put your maps?I have another script i use for map management.. sets ticket counts.. ingame controls for changing game modes and adding map lists.. selecting which map is next.. setting winning team and starting the next map all with ingame commands.. something i wish Ultimate Map manager could have done except he has no ingame commands.. my server is all setup so it can be done with ingame commands nice and easy. the above script of mine is more for setting up things like Pistol and Knife only servers quick and easy.. for instance pistol and knife all you need to do is type Ingame Code: !swp 0 !pistol 1 !melee 1First line turns off ALL weapons.. then you just turn on what you like.. so !pistol 1 turns on the pistols !melee 1 turns on Knifes/Defib/Repair * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted January 5, 2014 Author Share Posted January 5, 2014 Originally Posted by Wlad*: Code: on spawn;serverfirst ### EDITABLE ### Limite de tolérance , nombre d'effractions ### set %ini_limit_ban% 2 set %ini_limit_tempban% 1 set %ini_limit_kick% 5 set %ini_limit_kill% 0 set %ini_limit_warn% 0 ### EDITABLE ### LIMITS you want apply (ban / tempban / ...) Active with 1 / Desactive with 0 ### set %ini_limit_activeban% 1 set %ini_limit_activetempban% 1 set %ini_limit_activekick% 0 set %ini_limit_activekill% 0 set %ini_limit_activewarn% 0 ### EDITABLE ### Time for Tempban (900 = 15 minutes) set %ini_limit_time_tempban% 40000 ### EDITABLE ### WEAPONS choice , Forbid with 1 / Allowed with 0 ### set %ini_limit_claymore% 1 set %ini_limit_c4% 1 set %ini_limit_projectiles_explosives% 1 set %ini_limit_grenades% 1 # Forbidden Weapons, count and sanctions # ### c4 ### On kill;Not rate 2 4;if %ini_limit_c4% == 1;if %wk% contains U_C4; set %ini_c4_%p%% %ini_c4_%p%% + 1 if %ini_limit_activeban% == 1;if %ini_c4_%p%% >= %ini_limit_ban%;Say :::::::::: [%p%] Ban for C4 using !;Ban %p% for C4 (Auto BAN);set %ini_c4_%p%% 0 if %ini_limit_activetempban% == 1;if %ini_c4_%p%% >= %ini_limit_tempban%;if %ini_c4_%p%% < %ini_limit_ban%;Say :::::::::: [%p%] TempBan for C4 using !;tempBan %ini_limit_time_tempban% %p% for C4 (Tempban);if %ini_limit_activeban% == 0;set %ini_c4_%p%% 0 On kill;if %wk% contains U_C4;if %ini_limit_activekick% == 1;if %ini_c4_%p%% >= %ini_limit_kick% if %ini_limit_activetempban% == 1;if %ini_c4_%p%% >= %ini_limit_kick%;if %ini_c4_%p%% < %ini_limit_tempban%;Say :::::::::: [%p%] Kick for using C4 !;kick C4 using if %ini_limit_activetempban% == 0;if %ini_c4_%p%% >= %ini_limit_kick%;if %ini_c4_%p%% < %ini_limit_ban%;Say :::::::::: [%p%] Kick for using C4 !;kick C4 using;if %ini_limit_activeban% == 0;set %ini_c4_%p%% 0 On kill;if %wk% contains U_C4;if %ini_limit_activekill% == 1;;if %ini_c4_%p%% >= %ini_limit_kill% if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 1;if %ini_c4_%p%% < %ini_limit_kick%;Say :::::::::: [%p%] kill for C4 using !;kill 100 if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 0;if %ini_c4_%p%% < %ini_limit_kick%;Say :::::::::: [%p%] kill for C4 using !;kill 100 if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 1;if %ini_c4_%p%% < %ini_limit_tempban%;Say :::::::::: [%p%] kill for C4 using !;kill 100 if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 0;if %ini_c4_%p%% < %ini_limit_ban%;Say :::::::::: [%p%] kill for C4 using !;kill 100;if %ini_limit_activeban% == 0;set %ini_c4_%p%% 0 On kill;if %wk% contains U_C4;if %ini_limit_activewarn% == 1;if %ini_limit_activekill% == 1;if %ini_c4_%p%% >= %ini_limit_warn% if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 1;if %ini_c4_%p%% < %ini_limit_kill%;playersay :::::::::: [%p%] Stop C4 using ! if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 1;if %ini_c4_%p%% < %ini_limit_kill%;playersay :::::::::: [%p%] Stop C4 using ! if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 0;if %ini_c4_%p%% < %ini_limit_kill%;playersay :::::::::: [%p%] Stop C4 using ! if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 0;if %ini_c4_%p%% < %ini_limit_kill%;playersay :::::::::: [%p%] Stop C4 using ! On kill;if %wk% contains U_C4;if %ini_limit_activewarn% == 1;if %ini_limit_activekill% == 0;if %ini_c4_%p%% >= %ini_limit_warn% if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 1;if %ini_c4_%p%% < %ini_limit_tempban%;playersay :::::::::: [%p%] Stop C4 using ! if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 1;if %ini_c4_%p%% < %ini_limit_kick%;playersay :::::::::: [%p%] Stop C4 using ! if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 0;if %ini_c4_%p%% < %ini_limit_kick%;playersay :::::::::: [%p%] Stop C4 using ! if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 0;if %ini_c4_%p%% < %ini_limit_ban%;playersay :::::::::: [%p%] Stop C4 using !;if %ini_limit_activeban% == 0;set %ini_c4_%p%% 0 ### claymore ### On kill;Not rate 2 4;if %ini_limit_claymore% == 1;if %wk% contains U_Claymore; set %ini_claymore_%p%% %ini_claymore_%p%% + 1 if %ini_limit_activeban% == 1;if %ini_claymore_%p%% >= %ini_limit_ban%;Say :::::::::: [%p%] Ban for Claymore using !;Ban %p% for C4 (Auto BAN);set %ini_claymore_%p%% 0 if %ini_limit_activetempban% == 1;if %ini_claymore_%p%% >= %ini_limit_tempban%;if %ini_claymore_%p%% < %ini_limit_ban%;Say :::::::::: [%p%] TempBan for C4 using !;tempBan %ini_limit_time_tempban% %p% for Claymore (Tempban);if %ini_limit_activeban% == 0;set %ini_claymore_%p%% 0 On kill;if %wk% contains U_Claymore;if %ini_limit_activekick% == 1;if %ini_claymore_%p%% >= %ini_limit_kick% if %ini_limit_activetempban% == 1;if %ini_claymore_%p%% >= %ini_limit_kick%;if %ini_claymore_%p%% < %ini_limit_tempban%;Say :::::::::: [%p%] Kick for using Claymore !;kick Claymore using if %ini_limit_activetempban% == 0;if %ini_claymore_%p%% >= %ini_limit_kick%;if %ini_claymore_%p%% < %ini_limit_ban%;Say :::::::::: [%p%] Kick for using Claymore !;kick Claymore using;if %ini_limit_activeban% == 0;set %ini_claymore_%p%% 0 On kill;if %wk% contains U_Claymore;if %ini_limit_activekill% == 1;if %ini_claymore_%p%% >= %ini_limit_kill% if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 1;if %ini_claymore_%p%% < %ini_limit_kick%;Say :::::::::: [%p%] kill for Claymore using !;kill 100 if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 0;if %ini_claymore_%p%% < %ini_limit_kick%;Say :::::::::: [%p%] kill for Claymore using !;kill 100 if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 1;if %ini_claymore_%p%% < %ini_limit_tempban%;Say :::::::::: [%p%] kill for Claymore using !;kill 100 if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 0;if %ini_claymore_%p%% < %ini_limit_ban%;Say :::::::::: [%p%] kill for Claymore using !;kill 100;if %ini_limit_activeban% == 0;set %ini_claymore_%p%% 0 On kill;if %wk% contains U_Claymore;if %ini_limit_activewarn% == 1;if %ini_limit_activekill% == 1;;if %ini_claymore_%p%% >= %ini_limit_warn% if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 1;if %ini_claymore_%p%% < %ini_limit_kill%;playersay :::::::::: [%p%] Stop Claymore using ! if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 1;if %ini_claymore_%p%% < %ini_limit_kill%;playersay :::::::::: [%p%] Stop Claymore using ! if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 0;if %ini_claymore_%p%% < %ini_limit_kill%;playersay :::::::::: [%p%] Stop Claymore using ! if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 0;if %ini_claymore_%p%% < %ini_limit_kill%;playersay :::::::::: [%p%] Stop Claymore using ! On kill;if %wk% contains U_Claymore;if %ini_limit_activewarn% == 1;if %ini_limit_activekill% == 0;if %ini_claymore_%p%% >= %ini_limit_warn% if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 1;if %ini_claymore_%p%% < %ini_limit_tempban%;playersay :::::::::: [%p%] Stop Claymore using ! if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 1;if %ini_claymore_%p%% < %ini_limit_kick%;playersay :::::::::: [%p%] Stop Claymore using ! if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 0;if %ini_claymore_%p%% < %ini_limit_kick%;playersay :::::::::: [%p%] Stop Claymore using ! if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 0;if %ini_claymore_%p%% < %ini_limit_ban%;playersay :::::::::: [%p%] Stop Claymore using !;if %ini_limit_activeban% == 0;set %ini_claymore_%p%% 0 ### projectiles explosives ### On kill;Not rate 2 4;if %ini_limit_projectiles_explosives% == 1;Damage ProjectileExplosive set %ini_ProjectileExplosive_%p%% %ini_ProjectileExplosive_%p%% + 1 if %ini_limit_activeban% == 1;if %ini_ProjectileExplosive_%p%% >= %ini_limit_ban%;Say :::::::::: [%p%] Ban for Proj.Explo > %w% using !;Ban %p% for Proj.Explo > %w% using !(Auto BAN);set %ini_ProjectileExplosive_%p%% 0 if %ini_limit_activetempban% == 1;if %ini_ProjectileExplosive_%p%% >= %ini_limit_tempban%;if %ini_ProjectileExplosive_%p%% < %ini_limit_ban%;Say :::::::::: [%p%] TempBan for Proj.Explo > %w% using !;tempBan %ini_limit_time_tempban% %p% for Proj.Explo > %w% (Tempban);if %ini_limit_activeban% == 0;set %ini_ProjectileExplosive_%p%% 0 On kill;Damage ProjectileExplosive;if %ini_limit_activekick% == 1;if %ini_ProjectileExplosive_%p%% >= %ini_limit_kick% if %ini_limit_activetempban% == 1;if %ini_ProjectileExplosive_%p%% >= %ini_limit_kick%;if %ini_ProjectileExplosive_%p%% < %ini_limit_tempban%;Say :::::::::: [%p%] Kick for Proj.Explo > %w% using !;kick for Proj.Explo > %w% using ! if %ini_limit_activetempban% == 0;if %ini_ProjectileExplosive_%p%% >= %ini_limit_kick%;if %ini_ProjectileExplosive_%p%% < %ini_limit_ban%;Say :::::::::: [%p%] Kick for Proj.Explo > %w% using !;kick for Proj.Explo > %w% using !;if %ini_limit_activeban% == 0;set %ini_ProjectileExplosive_%p%% 0 On kill;Damage ProjectileExplosive;if %ini_limit_activekill% == 1;if %ini_ProjectileExplosive_%p%% >= %ini_limit_kill% if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 1;if %ini_ProjectileExplosive_%p%% < %ini_limit_kick%;Say :::::::::: [%p%] kill for Proj.Explo > %w% using !;kill 100 if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 0;if %ini_ProjectileExplosive_%p%% < %ini_limit_kick%;Say :::::::::: [%p%] kill for Proj.Explo > %w% using !;kill 100 if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 1;if %ini_ProjectileExplosive_%p%% < %ini_limit_tempban%;Say :::::::::: [%p%] kill for Proj.Explo > %w% using !;kill 100 if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 0;if %ini_ProjectileExplosive_%p%% < %ini_limit_ban%;Say :::::::::: [%p%] kill for Proj.Explo > %w% using !;kill 100;if %ini_limit_activeban% == 0;set %ini_ProjectileExplosive_%p%% 0 On kill;Damage ProjectileExplosive;if %ini_limit_activewarn% == 1;if %ini_limit_activekill% == 1;if %ini_ProjectileExplosive_%p%% >= %ini_limit_warn% if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 1;if %ini_ProjectileExplosive_%p%% < %ini_limit_kill%;playersay :::::::::: [%p%] Stop Projectiles Explosives ! if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 1;if %ini_ProjectileExplosive_%p%% < %ini_limit_kill%;playersay :::::::::: [%p%] Stop Projectiles Explosives ! if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 0;if %ini_ProjectileExplosive_%p%% < %ini_limit_kill%;playersay :::::::::: [%p%] Stop Projectiles Explosives ! if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 0;if %ini_ProjectileExplosive_%p%% < %ini_limit_kill%;playersay :::::::::: [%p%] Stop Projectiles Explosives ! On kill;Damage ProjectileExplosive;if %ini_limit_activewarn% == 1;if %ini_limit_activekill% == 0;if %ini_ProjectileExplosive_%p%% >= %ini_limit_warn% if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 1;if %ini_ProjectileExplosive_%p%% < %ini_limit_tempban%;playersay :::::::::: [%p%] Stop Projectiles Explosives ! if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 1;if %ini_ProjectileExplosive_%p%% < %ini_limit_kick%;playersay :::::::::: [%p%] Stop Projectiles Explosives ! if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 0;if %ini_ProjectileExplosive_%p%% < %ini_limit_kick%;playersay :::::::::: [%p%] Stop Projectiles Explosives ! if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 0;if %ini_ProjectileExplosive_%p%% < %ini_limit_ban%;playersay :::::::::: [%p%] Stop Projectiles Explosives;if %ini_limit_activeban% == 0;set %ini_ProjectileExplosive_%p%% 0 # Grenades # On kill;Not rate 2 4;if %ini_limit_grenades% == 1;Weapon U_V40,U_M67,U_M34,U_Grenade_RGO,U_Flashbang set %ini_grenade_%p%% %ini_grenade_%p%% + 1 if %ini_limit_activeban% == 1;if %ini_grenade_%p%% >= %ini_limit_ban%;Say :::::::::: [%p%] Ban for Explo > %w% using !;Ban %p% for Grenade > %w% using !(Auto BAN);set %ini_grenade_%p%% 0 if %ini_limit_activetempban% == 1;if %ini_grenade_%p%% >= %ini_limit_tempban%;if %ini_grenade_%p%% < %ini_limit_ban%;Say :::::::::: [%p%] TempBan for Grenade > %w% using !;tempBan %ini_limit_time_tempban% %p% for Explo > %w% (Tempban);if %ini_limit_activeban% == 0;set %ini_grenade_%p%% 0 On kill;Weapon U_V40,U_M67,U_M34,U_Grenade_RGO,U_Flashbang;if %ini_limit_activekick% == 1;if %ini_grenade_%p%% >= %ini_limit_kick% if %ini_limit_activetempban% == 1;if %ini_grenade_%p%% >= %ini_limit_kick%;if %ini_grenade_%p%% < %ini_limit_tempban%;Say :::::::::: [%p%] Kick for Grenade > %w% using !;kick for Grenade > %w% using ! if %ini_limit_activetempban% == 0;if %ini_grenade_%p%% >= %ini_limit_kick%;if %ini_grenade_%p%% < %ini_limit_ban%;Say :::::::::: [%p%] Kick for Grenade > %w% using !;kick for Grenade > %w% using !;if %ini_limit_activeban% == 0;set %ini_grenade_%p%% 0 On kill;Weapon U_V40,U_M67,U_M34,U_Grenade_RGO,U_Flashbang;if %ini_limit_activekill% == 1;;if %ini_grenade_%p%% >= %ini_limit_kill% if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 1;if %ini_grenade_%p%% < %ini_limit_kick%;Say :::::::::: [%p%] kill for Grenade > %w% using !;kill 100 if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 0;if %ini_grenade_%p%% < %ini_limit_kick%;Say :::::::::: [%p%] kill for Grenade > %w% using !;kill 100 if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 1;if %ini_grenade_%p%% < %ini_limit_tempban%;Say :::::::::: [%p%] kill for Grenade > %w% using !;kill 100 if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 0;if %ini_grenade_%p%% < %ini_limit_ban%;Say :::::::::: [%p%] kill for Grenade > %w% using !;kill 100;if %ini_limit_activeban% == 0;set %ini_grenade_%p%% 0 On kill;Weapon U_V40,U_M67,U_M34,U_Grenade_RGO,U_Flashbang;if %ini_limit_activewarn% == 1;if %ini_limit_activekill% == 1;if %ini_grenade_%p%% >= %ini_limit_warn% if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 1;if %%ini_grenade_%p%% < %ini_limit_kill%;playersay :::::::::: [%p%] Stop Grenade ! if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 1;if %ini_grenade_%p%% < %ini_limit_kill%;playersay :::::::::: [%p%] Stop Grenade ! if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 0;if %ini_grenade_%p%% < %ini_limit_kill%;playersay :::::::::: [%p%] Stop Grenade ! if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 0;if %ini_grenade_%p%% < %ini_limit_kill%;playersay :::::::::: [%p%] Stop Grenade ! On kill;Weapon U_V40,U_M67,U_M34,U_Grenade_RGO,U_Flashbang;if %ini_limit_activewarn% == 1;if %ini_limit_activekill% == 0;if %ini_grenade_%p%% >= %ini_limit_warn% if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 1;if %ini_grenade_%p%% < %ini_limit_tempban%;playersay :::::::::: [%p%] Stop Grenade ! if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 1;if %ini_grenade_%p%% < %ini_limit_kick%;playersay :::::::::: [%p%] Stop Grenade ! if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 0;if %ini_grenade_%p%% < %ini_limit_kick%;playersay :::::::::: [%p%] Stop Grenade ! if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 0;if %ini_grenade_%p%% < %ini_limit_ban%;playersay :::::::::: [%p%] Stop Grenade !;if %ini_limit_activeban% == 0;set %ini_grenade_%p%% 0 Hello guys I have a problem to set the tempban time. I´m trying to set the bantime only to 40000 but it only bans very time for 7 hour , which isnt right. What do I need to change that it bans only for some hours and not days. Thanks * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted January 5, 2014 Author Share Posted January 5, 2014 Originally Posted by LjMjollnir*: Without actually trying his script i cant say for sure but i believe the problem is actually with the naming convention of his ini variable %ini_limit_time_tempban% im not sure is valid as it contains 2 section area's according to the proconrulz doc's the naming convention is %ini_sectionname_variablename% having 2 section names is probably returning an invalid number for tempban which then bans at its default time . 40000 = 11 hours 6mins (well almost 7mins) * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted January 5, 2014 Author Share Posted January 5, 2014 Originally Posted by LjMjollnir*: C-4-N.. i rewrote your script for you its untested but based heavily off what mine does so should work unless there is a typo Now you are using %ini% variables.. basically meaning they will persist through rounds and eventually if you continue to break the rules you will end up with a perma ban.. if you use just normal variables for the counts they are reset between rounds.. i think that is the better option.. however it is your script so i have adopted it to your setup .. just cleaned the code a bit and there was a couple of bugs here n there i spotted.. Code: on spawn;serverfirst ### EDITABLE ### Limite de tolérance , nombre d'effractions ### set %ini_limit_ban% 9 set %ini_limit_tempban% 7 set %ini_limit_kick% 5 set %ini_limit_kill% 3 set %ini_limit_warn% 1 ### EDITABLE ### LIMITS you want apply (ban / tempban / ...) Active with 1 / Desactive with 0 ### set %ini_limit_activeban% 1 set %ini_limit_activetempban% 1 set %ini_limit_activekick% 1 set %ini_limit_activekill% 1 set %ini_limit_activewarn% 1 ### EDITABLE ### Time for Tempban (900 = 15 minutes) set %ini_limit_timetempban% 900 ### EDITABLE ### WEAPONS choice , Forbid with 1 / Allowed with 0 ### set %ini_limit_claymore% 1 set %ini_limit_c4% 1 set %ini_limit_pexplosives% 1 set %ini_limit_grenades% 1 ### Ingame Controls On Say;Admin;!resetplayer;TargetPlayer;Set %ini_c4_%t%% 0;Set %ini_claymore_%t%% 0;Set %ini_grenade_%t%% 0;Set %ini_ProjextileExplosive_%t%% 0;Say %t% punish counts Reset # Forbidden Weapons, count and sanctions # ### c4 ### On kill;Not rate 2 4;if %ini_limit_c4% == 1;if %wk% contains U_C4;Incr %ini_c4_%p%%;Set %ta% 1;set %pcount% %ini_c4_%p%%;set %weap% "C4" ### claymore ### On kill;Not rate 2 4;if %ini_limit_claymore% == 1;if %wk% contains U_Claymore;Incr %ini_claymore_%p%% + Set %ta% 1;set %pcount% %ini_claymore_%p%%;set %weap% "Claymore" ### projectiles explosives ### On kill;Not rate 2 4;if %ini_limit_pexplosives% == 1;Damage ProjectileExplosive;Incr %ini_ProjectileExplosive_%p%% + Set %ta% 1;set %pcount% %ini_ProjectileExplosive_%p%%;set %weap% "Projectile Explosive" # Grenades # On kill;Not rate 2 4;if %ini_limit_grenades% == 1;Weapon U_V40,U_M67,U_M34,U_Grenade_RGO,U_Flashbang;Incr %ini_grenade_%p%% + Set %ta% 1;set %pcount% %ini_grenade_%p%%;set %weap% "Grenades" ### Punish Section On Kill;if %ta% == 1 If %ini_limit_activeban% == 1;if %pcount% >= %ini_limit_ban%;Say :::::::: %p% Banned for using %weap%;Ban %p% Banned for using %weap%;Set %ta% 0 If %ini_limit_activetempban% == 1;if %pcount% >= %ini_limit_tempban%;Say :::::::: %p% Banned for using %weap%;TempBan %ini_limit_timetempban% %p% Banned for using %weap%;Set %ta% 0 If %ini_limit_activekick% == 1;if %pcount% >= %ini_limit_kick%;Say :::::::: %p% Kicked for using %weap%;Kick %p% Kicked for using %weap%;Set %ta% 0 If %ini_limit_activekill% == 1;if %pcount% >= %ini_limit_kill%;Say :::::::: %p% Killed for using %weap%;Kill 100;Set %ta% 0 If %ini_limit_activewarn% == 1;if %pcount% >= %ini_limit_warn%;PlayerSay Stop using %weap%;Say :::::::: %p% Warned for using %weap%;Set %ta% 0/editadded a !resetplayer command to reset the punish counts to 0 for the selected player eg. !resetplayer LjMj should reset player LjMjollnir punish counts to 0 untested but i believe it should work. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted January 6, 2014 Author Share Posted January 6, 2014 Originally Posted by C-4-N*: automaticaly reset counts when player trigerred the higher sanctions is more simple ,or only when ban comes , after that you only have to choose if you unban him or not anyway great job , had to test that @Wlad i don't test long time , but you may can have lot of time on tempban will try that edit : i have test it , as LjMjollnir said , a tempban 40000 is normaly for 11h 7 min with variable 40000 got 7 days ban :/ in fact a default tempban without time mus got 7 days , because i see 40000 in the reason of ban UP EDIT 1ST post as it not work deleted tempban line editable , and get 900 (15 mins ) for tempban lines @LjMjollnir you can edit to , i will try ask bambam if he can watch for it , may be code could be change to accept variables on tempban * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted January 7, 2014 Author Share Posted January 7, 2014 Originally Posted by LjMjollnir*: no problemo dude .. hope it works alright.. as i said i didnt test it.. i like my weapon control script slightly more mainly because i can control everything within game.. but i thought you might like to see how you can reduce the code a fair amount * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted January 10, 2014 Author Share Posted January 10, 2014 Originally Posted by ixnorp*: !resetplayer;TargetPlayer..... this command has to have the player in game to reset it right? So if the player isn't in game, i can use this right? !resetplayer;TargetPlayer;Set %punish_%targettext%% 0 right? will the command put the player's name in %punish_%targettext%%? * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted January 11, 2014 Author Share Posted January 11, 2014 Originally Posted by LjMjollnir*: I put the reply in the Private messages.. but ill also put it here Nope.. TargetPlayer will cause the %targettext% to be different.. with TargetPlayer in the rule it looks for a player online and changes %t% to a found player and removes the first word from %targettext% .. im pretty sure thats how it works anyway.. just remove the TargetPlayer and that will be fine.. that being said you now need to make sure you type the name correctly.. no shortening allowed.. you cant use !resetplayer LjM to reset LjMjollnir if they are not online .. there was more in the private message which i dont have time to write here.. but you have it * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted January 11, 2014 Author Share Posted January 11, 2014 Originally Posted by C-4-N*: !resetplayer;TargetPlayer..... this command has to have the player in game to reset it right? So if the player isn't in game, i can use this right? !resetplayer;TargetPlayer;Set %punish_%targettext%% 0 right? will the command put the player's name in %punish_%targettext%%? thats why it s better and simple to use auto reset when player get ban or tempban (higher sanction) ex : with .... "set %ini_c4_%p%% 0" after line , you have that auto on my code , no matter what your higher punish * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted January 11, 2014 Author Share Posted January 11, 2014 Originally Posted by LjMjollnir*: Well the way i see it you generally are not going to remove the punish on a player unless it was just a general screw up.. or you have some appeals process.. at which point you generally unban on Procon.. and you can remove the punish limits within game if you choose.. that being said.. if someone is repeatedly breaking your rules you probably never want them on your server again.. i only put that option in incase you do have an appeal process.. otherwise i generally would never remove a punish count... however rules on my server are generally Per round.. if you make a mistake once in the round you are fine.. do it a couple more you get a kick then a Tempban.. the TempBan stays.. i rarely remove them if i need to i use Procon and remove it there.. by the time that has happend tho its generally a new round and all punish counts are reset .. AS per the reason i said server variables are possibly better then %ini variables.. thats how it works for me... you screw up enough you get a ban and can come back the next day.. if you are using %ini variables i assume you want something more permanent.. that is why i didnt reset the counts at the top sanctions ... if you dont want permanent punish counts its easy to switch over to server variables instead which then also saves resetting them at the top sanctions * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted January 17, 2014 Author Share Posted January 17, 2014 Originally Posted by virusdead*: Hello , as lot of people constantly ask for no explosives i have writting one , who everyone will can edit easly it's a big code , i confess , but needed to get simply it 's particulary adpated for explosifs , when a rule is triggered , it only increase by one , no matter number of kills, good for no explosif prevention To adapt it for your needs , you'll only have to change numbers in section with ### EDITABLE ### at top of code the rest will get automaticaly If you test it and seek errors , please let me know, i get lot of test with "On say" but not with "not rate 2 4" on Multikills (thanks bambam for this way to incr only by one counts) Hope you'll like it Code: on spawn;serverfirst ### EDITABLE ### Limite de tolérance , nombre d'effractions ### set %ini_limit_ban% 9 set %ini_limit_tempban% 7 set %ini_limit_kick% 5 set %ini_limit_kill% 3 set %ini_limit_warn% 1 ### EDITABLE ### LIMITS you want apply (ban / tempban / ...) Active with 1 / Desactive with 0 ### set %ini_limit_activeban% 1 set %ini_limit_activetempban% 1 set %ini_limit_activekick% 1 set %ini_limit_activekill% 1 set %ini_limit_activewarn% 1 ### EDITABLE ### WEAPONS choice , Forbid with 1 / Allowed with 0 ### set %ini_limit_claymore% 1 set %ini_limit_c4% 1 set %ini_limit_projectiles_explosives% 1 set %ini_limit_grenades% 1 # Forbidden Weapons, count and sanctions # ### c4 ### On kill;Not rate 2 4;if %ini_limit_c4% == 1;if %wk% contains U_C4; set %ini_c4_%p%% %ini_c4_%p%% + 1 if %ini_limit_activeban% == 1;if %ini_c4_%p%% >= %ini_limit_ban%;Say :::::::::: [%p%] Ban for C4 using !;Ban %p% for C4 (Auto BAN);set %ini_c4_%p%% 0 if %ini_limit_activetempban% == 1;if %ini_c4_%p%% >= %ini_limit_tempban%;if %ini_c4_%p%% < %ini_limit_ban%;Say :::::::::: [%p%] TempBan for C4 using !;tempBan 900 %p% for C4 (Tempban);if %ini_limit_activeban% == 0;set %ini_c4_%p%% 0 On kill;if %wk% contains U_C4;if %ini_limit_activekick% == 1;if %ini_c4_%p%% >= %ini_limit_kick% if %ini_limit_activetempban% == 1;if %ini_c4_%p%% >= %ini_limit_kick%;if %ini_c4_%p%% < %ini_limit_tempban%;Say :::::::::: [%p%] Kick for using C4 !;kick C4 using if %ini_limit_activetempban% == 0;if %ini_c4_%p%% >= %ini_limit_kick%;if %ini_c4_%p%% < %ini_limit_ban%;Say :::::::::: [%p%] Kick for using C4 !;kick C4 using;if %ini_limit_activeban% == 0;set %ini_c4_%p%% 0 On kill;if %wk% contains U_C4;if %ini_limit_activekill% == 1;;if %ini_c4_%p%% >= %ini_limit_kill% if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 1;if %ini_c4_%p%% < %ini_limit_kick%;Say :::::::::: [%p%] kill for C4 using !;kill 100 if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 0;if %ini_c4_%p%% < %ini_limit_kick%;Say :::::::::: [%p%] kill for C4 using !;kill 100 if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 1;if %ini_c4_%p%% < %ini_limit_tempban%;Say :::::::::: [%p%] kill for C4 using !;kill 100 if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 0;if %ini_c4_%p%% < %ini_limit_ban%;Say :::::::::: [%p%] kill for C4 using !;kill 100;if %ini_limit_activeban% == 0;set %ini_c4_%p%% 0 On kill;if %wk% contains U_C4;if %ini_limit_activewarn% == 1;if %ini_limit_activekill% == 1;if %ini_c4_%p%% >= %ini_limit_warn% if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 1;if %ini_c4_%p%% < %ini_limit_kill%;playersay :::::::::: [%p%] Stop C4 using ! if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 1;if %ini_c4_%p%% < %ini_limit_kill%;playersay :::::::::: [%p%] Stop C4 using ! if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 0;if %ini_c4_%p%% < %ini_limit_kill%;playersay :::::::::: [%p%] Stop C4 using ! if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 0;if %ini_c4_%p%% < %ini_limit_kill%;playersay :::::::::: [%p%] Stop C4 using ! On kill;if %wk% contains U_C4;if %ini_limit_activewarn% == 1;if %ini_limit_activekill% == 0;if %ini_c4_%p%% >= %ini_limit_warn% if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 1;if %ini_c4_%p%% < %ini_limit_tempban%;playersay :::::::::: [%p%] Stop C4 using ! if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 1;if %ini_c4_%p%% < %ini_limit_kick%;playersay :::::::::: [%p%] Stop C4 using ! if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 0;if %ini_c4_%p%% < %ini_limit_kick%;playersay :::::::::: [%p%] Stop C4 using ! if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 0;if %ini_c4_%p%% < %ini_limit_ban%;playersay :::::::::: [%p%] Stop C4 using !;if %ini_limit_activeban% == 0;set %ini_c4_%p%% 0 ### claymore ### On kill;Not rate 2 4;if %ini_limit_claymore% == 1;if %wk% contains U_Claymore; set %ini_claymore_%p%% %ini_claymore_%p%% + 1 if %ini_limit_activeban% == 1;if %ini_claymore_%p%% >= %ini_limit_ban%;Say :::::::::: [%p%] Ban for Claymore using !;Ban %p% for C4 (Auto BAN);set %ini_claymore_%p%% 0 if %ini_limit_activetempban% == 1;if %ini_claymore_%p%% >= %ini_limit_tempban%;if %ini_claymore_%p%% < %ini_limit_ban%;Say :::::::::: [%p%] TempBan for C4 using !;tempBan 900 %p% for Claymore (Tempban);if %ini_limit_activeban% == 0;set %ini_claymore_%p%% 0 On kill;if %wk% contains U_Claymore;if %ini_limit_activekick% == 1;if %ini_claymore_%p%% >= %ini_limit_kick% if %ini_limit_activetempban% == 1;if %ini_claymore_%p%% >= %ini_limit_kick%;if %ini_claymore_%p%% < %ini_limit_tempban%;Say :::::::::: [%p%] Kick for using Claymore !;kick Claymore using if %ini_limit_activetempban% == 0;if %ini_claymore_%p%% >= %ini_limit_kick%;if %ini_claymore_%p%% < %ini_limit_ban%;Say :::::::::: [%p%] Kick for using Claymore !;kick Claymore using;if %ini_limit_activeban% == 0;set %ini_claymore_%p%% 0 On kill;if %wk% contains U_Claymore;if %ini_limit_activekill% == 1;if %ini_claymore_%p%% >= %ini_limit_kill% if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 1;if %ini_claymore_%p%% < %ini_limit_kick%;Say :::::::::: [%p%] kill for Claymore using !;kill 100 if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 0;if %ini_claymore_%p%% < %ini_limit_kick%;Say :::::::::: [%p%] kill for Claymore using !;kill 100 if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 1;if %ini_claymore_%p%% < %ini_limit_tempban%;Say :::::::::: [%p%] kill for Claymore using !;kill 100 if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 0;if %ini_claymore_%p%% < %ini_limit_ban%;Say :::::::::: [%p%] kill for Claymore using !;kill 100;if %ini_limit_activeban% == 0;set %ini_claymore_%p%% 0 On kill;if %wk% contains U_Claymore;if %ini_limit_activewarn% == 1;if %ini_limit_activekill% == 1;;if %ini_claymore_%p%% >= %ini_limit_warn% if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 1;if %ini_claymore_%p%% < %ini_limit_kill%;playersay :::::::::: [%p%] Stop Claymore using ! if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 1;if %ini_claymore_%p%% < %ini_limit_kill%;playersay :::::::::: [%p%] Stop Claymore using ! if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 0;if %ini_claymore_%p%% < %ini_limit_kill%;playersay :::::::::: [%p%] Stop Claymore using ! if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 0;if %ini_claymore_%p%% < %ini_limit_kill%;playersay :::::::::: [%p%] Stop Claymore using ! On kill;if %wk% contains U_Claymore;if %ini_limit_activewarn% == 1;if %ini_limit_activekill% == 0;if %ini_claymore_%p%% >= %ini_limit_warn% if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 1;if %ini_claymore_%p%% < %ini_limit_tempban%;playersay :::::::::: [%p%] Stop Claymore using ! if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 1;if %ini_claymore_%p%% < %ini_limit_kick%;playersay :::::::::: [%p%] Stop Claymore using ! if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 0;if %ini_claymore_%p%% < %ini_limit_kick%;playersay :::::::::: [%p%] Stop Claymore using ! if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 0;if %ini_claymore_%p%% < %ini_limit_ban%;playersay :::::::::: [%p%] Stop Claymore using !;if %ini_limit_activeban% == 0;set %ini_claymore_%p%% 0 ### projectiles explosives ### On kill;Not rate 2 4;if %ini_limit_projectiles_explosives% == 1;Damage ProjectileExplosive set %ini_ProjectileExplosive_%p%% %ini_ProjectileExplosive_%p%% + 1 if %ini_limit_activeban% == 1;if %ini_ProjectileExplosive_%p%% >= %ini_limit_ban%;Say :::::::::: [%p%] Ban for Proj.Explo > %w% using !;Ban %p% for Proj.Explo > %w% using !(Auto BAN);set %ini_ProjectileExplosive_%p%% 0 if %ini_limit_activetempban% == 1;if %ini_ProjectileExplosive_%p%% >= %ini_limit_tempban%;if %ini_ProjectileExplosive_%p%% < %ini_limit_ban%;Say :::::::::: [%p%] TempBan for Proj.Explo > %w% using !;tempBan 900 %p% for Proj.Explo > %w% (Tempban);if %ini_limit_activeban% == 0;set %ini_ProjectileExplosive_%p%% 0 On kill;Damage ProjectileExplosive;if %ini_limit_activekick% == 1;if %ini_ProjectileExplosive_%p%% >= %ini_limit_kick% if %ini_limit_activetempban% == 1;if %ini_ProjectileExplosive_%p%% >= %ini_limit_kick%;if %ini_ProjectileExplosive_%p%% < %ini_limit_tempban%;Say :::::::::: [%p%] Kick for Proj.Explo > %w% using !;kick for Proj.Explo > %w% using ! if %ini_limit_activetempban% == 0;if %ini_ProjectileExplosive_%p%% >= %ini_limit_kick%;if %ini_ProjectileExplosive_%p%% < %ini_limit_ban%;Say :::::::::: [%p%] Kick for Proj.Explo > %w% using !;kick for Proj.Explo > %w% using !;if %ini_limit_activeban% == 0;set %ini_ProjectileExplosive_%p%% 0 On kill;Damage ProjectileExplosive;if %ini_limit_activekill% == 1;if %ini_ProjectileExplosive_%p%% >= %ini_limit_kill% if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 1;if %ini_ProjectileExplosive_%p%% < %ini_limit_kick%;Say :::::::::: [%p%] kill for Proj.Explo > %w% using !;kill 100 if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 0;if %ini_ProjectileExplosive_%p%% < %ini_limit_kick%;Say :::::::::: [%p%] kill for Proj.Explo > %w% using !;kill 100 if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 1;if %ini_ProjectileExplosive_%p%% < %ini_limit_tempban%;Say :::::::::: [%p%] kill for Proj.Explo > %w% using !;kill 100 if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 0;if %ini_ProjectileExplosive_%p%% < %ini_limit_ban%;Say :::::::::: [%p%] kill for Proj.Explo > %w% using !;kill 100;if %ini_limit_activeban% == 0;set %ini_ProjectileExplosive_%p%% 0 On kill;Damage ProjectileExplosive;if %ini_limit_activewarn% == 1;if %ini_limit_activekill% == 1;if %ini_ProjectileExplosive_%p%% >= %ini_limit_warn% if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 1;if %ini_ProjectileExplosive_%p%% < %ini_limit_kill%;playersay :::::::::: [%p%] Stop Projectiles Explosives ! if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 1;if %ini_ProjectileExplosive_%p%% < %ini_limit_kill%;playersay :::::::::: [%p%] Stop Projectiles Explosives ! if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 0;if %ini_ProjectileExplosive_%p%% < %ini_limit_kill%;playersay :::::::::: [%p%] Stop Projectiles Explosives ! if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 0;if %ini_ProjectileExplosive_%p%% < %ini_limit_kill%;playersay :::::::::: [%p%] Stop Projectiles Explosives ! On kill;Damage ProjectileExplosive;if %ini_limit_activewarn% == 1;if %ini_limit_activekill% == 0;if %ini_ProjectileExplosive_%p%% >= %ini_limit_warn% if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 1;if %ini_ProjectileExplosive_%p%% < %ini_limit_tempban%;playersay :::::::::: [%p%] Stop Projectiles Explosives ! if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 1;if %ini_ProjectileExplosive_%p%% < %ini_limit_kick%;playersay :::::::::: [%p%] Stop Projectiles Explosives ! if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 0;if %ini_ProjectileExplosive_%p%% < %ini_limit_kick%;playersay :::::::::: [%p%] Stop Projectiles Explosives ! if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 0;if %ini_ProjectileExplosive_%p%% < %ini_limit_ban%;playersay :::::::::: [%p%] Stop Projectiles Explosives;if %ini_limit_activeban% == 0;set %ini_ProjectileExplosive_%p%% 0 # Grenades # On kill;Not rate 2 4;if %ini_limit_grenades% == 1;Weapon U_V40,U_M67,U_M34,U_Grenade_RGO,U_Flashbang set %ini_grenade_%p%% %ini_grenade_%p%% + 1 if %ini_limit_activeban% == 1;if %ini_grenade_%p%% >= %ini_limit_ban%;Say :::::::::: [%p%] Ban for Explo > %w% using !;Ban %p% for Grenade > %w% using !(Auto BAN);set %ini_grenade_%p%% 0 if %ini_limit_activetempban% == 1;if %ini_grenade_%p%% >= %ini_limit_tempban%;if %ini_grenade_%p%% < %ini_limit_ban%;Say :::::::::: [%p%] TempBan for Grenade > %w% using !;tempBan 900 %p% for Explo > %w% (Tempban);if %ini_limit_activeban% == 0;set %ini_grenade_%p%% 0 On kill;Weapon U_V40,U_M67,U_M34,U_Grenade_RGO,U_Flashbang;if %ini_limit_activekick% == 1;if %ini_grenade_%p%% >= %ini_limit_kick% if %ini_limit_activetempban% == 1;if %ini_grenade_%p%% >= %ini_limit_kick%;if %ini_grenade_%p%% < %ini_limit_tempban%;Say :::::::::: [%p%] Kick for Grenade > %w% using !;kick for Grenade > %w% using ! if %ini_limit_activetempban% == 0;if %ini_grenade_%p%% >= %ini_limit_kick%;if %ini_grenade_%p%% < %ini_limit_ban%;Say :::::::::: [%p%] Kick for Grenade > %w% using !;kick for Grenade > %w% using !;if %ini_limit_activeban% == 0;set %ini_grenade_%p%% 0 On kill;Weapon U_V40,U_M67,U_M34,U_Grenade_RGO,U_Flashbang;if %ini_limit_activekill% == 1;;if %ini_grenade_%p%% >= %ini_limit_kill% if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 1;if %ini_grenade_%p%% < %ini_limit_kick%;Say :::::::::: [%p%] kill for Grenade > %w% using !;kill 100 if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 0;if %ini_grenade_%p%% < %ini_limit_kick%;Say :::::::::: [%p%] kill for Grenade > %w% using !;kill 100 if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 1;if %ini_grenade_%p%% < %ini_limit_tempban%;Say :::::::::: [%p%] kill for Grenade > %w% using !;kill 100 if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 0;if %ini_grenade_%p%% < %ini_limit_ban%;Say :::::::::: [%p%] kill for Grenade > %w% using !;kill 100;if %ini_limit_activeban% == 0;set %ini_grenade_%p%% 0 On kill;Weapon U_V40,U_M67,U_M34,U_Grenade_RGO,U_Flashbang;if %ini_limit_activewarn% == 1;if %ini_limit_activekill% == 1;if %ini_grenade_%p%% >= %ini_limit_warn% if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 1;if %%ini_grenade_%p%% < %ini_limit_kill%;playersay :::::::::: [%p%] Stop Grenade ! if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 1;if %ini_grenade_%p%% < %ini_limit_kill%;playersay :::::::::: [%p%] Stop Grenade ! if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 0;if %ini_grenade_%p%% < %ini_limit_kill%;playersay :::::::::: [%p%] Stop Grenade ! if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 0;if %ini_grenade_%p%% < %ini_limit_kill%;playersay :::::::::: [%p%] Stop Grenade ! On kill;Weapon U_V40,U_M67,U_M34,U_Grenade_RGO,U_Flashbang;if %ini_limit_activewarn% == 1;if %ini_limit_activekill% == 0;if %ini_grenade_%p%% >= %ini_limit_warn% if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 1;if %ini_grenade_%p%% < %ini_limit_tempban%;playersay :::::::::: [%p%] Stop Grenade ! if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 1;if %ini_grenade_%p%% < %ini_limit_kick%;playersay :::::::::: [%p%] Stop Grenade ! if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 0;if %ini_grenade_%p%% < %ini_limit_kick%;playersay :::::::::: [%p%] Stop Grenade ! if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 0;if %ini_grenade_%p%% < %ini_limit_ban%;playersay :::::::::: [%p%] Stop Grenade !;if %ini_limit_activeban% == 0;set %ini_grenade_%p%% 0 Yo,sur ton script j aurai voulus ajouté le fusil de chasse et en map seulement en rush comment je pourrai le faire il marche super bien le script merci a toi , Pourrai tu me donné la solution merci * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted January 19, 2014 Author Share Posted January 19, 2014 Originally Posted by C-4-N*: ajoute dans : ### EDITABLE ### WEAPONS choice , Forbid with 1 / Allowed with 0 ### set %ini_limit_shotgun% 1 et tout en bas du code pour rush Code: # Shotgun # On kill;if %mm% contains Rush;Not rate 2 4;if %ini_limit_shotgun% == 1;Damage shotgun set %ini_shotgun_%p%% %ini_shotgun_%p%% + 1 if %ini_limit_activeban% == 1;if %ini_shotgun_%p%% >= %ini_limit_ban%;Say :::::::::: [%p%] Ban for shotgun > %w% using !;Ban %p% for shotgun > %w% using !(Auto BAN);set %ini_shotgun_%p%% 0 if %ini_limit_activetempban% == 1;if %ini_shotgun_%p%% >= %ini_limit_tempban%;if %ini_shotgun_%p%% < %ini_limit_ban%;Say :::::::::: [%p%] TempBan for shotgun > %w% using !;tempBan 900 %p% for shotgun > %w% (Tempban);if %ini_limit_activeban% == 0;set %ini_shotgun_%p%% 0 On kill;Damage shotgun;if %ini_limit_activekick% == 1;if %ini_shotgun_%p%% >= %ini_limit_kick% if %ini_limit_activetempban% == 1;if %ini_shotgun_%p%% >= %ini_limit_kick%;if %ini_shotgun_%p%% < %ini_limit_tempban%;Say :::::::::: [%p%] Kick for shotgun > %w% using !;kick for shotgun > %w% using ! if %ini_limit_activetempban% == 0;if %ini_shotgun_%p%% >= %ini_limit_kick%;if %ini_shotgun_%p%% < %ini_limit_ban%;Say :::::::::: [%p%] Kick for shotgun > %w% using !;kick for shotgun > %w% using !;if %ini_limit_activeban% == 0;set %ini_shotgun_%p%% 0 On kill;Damage shotgun;if %ini_limit_activekill% == 1;if %ini_shotgun_%p%% >= %ini_limit_kill% if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 1;if %ini_shotgun_%p%% < %ini_limit_kick%;Say :::::::::: [%p%] kill for shotgun > %w% using !;kill 100 if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 0;if %ini_shotgun_%p%% < %ini_limit_kick%;Say :::::::::: [%p%] kill for shotgun > %w% using !;kill 100 if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 1;if %ini_shotgun_%p%% < %ini_limit_tempban%;Say :::::::::: [%p%] kill for shotgun > %w% using !;kill 100 if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 0;if %ini_shotgun_%p%% < %ini_limit_ban%;Say :::::::::: [%p%] kill for shotgun > %w% using !;kill 100;if %ini_limit_activeban% == 0;set %ini_shotgun_%p%% 0 On kill;Damage shotgun;if %ini_limit_activewarn% == 1;if %ini_limit_activekill% == 1;if %ini_shotgun_%p%% >= %ini_limit_warn% if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 1;if %%ini_shotgun_%p%% < %ini_limit_kill%;playersay :::::::::: [%p%] Stop shotgun ! if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 1;if %ini_shotgun_%p%% < %ini_limit_kill%;playersay :::::::::: [%p%] Stop shotgun ! if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 0;if %ini_shotgun_%p%% < %ini_limit_kill%;playersay :::::::::: [%p%] Stop shotgun ! if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 0;if %ini_shotgun_%p%% < %ini_limit_kill%;playersay :::::::::: [%p%] Stop shotgun ! On kill;Damage shotgun;if %ini_limit_activewarn% == 1;if %ini_limit_activekill% == 0;if %ini_shotgun_%p%% >= %ini_limit_warn% if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 1;if %ini_shotgun_%p%% < %ini_limit_tempban%;playersay :::::::::: [%p%] Stop shotgun ! if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 1;if %ini_shotgun_%p%% < %ini_limit_kick%;playersay :::::::::: [%p%] Stop shotgun ! if %ini_limit_activekick% == 1;if %ini_limit_activetempban% == 0;if %ini_shotgun_%p%% < %ini_limit_kick%;playersay :::::::::: [%p%] Stop shotgun ! if %ini_limit_activekick% == 0;if %ini_limit_activetempban% == 0;if %ini_shotgun_%p%% < %ini_limit_ban%;playersay :::::::::: [%p%] Stop shotgun !;if %ini_limit_activeban% == 0;set %ini_shotgun_%p%% 0 * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted January 19, 2014 Author Share Posted January 19, 2014 Originally Posted by C-4-N*: the improve of LjMjollnir is surely better to modify or get more things I havent test it yet, but it can be more complete with shotguns , sniper , etc and slim as mine * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted January 19, 2014 Author Share Posted January 19, 2014 Originally Posted by virusdead*: Merci pour ton aide ,j ai une question peut on limité les véhicules en rush ,je trouve qu il y a un trop gros décalage. Aurais tu un script la dessus. en fait c est quand un jouer prend un véhicule et il fait un kill ,qu'il soit puni par " kills " Merci:smile: * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted January 20, 2014 Author Share Posted January 20, 2014 Originally Posted by HGG43*: can someone expand the list for m320 + RPG and Smaw? * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted January 22, 2014 Author Share Posted January 22, 2014 Originally Posted by LjMjollnir*: can someone expand the list for m320 + RPG and Smaw?M230, RPG, Smaw are covered by the script Also.. i will post my script again soon.. ill make a new forum post about it.. might be a few days or a week yet.. im currently not playing Bf4 right now. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 21, 2014 Author Share Posted March 21, 2014 Originally Posted by Michael199736*: I tried to get it slim as i can with my knows, i m not developer there is lot of possibility , so lot of conditions to get if someone have ideas to improve size , you re welcome **** Here the way to get limits on only one map ! exemple with map lockers (mp_prison) change at top of code on spawn;serverfirst ... with on spawn;serverfirst;not if %m% contains "Locker";set %ini_limit% 0 on spawn;serverfirst;if %m% contains "Locker" suite of code below How can I make two maps for example. Metro and Locker * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted August 28, 2014 Author Share Posted August 28, 2014 Originally Posted by eScenCe*: How can I make two maps for example. Metro and Locker*push* I would like to know this aswell. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted August 31, 2014 Author Share Posted August 31, 2014 Originally Posted by Narf!*: Maybe there... showthread....ght=explosives* * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 18, 2015 Author Share Posted March 18, 2015 Originally Posted by kumapan2008*: C-4-N.. i rewrote your script for you its untested but based heavily off what mine does so should work unless there is a typo Now you are using %ini% variables.. basically meaning they will persist through rounds and eventually if you continue to break the rules you will end up with a perma ban.. if you use just normal variables for the counts they are reset between rounds.. i think that is the better option.. however it is your script so i have adopted it to your setup .. just cleaned the code a bit and there was a couple of bugs here n there i spotted.. Code: on spawn;serverfirst ### EDITABLE ### Limite de tolérance , nombre d'effractions ### set %ini_limit_ban% 9 set %ini_limit_tempban% 7 set %ini_limit_kick% 5 set %ini_limit_kill% 3 set %ini_limit_warn% 1 ### EDITABLE ### LIMITS you want apply (ban / tempban / ...) Active with 1 / Desactive with 0 ### set %ini_limit_activeban% 1 set %ini_limit_activetempban% 1 set %ini_limit_activekick% 1 set %ini_limit_activekill% 1 set %ini_limit_activewarn% 1 ### EDITABLE ### Time for Tempban (900 = 15 minutes) set %ini_limit_timetempban% 900 ### EDITABLE ### WEAPONS choice , Forbid with 1 / Allowed with 0 ### set %ini_limit_claymore% 1 set %ini_limit_c4% 1 set %ini_limit_pexplosives% 1 set %ini_limit_grenades% 1 ### Ingame Controls On Say;Admin;!resetplayer;TargetPlayer;Set %ini_c4_%t%% 0;Set %ini_claymore_%t%% 0;Set %ini_grenade_%t%% 0;Set %ini_ProjextileExplosive_%t%% 0;Say %t% punish counts Reset # Forbidden Weapons, count and sanctions # ### c4 ### On kill;Not rate 2 4;if %ini_limit_c4% == 1;if %wk% contains U_C4;Incr %ini_c4_%p%%;Set %ta% 1;set %pcount% %ini_c4_%p%%;set %weap% "C4" ### claymore ### On kill;Not rate 2 4;if %ini_limit_claymore% == 1;if %wk% contains U_Claymore;Incr %ini_claymore_%p%% + Set %ta% 1;set %pcount% %ini_claymore_%p%%;set %weap% "Claymore" ### projectiles explosives ### On kill;Not rate 2 4;if %ini_limit_pexplosives% == 1;Damage ProjectileExplosive;Incr %ini_ProjectileExplosive_%p%% + Set %ta% 1;set %pcount% %ini_ProjectileExplosive_%p%%;set %weap% "Projectile Explosive" # Grenades # On kill;Not rate 2 4;if %ini_limit_grenades% == 1;Weapon U_V40,U_M67,U_M34,U_Grenade_RGO,U_Flashbang;Incr %ini_grenade_%p%% + Set %ta% 1;set %pcount% %ini_grenade_%p%%;set %weap% "Grenades" ### Punish Section On Kill;if %ta% == 1 If %ini_limit_activeban% == 1;if %pcount% >= %ini_limit_ban%;Say :::::::: %p% Banned for using %weap%;Ban %p% Banned for using %weap%;Set %ta% 0 If %ini_limit_activetempban% == 1;if %pcount% >= %ini_limit_tempban%;Say :::::::: %p% Banned for using %weap%;TempBan %ini_limit_timetempban% %p% Banned for using %weap%;Set %ta% 0 If %ini_limit_activekick% == 1;if %pcount% >= %ini_limit_kick%;Say :::::::: %p% Kicked for using %weap%;Kick %p% Kicked for using %weap%;Set %ta% 0 If %ini_limit_activekill% == 1;if %pcount% >= %ini_limit_kill%;Say :::::::: %p% Killed for using %weap%;Kill 100;Set %ta% 0 If %ini_limit_activewarn% == 1;if %pcount% >= %ini_limit_warn%;PlayerSay Stop using %weap%;Say :::::::: %p% Warned for using %weap%;Set %ta% 0/editadded a !resetplayer command to reset the punish counts to 0 for the selected player eg. !resetplayer LjMj should reseter LjMjollnir punish counts to 0 untested but i believe it should work.[/Q[/php] * 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.