Jump to content

[BF4] proconrulz No explosives (editable)


ImportBot

Recommended Posts

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

Originally Posted by C-4-N*:

 

I tried to get it slim as i can with my knows, i m not developer :biggrin:

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

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

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

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

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^^ :smile:

 

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 :biggrin:

 

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

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 :ohmy: yeah mine doesnt do it individually .. but for the most part that is all we have required :ohmy:.. 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% 0
it just checks if you have the %ta% flag set :ohmy: 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 :ohmy:.. 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 :ohmy: once you get use to it you can reduce the size of your code quite easily.

 

Reducing code size does have alot of benefits :ohmy: 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 :ohmy:

 

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 :ohmy: )... 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

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 :ohmy: yeah mine doesnt do it individually .. but for the most part that is all we have required :ohmy:.. 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% 0
it just checks if you have the %ta% flag set :ohmy: 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 :ohmy:.. 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 :ohmy: once you get use to it you can reduce the size of your code quite easily.

 

Reducing code size does have alot of benefits :ohmy: 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 :ohmy:

 

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 :ohmy: )... 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

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 1
First line turns off ALL weapons.. then you just turn on what you like.. so !pistol 1 turns on the pistols :ohmy: !melee 1 turns on Knifes/Defib/Repair
* Restored post. It could be that the author is no longer active.
Link to comment

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

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 :ohmy: 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 :ohmy:.

 

40000 = 11 hours 6mins (well almost 7mins)

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by LjMjollnir*:

 

C-4-N.. i rewrote your script for you :ohmy: 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 :ohmy:.. 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
/edit

added 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 :ohmy: untested but i believe it should work.

* Restored post. It could be that the author is no longer active.
Link to comment

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 :smile:

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

Originally Posted by LjMjollnir*:

 

no problemo dude :ohmy:..

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 :ohmy:

* Restored post. It could be that the author is no longer active.
Link to comment

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

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 :ohmy:.. there was more in the private message which i dont have time to write here.. but you have it :P

* Restored post. It could be that the author is no longer active.
Link to comment

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

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 :ohmy:.. 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 :P... 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

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

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

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 :smile:

* Restored post. It could be that the author is no longer active.
Link to comment

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

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
  • 1 month later...

Originally Posted by Michael199736*:

 

I tried to get it slim as i can with my knows, i m not developer :biggrin:

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
  • 5 months later...
  • 6 months later...

Originally Posted by kumapan2008*:

 

C-4-N.. i rewrote your script for you :ohmy: 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 :ohmy:.. 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
/edit

added a !resetplayer command to reset the punish counts to 0 for the selected player

eg.

!resetplayer LjMj

 

should reseter LjMjollnir punish counts to 0 :ohmy: untested but i believe it should work.[/Q[/php]

* Restored post. It could be that the author is no longer active.
Link to comment

Archived

This topic is now archived and is closed to further replies.



  • Our picks

    • Game Server Hosting:

      We're happy to announce that EZRCON will branch out into the game server provider scene. This is a big step for us so please having patience if something doesn't go right in this area. Now, what makes us different compared to other providers? Well, we're going with the idea of having a scaleable server hosting and providing more control in how you set up your server. For example, in Minecraft, you have the ability to control how many CPU cores you wish your server to have access to, how much RAM you want to use, how much disk space you want to use. This type of control can't be offered in a single service package so you're able to configure a custom package the way you want it.

      You can see all the available games here. Currently, we have the following games available.

      Valheim (From $1.50 USD)


      Rust (From $3.20 USD)


      Minecraft (Basic) (From $4.00 USD)


      Call of Duty 4X (From $7.00 USD)


      OpenTTD (From $4.00 USD)


      Squad (From $9.00 USD)


      Insurgency: Sandstorm (From $6.40 USD)


      Changes to US-East:

      Starting in January 2022, we will be moving to a different provider that has better support, better infrastructure, and better connectivity. We've noticed that the connection/routes to this location are not ideal and it's been hard getting support to correct this. Our contract for our two servers ends in March/April respectively. If you currently have servers in this location you will be migrated over to the new provider. We'll have more details when the time comes closer to January. The new location for this change will be based out of Atlanta, GA. If you have any questions/concerns please open a ticket and we'll do our best to answer them.
      • 5 replies
    • Hello All,

      I wanted to give an update to how EZRCON is doing. As of today we have 56 active customers using the services offered. I'm glad its doing so well and it hasn't been 1 year yet. To those that have services with EZRCON, I hope the service is doing well and if not please let us know so that we can improve it where possible. We've done quite a few changes behind the scenes to improve the performance hopefully. 

      We'll be launching a new location for hosting procon layers in either Los Angeles, USA or Chicago, IL. Still being decided on where the placement should be but these two locations are not set in stone yet. We would like to get feedback on where we should have a new location for hosting the Procon Layers, which you can do by replying to this topic. A poll will be created where people can vote on which location they would like to see.

      We're also looking for some suggestions on what else you would like to see for hosting provider options. So please let us know your thoughts on this matter.
      • 4 replies
    • Added ability to disable the new API check for player country info


      Updated GeoIP database file


      Removed usage sending stats


      Added EZRCON ad banner



      If you are upgrading then you may need to add these two lines to your existing installation in the file procon.cfg. To enable these options just change False to True.

      procon.private.options.UseGeoIpFileOnly False
      procon.private.options.BlockRssFeedNews False



       
      • 2 replies
    • I wanted I let you know that I am starting to build out the foundation for the hosting services that I talked about here. The pricing model I was originally going for wasn't going to be suitable for how I want to build it. So instead I decided to offer each service as it's own product instead of a package deal. In the future, hopefully, I will be able to do this and offer discounts to those that choose it.

      Here is how the pricing is laid out for each service as well as information about each. This is as of 7/12/2020.

      Single MySQL database (up to 30 GB) is $10 USD per month.



      If you go over the 30 GB usage for the database then each additional gigabyte is charged at $0.10 USD each billing cycle. If you're under 30GB you don't need to worry about this.


      Databases are replicated across 3 zones (regions) for redundancy. One (1) on the east coast of the USA, One (1) in Frankfurt, and One (1) in Singapore. Depending on the demand, this would grow to more regions.


      Databases will also be backed up daily and retained for 7 days.




      Procon Layer will be $2 USD per month.


      Each layer will only allow one (1) game server connection. The reason behind this is for performance.


      Each layer will also come with all available plugins installed by default. This is to help facilitate faster deployments and get you up and running quickly.


      Each layer will automatically restart if Procon crashes. 


      Each layer will also automatically restart daily at midnight to make sure it stays in tip-top shape.


      Custom plugins can be installed by submitting a support ticket.




      Battlefield Admin Control Panel (BFACP) will be $5 USD per month


      As I am still working on building version 3 of the software, I will be installing the last version I did. Once I complete version 3 it will automatically be upgraded for you.





      All these services will be managed by me so you don't have to worry about the technical side of things to get up and going.

      If you would like to see how much it would cost for the services, I made a calculator that you can use. It can be found here https://ezrcon.com/calculator.html

       
      • 11 replies
    • I have pushed out a new minor release which updates the geodata pull (flags in the playerlisting). This should be way more accurate now. As always, please let me know if any problems show up.

       
      • 9 replies
×
×
  • Create New...

Important Information

Please review our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.