Jump to content

ProconRulz - Sniper limiter v2.7 by Tarreltje


ImportBot

Recommended Posts

Originally Posted by fzzybllz*:

 

@rimmy yep, thats possible, just copy the code and replace those parts. You can set number of kills before kick in line 4 and 5

 

# SNIPER KILL CHECKS either over limit (so kill), existing sniper (do nothing), new sniper (reserve slot)

On Kill;Damage SniperRifle;

If %server_sl_limit[%p%]% >= 1;PlayerSay %p% KILLED by SNIPER Limit (Next Time: KICK)

If %server_sl_limit[%p%]% >= 2;Kick %p% KICKED for repeatedly using SNIPER without slot

If %server_sl_total[%ptk%]% >= %server_sniperlimit%;if %server_sl_sniper[%p%]% == 0;Incr %server_sl_limit[%p%]%;PlayerSay %p% killed by SNIPER LIMIT max %server_sniperlimit%;Log Sniper Limit max %server_sniperlimit% snipers each team !!! (now Kill %p%);Kill

If %server_sl_sniper[%p%]% == 0;Incr %server_sl_total[%ptk%]%;Set %server_sl_sniper[%p%]% 1;Set %server_sl_x% %server_sl_total[%ptk%]%;Set %server_sl_snipername[%ptk%][%server_sl_x%]% %p%;PlayerSay YOU HAVE A SNIPER SLOT !!! %server_sl_total[%ptk%]%/%server_sniperlimit%;

 

# SNIPER KILL CHECKS either over limit (so kill), existing sniper (do nothing), new sniper (reserve slot)

On Kill;Damage SniperRifle;

If %server_sl_total[%ptk%]% >= %server_sniperlimit%;If %server_sl_setsniper[%p%]% == 0;if %server_sl_sniper[%p%]% == 0;TeamSay %p% killed by SNIPER LIMIT for %pt%;Log Sniper Limit max %server_sniperlimit% snipers each team !!! (now Kill %p%);Kill

If %server_sl_sniper[%p%]% == 1;Log %ptk% %p% still 1 sniper, %server_sl_total[%ptk%]% snipers on team %ptk%

If %server_sl_sniper[%p%]% == 0;Incr %server_sl_total[%ptk%]%;Set %server_sl_sniper[%p%]% 1;Set %server_sl_limit[%p%]% 0;Set %server_sl_x% %server_sl_total[%ptk%]%;Set %server_sl_snipername[%ptk%][%server_sl_x%]% %p%;PlayerSay %p% has SNIPER slot on %pt% %server_sl_total[%ptk%]%/%server_sniperlimit%;Log %ptk% %p% is new sniper, %server_sl_total[%ptk%]%/%server_sniperlimit% snipers on team %ptk%

 

# FREE UP SNIPER SLOT IF SNIPER HAS NON-SNIPER KILL OR SNIPER LEAVES

On Kill;Not Damage SniperRifle;Not Damage Handgun;Not Weapon U_DesertEagle;Not Weapon U_SerbuShorty;Not Weapon U_Scout;Not Weapon Melee;Not Weapon U_SaddlegunSnp;Set %server_sl_limit[%p%]% 0;If %server_sl_sniper[%p%]% == 1;Set %server_sl_sniper[%p%]% 0;Decr %server_sl_total[%ptk%]%;TeamSay %pt% %p% gave up SNIPER slot (used %w%);Log Ex-sniper %p% used %d% %wk%, %server_sl_total[%ptk%]% snipers on team %ptk%

On Leave;If %server_sl_sniper[%p%]% == 1;Set %server_sl_sniper[%p%]% 0;Set %server_sl_limit[%p%]% 0;Decr %server_sl_total[%ptk%]%;TeamSay %pt% %p% gave up SNIPER slot (left server);Log Sniper %pt% %p% left server. %server_sl_total[%ptk%]% snipers on team %ptk%

* Restored post. It could be that the author is no longer active.
Link to comment
  • Replies 299
  • Created
  • Last Reply

Originally Posted by www-battleplay4u-com*:

 

@Anitchy

 

you mixed up several variables there. Best would be to download the script again and

  • replace every "sl" with "lmg"
  • replace every "Damage Sniper" with "Damage LMG"
  • replace the commands !snipers and !sniperx

@rimmy

 

Is it possible to set the rules so that the first 3 kills without a sniper rifle slot the players will get a warning message, the 4th kills will get them kicked?

 

Thanks.

yes, its possible. Replace the following parts in your code. You can set the limit of kills in the first 2 bold-marked lines.

 

# SNIPER KILL CHECKS either over limit (so kill), existing sniper (do nothing), new sniper (reserve slot)

On Kill;Damage SniperRifle;

If %server_sl_limit[%p%]% >= 1;PlayerSay %p% KILLED by SNIPER Limit (Next Time: KICK)

If %server_sl_limit[%p%]% >= 2;Kick %p% KICKED for repeatedly using SNIPER without slot

If %server_sl_total[%ptk%]% >= %server_sniperlimit%;if %server_sl_sniper[%p%]% == 0;Incr %server_sl_limit[%p%]%;PlayerSay %p% killed by SNIPER LIMIT max %server_sniperlimit%;Log Sniper Limit max %server_sniperlimit% snipers each team !!! (now Kill %p%);Kill

If %server_sl_sniper[%p%]% == 0;Incr %server_sl_total[%ptk%]%;Set %server_sl_sniper[%p%]% 1;Set %server_sl_x% %server_sl_total[%ptk%]%;Set %server_sl_snipername[%ptk%][%server_sl_x%]% %p%;PlayerSay YOU HAVE A SNIPER SLOT !!! %server_sl_total[%ptk%]%/%server_sniperlimit%;

 

# FREE UP SNIPER SLOT IF SNIPER HAS NON-SNIPER KILL OR SNIPER LEAVES

On Kill;Not Damage SniperRifle;Not Damage Handgun;Not Weapon U_DesertEagle;Not Weapon U_SerbuShorty;Not Weapon U_Scout;Not Weapon Melee;Not Weapon U_SaddlegunSnp;Set %server_sl_limit[%p%]% 0;If %server_sl_sniper[%p%]% == 1;Set %server_sl_sniper[%p%]% 0;Decr %server_sl_total[%ptk%]%;TeamSay %pt% %p% gave up SNIPER slot (used %w%);Log Ex-sniper %p% used %d% %wk%, %server_sl_total[%ptk%]% snipers on team %ptk%

On Leave;If %server_sl_sniper[%p%]% == 1;Set %server_sl_sniper[%p%]% 0;Set %server_sl_limit[%p%]% 0;Decr %server_sl_total[%ptk%]%;TeamSay %pt% %p% gave up SNIPER slot (left server);Log Sniper %pt% %p% left server. %server_sl_total[%ptk%]% snipers on team %ptk%

@tarreltje, all

 

i edited tarrletje's SniperLimit and added 2 functions.

  • An automatic warning + kick, if players wont listen the rules and use Sniper without Slot
  • !sniperX shows not only the amount of used slots in the opposite team, also the playernames are shown

I can post that version, if anybody is interessted

* Restored post. It could be that the author is no longer active.
Link to comment
  • 3 weeks later...
  • 4 weeks later...

Originally Posted by Grovax*:

 

the kick script does not work for me :sad:

 

Code:

# SNIPER KILL CHECKS either over limit (so kill), existing sniper (do nothing), new sniper (reserve slot)
On Kill;Damage SniperRifle;
[b]If %server_sl_limit[%p%]% >= 1;PlayerSay -;PlayerSay - %p% KILLED by SNIPER/DMR LIMIT (Warning: %server_sl_limit[%p%]%/5);PlayerSay -
If %server_sl_limit[%p%]% >= 4;PlayerSay -;PlayerSay - %p% KILLED by SNIPER/DMR LIMIT (Next Time: KICK);PlayerSay -
If %server_sl_limit[%p%]% >= 5;Kick %p% KICKED for repeatedly using SNIPER without slot[/b]
If %server_sl_total[%ptk%]% >= %server_sniperlimit%;if %server_sl_sniper[%p%]% == 0;Incr %server_sl_limit[%p%]%;PlayerSay -;PlayerSay %p% killed by SNIPER/DMR LIMIT (Warning: %server_sl_limit[%p%]%/5);PlayerSay -;Log Sniper Limit max %server_sniperlimit% snipers each team !!! (now Kill %p%);Kill 100
If %server_sl_sniper[%p%]% == 0;Incr %server_sl_total[%ptk%]%;Set %server_sl_sniper[%p%]% 1;Set %server_sl_x% %server_sl_total[%ptk%]%;Set %server_sl_snipername[%ptk%][%server_sl_x%]% %p%;PlayerSay -;PlayerSay - YOU HAVE A SNIPER/DMR SLOT! (%server_sl_total[%ptk%]%/%server_sniperlimit%);PlayerSay -;

# SNIPER KILL CHECKS either over limit (so kill), existing sniper (do nothing), new sniper (reserve slot)
On Kill;Damage DMR;
[b]If %server_sl_limit[%p%]% >= 1;PlayerSay -;PlayerSay - %p% KILLED by SNIPER/DMR LIMIT (Warning: %server_sl_limit[%p%]%/5);PlayerSay -
If %server_sl_limit[%p%]% >= 4;PlayerSay -;PlayerSay - %p% KILLED by SNIPER/DMR LIMIT (Next Time: KICK);PlayerSay -
If %server_sl_limit[%p%]% >= 5;Kick %p% KICKED for repeatedly using SNIPER without slot[/b]
If %server_sl_total[%ptk%]% >= %server_sniperlimit%;if %server_sl_sniper[%p%]% == 0;Incr %server_sl_limit[%p%]%;PlayerSay -;PlayerSay %p% killed by SNIPER/DMR LIMIT (Warning: %server_sl_limit[%p%]%/5);PlayerSay -;Log Sniper Limit max %server_sniperlimit% snipers each team !!! (now Kill %p%);Kill 100
If %server_sl_sniper[%p%]% == 0;Incr %server_sl_total[%ptk%]%;Set %server_sl_sniper[%p%]% 1;Set %server_sl_x% %server_sl_total[%ptk%]%;Set %server_sl_snipername[%ptk%][%server_sl_x%]% %p%;PlayerSay -;PlayerSay - YOU HAVE A SNIPER/DMR SLOT! (%server_sl_total[%ptk%]%/%server_sniperlimit%);PlayerSay -;

# FREE UP SNIPER SLOT IF SNIPER HAS NON-SNIPER KILL OR SNIPER LEAVES
On Kill;Not Damage SniperRifle;Not Damage Handgun;Not Damage Melee;Not Damage DMR;Not Damage Explosive;Set %server_sl_limit[%p%]% 0;If %server_sl_sniper[%p%]% == 1;Set %server_sl_sniper[%p%]% 0;Decr %server_sl_total[%ptk%]%;TeamSay -;TeamSay - %p% gave up SNIPER/DMR slot (used %w%);TeamSay -;Log Ex-sniper %p% used %d% %wk%, %server_sl_total[%ptk%]% snipers on team %ptk%
On Leave;If %server_sl_sniper[%p%]% == 1;Set %server_sl_sniper[%p%]% 0;Set %server_sl_limit[%p%]% 0;Decr %server_sl_total[%ptk%]%;TeamSay -;TeamSay - %p% gave up SNIPER/DMR slot (left server);TeamSay -;Log Sniper %pt% %p% left server. %server_sl_total[%ptk%]% snipers on team %ptk%
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ColColonCleaner*:

 

the kick function don't work @ my server :sad:

 

Code:

# SNIPER KILL CHECKS either over limit (so kill), existing sniper (do nothing), new sniper (reserve slot)
On Kill;Damage SniperRifle;
[b]If %server_sl_limit[%p%]% >= 1;PlayerSay -;PlayerSay - %p% KILLED by SNIPER/DMR LIMIT (Warning: %server_sl_limit[%p%]%/5);PlayerSay -
If %server_sl_limit[%p%]% >= 4;PlayerSay -;PlayerSay - %p% KILLED by SNIPER/DMR LIMIT (Next Time: KICK);PlayerSay -
If %server_sl_limit[%p%]% >= 5;Kick %p% KICKED for repeatedly using SNIPER without slot[/b]
If %server_sl_total[%ptk%]% >= %server_sniperlimit%;if %server_sl_sniper[%p%]% == 0;Incr %server_sl_limit[%p%]%;PlayerSay -;PlayerSay %p% killed by SNIPER/DMR LIMIT (Warning: %server_sl_limit[%p%]%/5);PlayerSay -;Log Sniper Limit max %server_sniperlimit% snipers each team !!! (now Kill %p%);Kill 100
If %server_sl_sniper[%p%]% == 0;Incr %server_sl_total[%ptk%]%;Set %server_sl_sniper[%p%]% 1;Set %server_sl_x% %server_sl_total[%ptk%]%;Set %server_sl_snipername[%ptk%][%server_sl_x%]% %p%;PlayerSay -;PlayerSay - YOU HAVE A SNIPER/DMR SLOT! (%server_sl_total[%ptk%]%/%server_sniperlimit%);PlayerSay -;

# SNIPER KILL CHECKS either over limit (so kill), existing sniper (do nothing), new sniper (reserve slot)
On Kill;Damage DMR;
[b]If %server_sl_limit[%p%]% >= 1;PlayerSay -;PlayerSay - %p% KILLED by SNIPER/DMR LIMIT (Warning: %server_sl_limit[%p%]%/5);PlayerSay -
If %server_sl_limit[%p%]% >= 4;PlayerSay -;PlayerSay - %p% KILLED by SNIPER/DMR LIMIT (Next Time: KICK);PlayerSay -
If %server_sl_limit[%p%]% >= 5;Kick %p% KICKED for repeatedly using SNIPER without slot[/b]
If %server_sl_total[%ptk%]% >= %server_sniperlimit%;if %server_sl_sniper[%p%]% == 0;Incr %server_sl_limit[%p%]%;PlayerSay -;PlayerSay %p% killed by SNIPER/DMR LIMIT (Warning: %server_sl_limit[%p%]%/5);PlayerSay -;Log Sniper Limit max %server_sniperlimit% snipers each team !!! (now Kill %p%);Kill 100
If %server_sl_sniper[%p%]% == 0;Incr %server_sl_total[%ptk%]%;Set %server_sl_sniper[%p%]% 1;Set %server_sl_x% %server_sl_total[%ptk%]%;Set %server_sl_snipername[%ptk%][%server_sl_x%]% %p%;PlayerSay -;PlayerSay - YOU HAVE A SNIPER/DMR SLOT! (%server_sl_total[%ptk%]%/%server_sniperlimit%);PlayerSay -;

# FREE UP SNIPER SLOT IF SNIPER HAS NON-SNIPER KILL OR SNIPER LEAVES
On Kill;Not Damage SniperRifle;Not Damage Handgun;Not Damage Melee;Not Damage DMR;Not Damage Explosive;Set %server_sl_limit[%p%]% 0;If %server_sl_sniper[%p%]% == 1;Set %server_sl_sniper[%p%]% 0;Decr %server_sl_total[%ptk%]%;TeamSay -;TeamSay - %p% gave up SNIPER/DMR slot (used %w%);TeamSay -;Log Ex-sniper %p% used %d% %wk%, %server_sl_total[%ptk%]% snipers on team %ptk%
On Leave;If %server_sl_sniper[%p%]% == 1;Set %server_sl_sniper[%p%]% 0;Set %server_sl_limit[%p%]% 0;Decr %server_sl_total[%ptk%]%;TeamSay -;TeamSay - %p% gave up SNIPER/DMR slot (left server);TeamSay -;Log Sniper %pt% %p% left server. %server_sl_total[%ptk%]% snipers on team %ptk%
Sure your server isn't official?
* Restored post. It could be that the author is no longer active.
Link to comment
  • 2 weeks later...

Originally Posted by Grovax*:

 

No, its a Ranked with full rights.

 

Now i test this part, but procon ignore complete the warning/ignore ifs. he use always the bold line. when i write "If %server_sl_limit[%p%]% == 0" in this line, the limit dont work.

 

Code:

# SNIPER KILL CHECKS either over limit (so kill), existing sniper (do nothing), new sniper (reserve slot)
On Kill;Not Admin;Damage SniperRifle;
If %server_sl_limit[%p%]% == 2;Incr %server_sl_limit[%p%]%;PlayerSay You killed by SNIPER/DMR LIMIT (Warning: %server_sl_limit[%p%]%/3);Kill 100
If %server_sl_limit[%p%]% == 3;Incr %server_sl_limit[%p%]%;PlayerSay You killed by SNIPER/DMR LIMIT (Warning: %server_sl_limit[%p%]%/3) (Next: kick);Kill 100
If %server_sl_limit[%p%]% >= 4;Kick %p% kicked for repeatedly using SNIPER/DMR without slot
[b]If %server_sl_total[%ptk%]% >= %server_sniperlimit%;if %server_sl_sniper[%p%]% == 0;Incr %server_sl_limit[%p%]%;PlayerSay You killed by SNIPER/DMR LIMIT (max. %server_sniperlimit% each team) (Warning: %server_sl_limit[%p%]%/3);Kill 100[/b]
If %server_sl_sniper[%p%]% == 0;Incr %server_sl_total[%ptk%]%;Set %server_sl_sniper[%p%]% 1;Set %server_sl_x% %server_sl_total[%ptk%]%;Set %server_sl_snipername[%ptk%][%server_sl_x%]% %p%;Set %server_sl_limit[%p%]% 0;PlayerSay YOU HAVE A SNIPER/DMR SLOT !!! (%server_sl_total[%ptk%]%/%server_sniperlimit%)

# FREE UP SNIPER SLOT IF SNIPER HAS NON-SNIPER KILL OR SNIPER LEAVES
On Kill;Not Damage SniperRifle;Not Damage Handgun;Not Damage Melee;Not Damage DMR;Not Damage Explosive;Set %server_sl_limit[%p%]% 0;If %server_sl_sniper[%p%]% == 1;Set %server_sl_sniper[%p%]% 0;Decr %server_sl_total[%ptk%]%;TeamSay %p% gave up SNIPER/DMR slot (used %w%);Log Ex-sniper %p% used %d% %wk%, %server_sl_total[%ptk%]% snipers on team %ptk%
On Leave;If %server_sl_sniper[%p%]% == 1;Set %server_sl_sniper[%p%]% 0;Set %server_sl_limit[%p%]% 0;Decr %server_sl_total[%ptk%]%;TeamSay %p% gave up SNIPER/DMR slot (left server);Log Sniper %pt% %p% left server. %server_sl_total[%ptk%]% snipers on team %ptk%
* Restored post. It could be that the author is no longer active.
Link to comment
  • 3 weeks later...

Originally Posted by Mamba334*:

 

What if there are more snipers than this limit? Will it kill last player that used sniper rifle with a message to change his kit or what will happen?

 

And what about the battle pickups? (all these one hit kill snipers that are all over the game)?

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

Originally Posted by Mamba334*:

 

Do you just copy this and paste it into the proconrulz plugin line that says "Rules" or in the line that say "Rulz.txt Filenames? This is all new to me.

Rules.

 

I went with the Insane Limits one and it works great.

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

Originally Posted by cscott69*:

 

Rules.

 

I went with the Insane Limits one and it works great.

Not sure about insane limits as it isnt working for me, It wont let me do anything with it. How did you load it into insane limits? I also keep getting a system.security.security.exception in insane limits
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Mamba334*:

 

Not sure about insane likmits as it isnt working for me, It wont let me do anything with it. How did you load it into insane limits? I also keep getting a system.securioty.security.exception in insane limits

I just followed his steps: showthread....t-%28v1-4-1%29*

 

Note, you have to make 3 limits. I labelled them sniper limit 1, sniper limit 2 and sniper limit 3

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

Originally Posted by cscott69*:

 

I just followed his steps: showthread....t-%28v1-4-1%29*

 

Note, you have to make 3 limits. I labelled them sniper limit 1, sniper limit 2 and sniper limit 3

FOr some reason Insane limits wont let me make any limits...any suggestions? I can make list, but cant add or start any limits.
* Restored post. It could be that the author is no longer active.
Link to comment
  • 2 weeks later...

Originally Posted by durangod*:

 

I have both rulz and insane limits for BF3 server. Are we still using this code to limit snipers with rulz or do we use insane limits to do this. If we do use this code with rulz, i assume we can just put all the rules in a .txt file on the game server procon layer correct?

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

Originally Posted by Chilace*:

 

Is it possible to adapt this sniper limit to ignore Gun Master gametype?

 

Its a pain when a preset is active that has a sniper rifle in it.

 

many thanks

Code:
On Kill;Not MapMode GunMaster;Damage SniperRifle;
On Kill;Not MapMode GunMaster;Damage DMR;
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Kal-El*:

 

Code:

On Kill;Not MapMode GunMaster;Damage SniperRifle;
On Kill;Not MapMode GunMaster;Damage DMR;
I have put it after every "On Kill" command and will see how it goes :smile:

 

################################################## ##

#sniper limit by tarreltje V2.3 - tweaked by Bambam

# Slot is reserved by SniperRifle kill

# Slot is lost by non-SniperRifle/Handgun kill

# Max # snipers is set in %server_sniperlimit% var

################################################## ##

 

# DEBUG

On Kill;Not MapMode GunMaster;Log %p% killed %v% with %d% %wk%

On Spawn;Log %p% spawned on %ptk%

 

# SET THE MAX # OF SNIPERS HERE:

On Kill;Not MapMode GunMaster;ServerFirst;Set %server_sniperlimit% 2

On Say;ServerFirst;Set %server_sniperlimit% 2

 

# SNIPER LOG MESSAGES

On Spawn;If %server_sl_sniper[%p%]% == 1;Log Sniper %pt% %p% re-spawned. %server_sl_total[%ptk%]% snipers on team %ptk%

On Kill;Not MapMode GunMaster;If %server_sl_sniper[%v%]% == 1;Log Sniper %vtk% %v% killed. %server_sl_total[%vtk%]% snipers on team %vtk%

 

# SNIPER KILL CHECKS either over limit (so kill), existing sniper (do nothing), new sniper (reserve slot)

On Kill;Not MapMode GunMaster;Damage SniperRifle;

If %server_sl_total[%ptk%]% >= %server_sniperlimit%;If %server_sl_setsniper[%p%]% == 0;if %server_sl_sniper[%p%]% == 0;TeamSay %p% killed by SNIPER LIMIT for %pt%;Log Sniper Limit max %server_sniperlimit% snipers each team !!! (now Kill %p%);Kill

If %server_sl_sniper[%p%]% == 1;Log %ptk% %p% still a sniper, %server_sl_total[%ptk%]% snipers on team %ptk%

If %server_sl_sniper[%p%]% == 0;Incr %server_sl_total[%ptk%]%;Set %server_sl_sniper[%p%]% 1;Set %server_sl_x% %server_sl_total[%ptk%]%;Set %server_sl_snipername[%ptk%][%server_sl_x%]% %p%;PlayerSay %p% has SNIPER slot on %pt% %server_sl_total[%ptk%]%/%server_sniperlimit%;Log %ptk% %p% is new sniper, %server_sl_total[%ptk%]%/%server_sniperlimit% snipers on team %ptk%

 

# SNIPER KILL CHECKS either over limit (so kill), existing sniper (do nothing), new sniper (reserve slot)

On Kill;Not MapMode GunMaster;Damage DMR;

If %server_sl_total[%ptk%]% >= %server_sniperlimit%;If %server_sl_setsniper[%p%]% == 0;if %server_sl_sniper[%p%]% == 0;PlayerSay %p% killed by SNIPER LIMIT for %pt%;Log Sniper Limit max %server_sniperlimit% snipers each team !!! (now Kill %p%);Kill

If %server_sl_sniper[%p%]% == 1;Log %ptk% %p% still a sniper, %server_sl_total[%ptk%]% snipers on team %ptk%

If %server_sl_sniper[%p%]% == 0;Incr %server_sl_total[%ptk%]%;Set %server_sl_sniper[%p%]% 1;Set %server_sl_x% %server_sl_total[%ptk%]%;Set %server_sl_snipername[%ptk%][%server_sl_x%]% %p%;PlayerSay %p% has SNIPER slot on %pt% %server_sl_total[%ptk%]%/%server_sniperlimit%;Log %ptk% %p% is new sniper, %server_sl_total[%ptk%]%/%server_sniperlimit% snipers on team %ptk%

 

# SNIPER KILL CHECKS either over limit (so kill), existing sniper (do nothing), new sniper (reserve slot)

On Kill;Not MapMode GunMaster;Weapon U_Scout;Not Damage SniperRifle;

If %server_sl_total[%ptk%]% >= %server_sniperlimit%;If %server_sl_setsniper[%p%]% == 0;if %server_sl_sniper[%p%]% == 0;TeamSay %p% killed by SNIPER LIMIT for %pt%;Log Sniper Limit max %server_sniperlimit% snipers each team !!! (now Kill %p%);Kill

If %server_sl_sniper[%p%]% == 1;Log %ptk% %p% still a sniper, %server_sl_total[%ptk%]% snipers on team %ptk%

If %server_sl_sniper[%p%]% == 0;Incr %server_sl_total[%ptk%]%;Set %server_sl_sniper[%p%]% 1;Set %server_sl_x% %server_sl_total[%ptk%]%;Set %server_sl_snipername[%ptk%][%server_sl_x%]% %p%;PlayerSay %p% has SNIPER slot on %pt% %server_sl_total[%ptk%]%/%server_sniperlimit%;Log %ptk% %p% is new sniper, %server_sl_total[%ptk%]%/%server_sniperlimit% snipers on team %ptk%

 

# FREE UP SNIPER SLOT IF SNIPER HAS NON-SNIPER KILL OR SNIPER LEAVES

On Kill;Not MapMode GunMaster;Not Damage SniperRifle;Not Damage DMR;Not Damage Handgun;Not Weapon U_Scout;Not Weapon Melee;If %server_sl_sniper[%p%]% == 1;Set %server_sl_sniper[%p%]% 0;Decr %server_sl_total[%ptk%]%;TeamSay %pt% %p% gave up SNIPER slot (used %w%);Log Ex-sniper %p% used %d% %wk%, %server_sl_total[%ptk%]% snipers on team %ptk%

On Leave;If %server_sl_sniper[%p%]% == 1;Set %server_sl_sniper[%p%]% 0;Decr %server_sl_total[%ptk%]%;TeamSay %pt% %p% gave up SNIPER slot (left server);Log Sniper %pt% %p% left server. %server_sl_total[%ptk%]% snipers on team %ptk%

 

# !snipers / !sniperx / !setsniper INFO MESSAGES

 

#!snipers tells you the current count for your team and sniper player names

On Say;Text !snipers;

PlayerSay Sniper limit: Reserve slot with sniper kill, until non-sniper/handgun/knife kill.

If %server_sl_total[%ptk%]% == 0;PlayerSay %pt% 0/%server_sniperlimit% SNIPERS on team %pt%

If %server_sl_total[%ptk%]% > 0;PlayerSay %pt% SNIPER[1/%server_sniperlimit%] is %server_sl_snipername[%ptk%][1]%

If %server_sl_total[%ptk%]% > 1;PlayerSay %pt% SNIPER[2/%server_sniperlimit%] is %server_sl_snipername[%ptk%][2]%

If %server_sl_total[%ptk%]% > 2;PlayerSay %pt% SNIPER[3/%server_sniperlimit%] is %server_sl_snipername[%ptk%][3]%

If %server_sl_total[%ptk%]% > 3;PlayerSay %pt% SNIPER[4/%server_sniperlimit%] is %server_sl_snipername[%ptk%][4]%

If %server_sl_total[%ptk%]% > 4;PlayerSay %pt% SNIPER[5/%server_sniperlimit%] is %server_sl_snipername[%ptk%][5]%

 

#!sniperx just gives the sniper counts for both teams

On Say;Text !sniperx;

PlayerSay SNIPERS: Team 1: %server_sl_total[1]%/%server_sniperlimit%, Team 2: %server_sl_total[2]%/%server_sniperlimit%

 

#!setsniper is admin-only command to allocate a sniper slot to player. E.g. "!setsniper bam"

On Say;Admin;Text !setsniper;TargetPlayer;Set %server_sl_setsniper[%t%]% 1;PlayerSay %t% guaranteed a SNIPER slot until round end

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

Originally Posted by durangod*:

 

I copied the code in the first post here (for both types) into my rulez array and then joined as sniper and nothing happened, no message or anything. I did restart the server (layer) afterwords. Did i not do this correct?

 

UPDATE: i stand corrected, had someone join the server with me and it is working just fine... thanks so much :smile:

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

Originally Posted by HATANO_KENJI*:

 

Code:

# SET THE MAX # OF SNIPERS HERE:
On Kill;ServerFirst;Set %server_sniperlimit% 4
On Say;ServerFirst;Set %server_sniperlimit% 4

# SET THE MAX # OF M224 HERE:
On Kill;ServerFirst;Set %server_M224limit% 3
On Say;ServerFirst;Set %server_M224limit% 3

# SET THE MAX # OF Shotgun HERE:
On Kill;ServerFirst;Set %server_sglimit% 3
On Say;ServerFirst;Set %server_sglimit% 3

# SET Server Rule Here
On Say;Text !rules,!rule,!r,!RULES,!RULE,!R;
	If %server_sniperlimit% != 0;PlayerSay ?????(Sniper Limit) : %server_sniperlimit%
	If %server_sglimit% != 0;PlayerSay ?????(Shotgun Limit) : %server_sglimit%
	If %server_M224limit% != 0;PlayerSay ?????(M224 Limit) : %server_M224limit%
	
################Sniper
# SNIPER KILL CHECKS either over limit (so kill), existing sniper (do nothing), new sniper (reserve slot)
On Kill;Damage SniperRifle;If %server_sniperlimit% != 0;
    If %server_sl_total[%ptk%]% >= %server_sniperlimit%;If %server_sl_setsniper[%p%]% == 0;if %server_sl_sniper[%p%]% == 0;Kill;PlayerYell ??????????(You Killed by Sniper Limited)
    If %server_sl_sniper[%p%]% == 0;Incr %server_sl_total[%ptk%]%;Set %server_sl_sniper[%p%]% 1;Set %server_sl_x% %server_sl_total[%ptk%]%;Set %server_sl_snipername[%ptk%][%server_sl_x%]% %p%;TeamSay %p% ????????(Get a sniper slot) %server_sl_total[%ptk%]%/%server_sniperlimit%;

# SNIPER KILL CHECKS either over limit (so kill), existing sniper (do nothing), new sniper (reserve slot)
On Kill;Damage DMR;If %server_sniperlimit% != 0;
    If %server_sl_total[%ptk%]% >= %server_sniperlimit%;If %server_sl_setsniper[%p%]% == 0;if %server_sl_sniper[%p%]% == 0;Kill;PlayerYell ??????????(You Killed by Sniper Limited)
    If %server_sl_sniper[%p%]% == 0;Incr %server_sl_total[%ptk%]%;Set %server_sl_sniper[%p%]% 1;Set %server_sl_x% %server_sl_total[%ptk%]%;Set %server_sl_snipername[%ptk%][%server_sl_x%]% %p%;TeamSay %p% ????????(Get a sniper slot) %server_sl_total[%ptk%]%/%server_sniperlimit%;

# SNIPER KILL CHECKS either over limit (so kill), existing sniper (do nothing), new sniper (reserve slot)
On Kill;Weapon U_Scout;Not Damage SniperRifle;If %server_sniperlimit% != 0;
    If %server_sl_total[%ptk%]% >= %server_sniperlimit%;If %server_sl_setsniper[%p%]% == 0;if %server_sl_sniper[%p%]% == 0;Kill;PlayerYell ??????????(You Killed by Sniper Limited)
    If %server_sl_sniper[%p%]% == 0;Incr %server_sl_total[%ptk%]%;Set %server_sl_sniper[%p%]% 1;Set %server_sl_x% %server_sl_total[%ptk%]%;Set %server_sl_snipername[%ptk%][%server_sl_x%]% %p%;TeamSay %p% ????????(Get a sniper slot) %server_sl_total[%ptk%]%/%server_sniperlimit%;

# FREE UP SNIPER SLOT IF SNIPER HAS NON-SNIPER KILL OR SNIPER LEAVES    
On Kill;Not Damage SniperRifle;Not Damage DMR;Not Damage Handgun;Not Weapon U_Scout;Not Weapon Melee;Not Damage Explosive;If %server_sl_sniper[%p%]% == 1;Set %server_sl_sniper[%p%]% 0;Decr %server_sl_total[%ptk%]%;TeamSay %p% ?????????(Give up sniper slot);
On Leave;If %server_sl_sniper[%p%]% == 1;Set %server_sl_sniper[%p%]% 0;Decr %server_sl_total[%ptk%]%;TeamSay %p% ????????(Give up sniper slot);

################M224
# M224 KILL CHECKS either over limit (so kill), existing M224 (do nothing), new M224 (reserve slot)
On Kill;Weapon M224 U_M224;If %server_M224limit% != 0;
    If %server_m224_total[%ptk%]% >= %server_M224limit%;If %server_sl_setM224[%p%]% == 0;if %server_sl_M224[%p%]% == 0;Kill;PlayerYell ??????????(You Killed by M224 Limited)
    If %server_sl_M224[%p%]% == 0;Incr %server_m224_total[%ptk%]%;Set %server_sl_M224[%p%]% 1;Set %server_sl_x% %server_m224_total[%ptk%]%;Set %server_sl_M224name[%ptk%][%server_sl_x%]% %p%;TeamSay %p% ????????(Get a M224 slot) %server_m224_total[%ptk%]%/%server_M224limit%;
	
# FREE UP M224 SLOT IF M224 HAS NON-M224 KILL OR M224 LEAVES
On Kill;Not Weapon M224 U_M224;Not KIT Support;Not Damage Handgun;Not Weapon Melee;Not Damage Explosive;If %server_sl_M224[%p%]% == 1;Set %server_sl_M224[%p%]% 0;Decr %server_m224_total[%ptk%]%;TeamSay %p% ???????(Give up M224 slot);
On Leave;If %server_sl_M224[%p%]% == 1;Set %server_sl_M224[%p%]% 0;Decr %server_m224_total[%ptk%]%;TeamSay %p% ???????(Give up M224 slot);

################Shotgun
# Shotgun KILL CHECKS either over limit (so kill), existing Shotgun (do nothing), new Shotgun (reserve slot)
On Kill;Damage Shotgun;If %server_sglimit% != 0;
    If %server_sg_total[%ptk%]% >= %server_sglimit%;If %server_sl_setsg[%p%]% == 0;if %server_sl_Sg[%p%]% == 0;Kill;PlayerYell ?????????????(You Killed by Shotgun Limited)
    If %server_sl_Sg[%p%]% == 0;Incr %server_sg_total[%ptk%]%;Set %server_sl_Sg[%p%]% 1;Set %server_sl_x% %server_sg_total[%ptk%]%;Set %server_sl_Sgname[%ptk%][%server_sl_x%]% %p%;TeamSay %p% ????????(Get a Shotgun slot) %server_sg_total[%ptk%]%/%server_sglimit%;

# FREE UP Shotgun SLOT IF Shotgun HAS NON-Shotgun KILL OR Shotgun LEAVES    
On Kill;Not Damage Shotgun;Not Damage Handgun;Not Weapon Melee;Not Damage Explosive; If %server_sl_Sg[%p%]% == 1;Set %server_sl_Sg[%p%]% 0;Decr %server_sg_total[%ptk%]%;TeamSay %p% ???????(Give up Shotgun slot);
On Leave;If %server_sl_Sg[%p%]% == 1;Set %server_sl_Sg[%p%]% 0;Decr %server_sg_total[%ptk%]%;TeamSay %p% ???????(Give up Shotgun slot);

##########Text !s to Check
On Say;Text !sniper,!s,!SNIPER,!S;
	If %server_sniperlimit% != 0;PlayerSay ???(Sniper): Team 1: %server_sl_total[1]%/%server_sniperlimit%, Team 2: %server_sl_total[2]%/%server_sniperlimit%
	If %server_sglimit% != 0;PlayerSay ???(Shotgun): Team 1: %server_sg_total[1]%/%server_sglimit%, Team 2: %server_sg_total[2]%/%server_sglimit%
	If %server_M224limit% != 0;PlayerSay ???(M224): Team 1: %server_m224_total[1]%/%server_M224limit%, Team 2: %server_m224_total[2]%/%server_M224limit%
	PlayerSay ?? %ptk% ?, You are in Team %ptk%
	
#########################################END###########################################
This is my code, Can be limited to Sniper, Shotgun, M224, Can work properly.

 

But I need VIP can be unrestricted, how can I change? May I ask someone to tell me?

 

Thank you for your patience!

* Restored post. It could be that the author is no longer active.
Link to comment
  • 4 months later...
  • 1 year later...

Hello!

This is my code, If I want to separate the sniper rifle and the DMRS slot, what should I do?

 

SNIPERS Limit 5

DMRS Limit 5

SHOTGUN Limit 5

M224 Limit 5

 

Please tell me how to modify?

 

Thank you!

# SET THE MAX # OF SNIPERS HERE:
On Kill;ServerFirst;Set %server_sniperlimit% 5
On Say;ServerFirst;Set %server_sniperlimit% 5

# SET THE MAX # OF M224 HERE:
On Kill;ServerFirst;Set %server_M224limit% 5
On Say;ServerFirst;Set %server_M224limit% 5

# SET THE MAX # OF Shotgun HERE:
On Kill;ServerFirst;Set %server_sglimit% 5
On Say;ServerFirst;Set %server_sglimit% 5

# SET Server Rule Here
On Say;Text !rules,!rule,!RULES,!RULE;
    If %server_sniperlimit% != 0;PlayerSay 狙擊手é™åˆ¶(Sniper Limit) : %server_sniperlimit%
    If %server_sglimit% != 0;PlayerSay 散彈æ§é™åˆ¶(Shotgun Limit) : %server_sglimit%
    If %server_M224limit% != 0;PlayerSay è¿«æ“Šç‚®é™åˆ¶(M224 Limit) : %server_M224limit%
    
################Sniper
# SNIPER KILL CHECKS either over limit (so kill), existing sniper (do nothing), new sniper (reserve slot)
On Kill;Damage SniperRifle;If %server_sniperlimit% != 0;
    If %server_sl_total[%ptk%]% >= %server_sniperlimit%;If %server_sl_setsniper[%p%]% == 0;if %server_sl_sniper[%p%]% == 0;Kill;PlayerYell 您已經超éŽç‹™æ“Šæ‰‹é™åˆ¶ (You Killed by Sniper Limited)
    If %server_sl_sniper[%p%]% == 0;Incr %server_sl_total[%ptk%]%;Set %server_sl_sniper[%p%]% 1;Set %server_sl_x% %server_sl_total[%ptk%]%;Set %server_sl_snipername[%ptk%][%server_sl_x%]% %p%;TeamSay %p% æŒæœ‰æœ¬éšŠç‹™æ“Šæ§ä½(Get a sniper slot) %server_sl_total[%ptk%]%/%server_sniperlimit%;

# SNIPER KILL CHECKS either over limit (so kill), existing sniper (do nothing), new sniper (reserve slot)
On Kill;Damage DMR;If %server_sniperlimit% != 0;
    If %server_sl_total[%ptk%]% >= %server_sniperlimit%;If %server_sl_setsniper[%p%]% == 0;if %server_sl_sniper[%p%]% == 0;Kill;PlayerYell 您已經超éŽç‹™æ“Šæ‰‹é™åˆ¶ (You Killed by Sniper Limited)
    If %server_sl_sniper[%p%]% == 0;Incr %server_sl_total[%ptk%]%;Set %server_sl_sniper[%p%]% 1;Set %server_sl_x% %server_sl_total[%ptk%]%;Set %server_sl_snipername[%ptk%][%server_sl_x%]% %p%;TeamSay %p% æŒæœ‰æœ¬éšŠç‹™æ“Šæ§ä½(Get a sniper slot) %server_sl_total[%ptk%]%/%server_sniperlimit%;

# SNIPER KILL CHECKS either over limit (so kill), existing sniper (do nothing), new sniper (reserve slot)
On Kill;Weapon U_Scout;Not Damage SniperRifle;If %server_sniperlimit% != 0;
    If %server_sl_total[%ptk%]% >= %server_sniperlimit%;If %server_sl_setsniper[%p%]% == 0;if %server_sl_sniper[%p%]% == 0;Kill;PlayerYell 您已經超éŽç‹™æ“Šæ‰‹é™åˆ¶ (You Killed by Sniper Limited)
    If %server_sl_sniper[%p%]% == 0;Incr %server_sl_total[%ptk%]%;Set %server_sl_sniper[%p%]% 1;Set %server_sl_x% %server_sl_total[%ptk%]%;Set %server_sl_snipername[%ptk%][%server_sl_x%]% %p%;TeamSay %p% æŒæœ‰æœ¬éšŠç‹™æ“Šæ§ä½(Get a sniper slot) %server_sl_total[%ptk%]%/%server_sniperlimit%;

# FREE UP SNIPER SLOT IF SNIPER HAS NON-SNIPER KILL OR SNIPER LEAVES
On Kill;Not Damage SniperRifle;Not Damage DMR;Not Damage Handgun;Not Weapon U_Scout;Not Weapon Melee;Not Damage Explosive;If %server_sl_sniper[%p%]% == 1;Set %server_sl_sniper[%p%]% 0;Decr %server_sl_total[%ptk%]%;TeamSay %p% 放棄本隊狙擊æ§ä½(Give up sniper slot);
On Leave;If %server_sl_sniper[%p%]% == 1;Set %server_sl_sniper[%p%]% 0;Decr %server_sl_total[%ptk%]%;TeamSay %p% 放棄本隊狙擊æ§ä½(Give up sniper slot);

################M224
# M224 KILL CHECKS either over limit (so kill), existing M224 (do nothing), new M224 (reserve slot)
On Kill;Weapon M224 U_M224;If %server_M224limit% != 0;
    If %server_m224_total[%ptk%]% >= %server_M224limit%;If %server_sl_setM224[%p%]% == 0;if %server_sl_M224[%p%]% == 0;Kill;PlayerYell 您已經超éŽè¿«æ“Šç‚®é™åˆ¶ (You Killed by M224 Limited)
    If %server_sl_M224[%p%]% == 0;Incr %server_m224_total[%ptk%]%;Set %server_sl_M224[%p%]% 1;Set %server_sl_x% %server_m224_total[%ptk%]%;Set %server_sl_M224name[%ptk%][%server_sl_x%]% %p%;TeamSay %p% æŒæœ‰æœ¬éšŠè¿«æ“Šç‚®ä½(Get a M224 slot) %server_m224_total[%ptk%]%/%server_M224limit%;
    
# FREE UP M224 SLOT IF M224 HAS NON-M224 KILL OR M224 LEAVES
On Kill;Not Weapon M224 U_M224;Not KIT Support;Not Damage Handgun;Not Weapon Melee;Not Damage Explosive;If %server_sl_M224[%p%]% == 1;Set %server_sl_M224[%p%]% 0;Decr %server_m224_total[%ptk%]%;TeamSay %p% 放棄了迫擊炮ä½(Give up M224 slot);
On Leave;If %server_sl_M224[%p%]% == 1;Set %server_sl_M224[%p%]% 0;Decr %server_m224_total[%ptk%]%;TeamSay %p% 放棄了迫擊炮ä½(Give up M224 slot);

################Shotgun
# Shotgun KILL CHECKS either over limit (so kill), existing Shotgun (do nothing), new Shotgun (reserve slot)
On Kill;Damage Shotgun;If %server_sglimit% != 0;
    If %server_sg_total[%ptk%]% >= %server_sglimit%;If %server_sl_setsg[%p%]% == 0;if %server_sl_Sg[%p%]% == 0;Kill;PlayerYell 您已經您已經超éŽæ•£å½ˆæ§é™åˆ¶(You Killed by Shotgun Limited)
    If %server_sl_Sg[%p%]% == 0;Incr %server_sg_total[%ptk%]%;Set %server_sl_Sg[%p%]% 1;Set %server_sl_x% %server_sg_total[%ptk%]%;Set %server_sl_Sgname[%ptk%][%server_sl_x%]% %p%;TeamSay %p% æŒæœ‰æœ¬éšŠæ•£å½ˆæ§ä½(Get a Shotgun slot) %server_sg_total[%ptk%]%/%server_sglimit%;

# FREE UP Shotgun SLOT IF Shotgun HAS NON-Shotgun KILL OR Shotgun LEAVES
On Kill;Not Damage Shotgun;Not Damage Handgun;Not Weapon Melee;Not Damage Explosive; If %server_sl_Sg[%p%]% == 1;Set %server_sl_Sg[%p%]% 0;Decr %server_sg_total[%ptk%]%;TeamSay %p% 放棄了散彈æ§ä½(Give up Shotgun slot);
On Leave;If %server_sl_Sg[%p%]% == 1;Set %server_sl_Sg[%p%]% 0;Decr %server_sg_total[%ptk%]%;TeamSay %p% 放棄了散彈æ§ä½(Give up Shotgun slot);

##########Text !s to Check
On Say;Text !sniper,!s,!SNIPER,!S;
    If %server_sniperlimit% != 0;PlayerSay 狙擊手 (Sniper): Team 1: %server_sl_total[1]%/%server_sniperlimit%, Team 2: %server_sl_total[2]%/%server_sniperlimit%
    If %server_sglimit% != 0;PlayerSay æ•£å½ˆæ§ (Shotgun): Team 1: %server_sg_total[1]%/%server_sglimit%, Team 2: %server_sg_total[2]%/%server_sglimit%
    If %server_M224limit% != 0;PlayerSay è¿«æ“Šç‚® (M224): Team 1: %server_m224_total[1]%/%server_M224limit%, Team 2: %server_m224_total[2]%/%server_M224limit%
    PlayerSay 你在 %ptk% 隊, You are in Team %ptk%
    
#########################################END###########################################
Link to comment
  • 5 months later...
On 2/16/2020 at 3:22 PM, GK_Nico said:

Hi there

Could anyone please tell me how I can ban all snipers such as explosives and shotgun?

 

And sorry for my bad english come from germany and can hardly speak english :(

 

pls for BF4

Wrong thread ?

Use AdKatsLRT https://github.com/AdKats/AdKats-LRT

Need new plugin features? I can change: Adkats, AdKatsLRT, LanguageEnforcer, InsaneLimits, xVotemap for you. Also working on new plugins. Have an idea? Share it and I might include it in my repos. Github.com/hedius

 

Check out E4GLAdKats for an advancded and maintained AdKats version.

Link to comment
# SET THE MAX # OF SNIPERS HERE:
On Kill;ServerFirst;Set %server_sniperlimit% 5
On Say;ServerFirst;Set %server_sniperlimit% 5

# SET THE MAX # OF DMRS HERE:
On Kill;ServerFirst;Set %server_DMRlimit% 5
On Say;ServerFirst;Set %server_DMRlimit% 5

# SET THE MAX # OF M224 HERE:
On Kill;ServerFirst;Set %server_M224limit% 5
On Say;ServerFirst;Set %server_M224limit% 5

# SET THE MAX # OF Shotgun HERE:
On Kill;ServerFirst;Set %server_sglimit% 5
On Say;ServerFirst;Set %server_sglimit% 5

# SET Server Rule Here
On Say;Text !rules,!rule,!RULES,!RULE;
	If %server_sniperlimit% != 0;PlayerSay 狙擊槍限制(Sniper Limit) : %server_sniperlimit%
	If %server_sniperlimit% != 0;PlayerSay 精確射手步槍限制(DMR Limit) : %server_DMRlimit%
	If %server_sglimit% != 0;PlayerSay 散彈槍限制(Shotgun Limit) : %server_sglimit%
	If %server_M224limit% != 0;PlayerSay 迫擊炮限制(M224 Limit) : %server_M224limit%
	
################Sniper
# SNIPER KILL CHECKS either over limit (so kill), existing sniper (do nothing), new sniper (reserve slot)
On Kill;Damage SniperRifle;If %server_sniperlimit% != 0;
    If %server_sl_total[%ptk%]% >= %server_sniperlimit%;If %server_sl_setsniper[%p%]% == 0;if %server_sl_sniper[%p%]% == 0;Kill;PlayerYell 您已經超過狙擊槍限制 (You Killed by Sniper Limited)
    If %server_sl_sniper[%p%]% == 0;Incr %server_sl_total[%ptk%]%;Set %server_sl_sniper[%p%]% 1;Set %server_sl_x% %server_sl_total[%ptk%]%;Set %server_sl_snipername[%ptk%][%server_sl_x%]% %p%;TeamSay %p% 持有本隊狙擊槍槍位(Get a sniper slot) %server_sl_total[%ptk%]%/%server_sniperlimit%;

# SNIPER KILL CHECKS either over limit (so kill), existing sniper (do nothing), new sniper (reserve slot)
On Kill;Weapon U_Scout;Not Damage SniperRifle;If %server_sniperlimit% != 0;
    If %server_sl_total[%ptk%]% >= %server_sniperlimit%;If %server_sl_setsniper[%p%]% == 0;if %server_sl_sniper[%p%]% == 0;Kill;PlayerYell 您已經超過狙擊槍限制 (You Killed by Sniper Limited)
    If %server_sl_sniper[%p%]% == 0;Incr %server_sl_total[%ptk%]%;Set %server_sl_sniper[%p%]% 1;Set %server_sl_x% %server_sl_total[%ptk%]%;Set %server_sl_snipername[%ptk%][%server_sl_x%]% %p%;TeamSay %p% 持有本隊狙擊槍槍位(Get a sniper slot) %server_sl_total[%ptk%]%/%server_sniperlimit%;

# FREE UP SNIPER SLOT IF SNIPER HAS NON-SNIPER KILL OR SNIPER LEAVES
On Kill;Not Damage SniperRifle;Not Damage DMR;Not Damage Handgun;Not Weapon U_Scout;Not Weapon Melee;Not Damage Explosive;If %server_sl_sniper[%p%]% == 1;Set %server_sl_sniper[%p%]% 0;Decr %server_sl_total[%ptk%]%;TeamSay %p% 放棄本隊狙擊槍槍位(Give up sniper slot);
On Leave;If %server_sl_sniper[%p%]% == 1;Set %server_sl_sniper[%p%]% 0;Decr %server_sl_total[%ptk%]%;TeamSay %p% 放棄本隊狙擊槍位(Give up sniper slot);

################DMR
# DMR KILL CHECKS either over limit (so kill), existing DMR (do nothing), new DMR (reserve slot)
On Kill;Damage DMR;If %server_DMRlimit% != 0;
    If %server_sl_total[%ptk%]% >= %server_DMRlimit%;If %server_sl_setDMR[%p%]% == 0;if %server_sl_DMR[%p%]% == 0;Kill;PlayerYell 您已經超過精確射手步槍限制 (You Killed by DMR Limited)
    If %server_sl_DMR[%p%]% == 0;Incr %server_sl_total[%ptk%]%;Set %server_sl_DMR[%p%]% 1;Set %server_sl_x% %server_sl_total[%ptk%]%;Set %server_sl_DMRname[%ptk%][%server_sl_x%]% %p%;TeamSay %p% 持有本隊精確射手步槍槍位(Get a DMR slot) %server_sl_total[%ptk%]%/%server_DMRlimit%;

# FREE UP DMR SLOT IF DMR HAS NON-DMR KILL OR DMR LEAVES
On Kill;Not Damage DMR;Not Damage Handgun;Not Weapon U_Scout;Not Weapon Melee;Not Damage Explosive;If %server_sl_DMR[%p%]% == 1;Set %server_sl_DMR[%p%]% 0;Decr %server_sl_total[%ptk%]%;TeamSay %p% 放棄本隊精確射手步槍槍位(Give up DMR slot);
On Leave;If %server_sl_DMR[%p%]% == 1;Set %server_sl_DMR[%p%]% 0;Decr %server_sl_total[%ptk%]%;TeamSay %p% 放棄本隊精確射手步槍槍位(Give up DMR slot);

################M224
# M224 KILL CHECKS either over limit (so kill), existing M224 (do nothing), new M224 (reserve slot)
On Kill;Weapon M224 U_M224;If %server_M224limit% != 0;
    If %server_m224_total[%ptk%]% >= %server_M224limit%;If %server_sl_setM224[%p%]% == 0;if %server_sl_M224[%p%]% == 0;Kill;PlayerYell 您已經超過迫擊炮限制 (You Killed by M224 Limited)
    If %server_sl_M224[%p%]% == 0;Incr %server_m224_total[%ptk%]%;Set %server_sl_M224[%p%]% 1;Set %server_sl_x% %server_m224_total[%ptk%]%;Set %server_sl_M224name[%ptk%][%server_sl_x%]% %p%;TeamSay %p% 持有本隊迫擊炮位(Get a M224 slot) %server_m224_total[%ptk%]%/%server_M224limit%;
	
# FREE UP M224 SLOT IF M224 HAS NON-M224 KILL OR M224 LEAVES
On Kill;Not Weapon M224 U_M224;Not KIT Support;Not Damage Handgun;Not Weapon Melee;Not Damage Explosive;If %server_sl_M224[%p%]% == 1;Set %server_sl_M224[%p%]% 0;Decr %server_m224_total[%ptk%]%;TeamSay %p% 放棄了迫擊炮位(Give up M224 slot);
On Leave;If %server_sl_M224[%p%]% == 1;Set %server_sl_M224[%p%]% 0;Decr %server_m224_total[%ptk%]%;TeamSay %p% 放棄了迫擊炮位(Give up M224 slot);

################Shotgun
# Shotgun KILL CHECKS either over limit (so kill), existing Shotgun (do nothing), new Shotgun (reserve slot)
On Kill;Damage Shotgun;If %server_sglimit% != 0;
    If %server_sg_total[%ptk%]% >= %server_sglimit%;If %server_sl_setsg[%p%]% == 0;if %server_sl_Sg[%p%]% == 0;Kill;PlayerYell 您已經超過散彈槍限制(You Killed by Shotgun Limited)
    If %server_sl_Sg[%p%]% == 0;Incr %server_sg_total[%ptk%]%;Set %server_sl_Sg[%p%]% 1;Set %server_sl_x% %server_sg_total[%ptk%]%;Set %server_sl_Sgname[%ptk%][%server_sl_x%]% %p%;TeamSay %p% 持有本隊散彈槍位(Get a Shotgun slot) %server_sg_total[%ptk%]%/%server_sglimit%;

# FREE UP Shotgun SLOT IF Shotgun HAS NON-Shotgun KILL OR Shotgun LEAVES
On Kill;Not Damage Shotgun;Not Damage Handgun;Not Weapon Melee;Not Damage Explosive; If %server_sl_Sg[%p%]% == 1;Set %server_sl_Sg[%p%]% 0;Decr %server_sg_total[%ptk%]%;TeamSay %p% 放棄了散彈槍位(Give up Shotgun slot);
On Leave;If %server_sl_Sg[%p%]% == 1;Set %server_sl_Sg[%p%]% 0;Decr %server_sg_total[%ptk%]%;TeamSay %p% 放棄了散彈槍位(Give up Shotgun slot);

##########Text !s to Check
On Say;Text !sniper,!s,!SNIPER,!S;
	If %server_sniperlimit% != 0;PlayerSay 狙擊槍 (Sniper): Team 1: %server_sl_total[1]%/%server_sniperlimit%, Team 2: %server_sl_total[2]%/%server_sniperlimit%
	If %server_sniperlimit% != 0;PlayerSay 精確射手步槍 (DMR): Team 1: %server_sl_total[1]%/%server_DMRlimit%, Team 2: %server_sl_total[2]%/%server_DMRlimit%
	If %server_sglimit% != 0;PlayerSay 散彈槍 (Shotgun): Team 1: %server_sg_total[1]%/%server_sglimit%, Team 2: %server_sg_total[2]%/%server_sglimit%
	If %server_M224limit% != 0;PlayerSay 迫擊炮 (M224): Team 1: %server_m224_total[1]%/%server_M224limit%, Team 2: %server_m224_total[2]%/%server_M224limit%
	PlayerSay 你在 %ptk% 隊, You are in Team %ptk%
	
#########################################END###########################################

This is the code I tried to modify, Can someone confirm it for me?

Thank you!

Link to comment
23 hours ago, HATANO_KENJI said:

# SET THE MAX # OF SNIPERS HERE:
On Kill;ServerFirst;Set %server_sniperlimit% 5
On Say;ServerFirst;Set %server_sniperlimit% 5

# SET THE MAX # OF DMRS HERE:
On Kill;ServerFirst;Set %server_DMRlimit% 5
On Say;ServerFirst;Set %server_DMRlimit% 5

# SET THE MAX # OF M224 HERE:
On Kill;ServerFirst;Set %server_M224limit% 5
On Say;ServerFirst;Set %server_M224limit% 5

# SET THE MAX # OF Shotgun HERE:
On Kill;ServerFirst;Set %server_sglimit% 5
On Say;ServerFirst;Set %server_sglimit% 5

# SET Server Rule Here
On Say;Text !rules,!rule,!RULES,!RULE;
	If %server_sniperlimit% != 0;PlayerSay 狙擊槍限制(Sniper Limit) : %server_sniperlimit%
	If %server_sniperlimit% != 0;PlayerSay 精確射手步槍限制(DMR Limit) : %server_DMRlimit%
	If %server_sglimit% != 0;PlayerSay 散彈槍限制(Shotgun Limit) : %server_sglimit%
	If %server_M224limit% != 0;PlayerSay 迫擊炮限制(M224 Limit) : %server_M224limit%
	
################Sniper
# SNIPER KILL CHECKS either over limit (so kill), existing sniper (do nothing), new sniper (reserve slot)
On Kill;Damage SniperRifle;If %server_sniperlimit% != 0;
    If %server_sl_total[%ptk%]% >= %server_sniperlimit%;If %server_sl_setsniper[%p%]% == 0;if %server_sl_sniper[%p%]% == 0;Kill;PlayerYell 您已經超過狙擊槍限制 (You Killed by Sniper Limited)
    If %server_sl_sniper[%p%]% == 0;Incr %server_sl_total[%ptk%]%;Set %server_sl_sniper[%p%]% 1;Set %server_sl_x% %server_sl_total[%ptk%]%;Set %server_sl_snipername[%ptk%][%server_sl_x%]% %p%;TeamSay %p% 持有本隊狙擊槍槍位(Get a sniper slot) %server_sl_total[%ptk%]%/%server_sniperlimit%;

# SNIPER KILL CHECKS either over limit (so kill), existing sniper (do nothing), new sniper (reserve slot)
On Kill;Weapon U_Scout;Not Damage SniperRifle;If %server_sniperlimit% != 0;
    If %server_sl_total[%ptk%]% >= %server_sniperlimit%;If %server_sl_setsniper[%p%]% == 0;if %server_sl_sniper[%p%]% == 0;Kill;PlayerYell 您已經超過狙擊槍限制 (You Killed by Sniper Limited)
    If %server_sl_sniper[%p%]% == 0;Incr %server_sl_total[%ptk%]%;Set %server_sl_sniper[%p%]% 1;Set %server_sl_x% %server_sl_total[%ptk%]%;Set %server_sl_snipername[%ptk%][%server_sl_x%]% %p%;TeamSay %p% 持有本隊狙擊槍槍位(Get a sniper slot) %server_sl_total[%ptk%]%/%server_sniperlimit%;

# FREE UP SNIPER SLOT IF SNIPER HAS NON-SNIPER KILL OR SNIPER LEAVES
On Kill;Not Damage SniperRifle;Not Damage DMR;Not Damage Handgun;Not Weapon U_Scout;Not Weapon Melee;Not Damage Explosive;If %server_sl_sniper[%p%]% == 1;Set %server_sl_sniper[%p%]% 0;Decr %server_sl_total[%ptk%]%;TeamSay %p% 放棄本隊狙擊槍槍位(Give up sniper slot);
On Leave;If %server_sl_sniper[%p%]% == 1;Set %server_sl_sniper[%p%]% 0;Decr %server_sl_total[%ptk%]%;TeamSay %p% 放棄本隊狙擊槍位(Give up sniper slot);

################DMR
# DMR KILL CHECKS either over limit (so kill), existing DMR (do nothing), new DMR (reserve slot)
On Kill;Damage DMR;If %server_DMRlimit% != 0;
    If %server_sl_total[%ptk%]% >= %server_DMRlimit%;If %server_sl_setDMR[%p%]% == 0;if %server_sl_DMR[%p%]% == 0;Kill;PlayerYell 您已經超過精確射手步槍限制 (You Killed by DMR Limited)
    If %server_sl_DMR[%p%]% == 0;Incr %server_sl_total[%ptk%]%;Set %server_sl_DMR[%p%]% 1;Set %server_sl_x% %server_sl_total[%ptk%]%;Set %server_sl_DMRname[%ptk%][%server_sl_x%]% %p%;TeamSay %p% 持有本隊精確射手步槍槍位(Get a DMR slot) %server_sl_total[%ptk%]%/%server_DMRlimit%;

# FREE UP DMR SLOT IF DMR HAS NON-DMR KILL OR DMR LEAVES
On Kill;Not Damage DMR;Not Damage Handgun;Not Weapon U_Scout;Not Weapon Melee;Not Damage Explosive;If %server_sl_DMR[%p%]% == 1;Set %server_sl_DMR[%p%]% 0;Decr %server_sl_total[%ptk%]%;TeamSay %p% 放棄本隊精確射手步槍槍位(Give up DMR slot);
On Leave;If %server_sl_DMR[%p%]% == 1;Set %server_sl_DMR[%p%]% 0;Decr %server_sl_total[%ptk%]%;TeamSay %p% 放棄本隊精確射手步槍槍位(Give up DMR slot);

################M224
# M224 KILL CHECKS either over limit (so kill), existing M224 (do nothing), new M224 (reserve slot)
On Kill;Weapon M224 U_M224;If %server_M224limit% != 0;
    If %server_m224_total[%ptk%]% >= %server_M224limit%;If %server_sl_setM224[%p%]% == 0;if %server_sl_M224[%p%]% == 0;Kill;PlayerYell 您已經超過迫擊炮限制 (You Killed by M224 Limited)
    If %server_sl_M224[%p%]% == 0;Incr %server_m224_total[%ptk%]%;Set %server_sl_M224[%p%]% 1;Set %server_sl_x% %server_m224_total[%ptk%]%;Set %server_sl_M224name[%ptk%][%server_sl_x%]% %p%;TeamSay %p% 持有本隊迫擊炮位(Get a M224 slot) %server_m224_total[%ptk%]%/%server_M224limit%;
	
# FREE UP M224 SLOT IF M224 HAS NON-M224 KILL OR M224 LEAVES
On Kill;Not Weapon M224 U_M224;Not KIT Support;Not Damage Handgun;Not Weapon Melee;Not Damage Explosive;If %server_sl_M224[%p%]% == 1;Set %server_sl_M224[%p%]% 0;Decr %server_m224_total[%ptk%]%;TeamSay %p% 放棄了迫擊炮位(Give up M224 slot);
On Leave;If %server_sl_M224[%p%]% == 1;Set %server_sl_M224[%p%]% 0;Decr %server_m224_total[%ptk%]%;TeamSay %p% 放棄了迫擊炮位(Give up M224 slot);

################Shotgun
# Shotgun KILL CHECKS either over limit (so kill), existing Shotgun (do nothing), new Shotgun (reserve slot)
On Kill;Damage Shotgun;If %server_sglimit% != 0;
    If %server_sg_total[%ptk%]% >= %server_sglimit%;If %server_sl_setsg[%p%]% == 0;if %server_sl_Sg[%p%]% == 0;Kill;PlayerYell 您已經超過散彈槍限制(You Killed by Shotgun Limited)
    If %server_sl_Sg[%p%]% == 0;Incr %server_sg_total[%ptk%]%;Set %server_sl_Sg[%p%]% 1;Set %server_sl_x% %server_sg_total[%ptk%]%;Set %server_sl_Sgname[%ptk%][%server_sl_x%]% %p%;TeamSay %p% 持有本隊散彈槍位(Get a Shotgun slot) %server_sg_total[%ptk%]%/%server_sglimit%;

# FREE UP Shotgun SLOT IF Shotgun HAS NON-Shotgun KILL OR Shotgun LEAVES
On Kill;Not Damage Shotgun;Not Damage Handgun;Not Weapon Melee;Not Damage Explosive; If %server_sl_Sg[%p%]% == 1;Set %server_sl_Sg[%p%]% 0;Decr %server_sg_total[%ptk%]%;TeamSay %p% 放棄了散彈槍位(Give up Shotgun slot);
On Leave;If %server_sl_Sg[%p%]% == 1;Set %server_sl_Sg[%p%]% 0;Decr %server_sg_total[%ptk%]%;TeamSay %p% 放棄了散彈槍位(Give up Shotgun slot);

##########Text !s to Check
On Say;Text !sniper,!s,!SNIPER,!S;
	If %server_sniperlimit% != 0;PlayerSay 狙擊槍 (Sniper): Team 1: %server_sl_total[1]%/%server_sniperlimit%, Team 2: %server_sl_total[2]%/%server_sniperlimit%
	If %server_sniperlimit% != 0;PlayerSay 精確射手步槍 (DMR): Team 1: %server_sl_total[1]%/%server_DMRlimit%, Team 2: %server_sl_total[2]%/%server_DMRlimit%
	If %server_sglimit% != 0;PlayerSay 散彈槍 (Shotgun): Team 1: %server_sg_total[1]%/%server_sglimit%, Team 2: %server_sg_total[2]%/%server_sglimit%
	If %server_M224limit% != 0;PlayerSay 迫擊炮 (M224): Team 1: %server_m224_total[1]%/%server_M224limit%, Team 2: %server_m224_total[2]%/%server_M224limit%
	PlayerSay 你在 %ptk% 隊, You are in Team %ptk%
	
#########################################END###########################################

This is the code I tried to modify, Can someone confirm it for me?

Thank you!

The sniper limit and rifle both increase server_sl_total  ? Should not both limits have their own variables?

Need new plugin features? I can change: Adkats, AdKatsLRT, LanguageEnforcer, InsaneLimits, xVotemap for you. Also working on new plugins. Have an idea? Share it and I might include it in my repos. Github.com/hedius

 

Check out E4GLAdKats for an advancded and maintained AdKats version.

Link to comment
1 hour ago, Hedius said:

The sniper limit and rifle both increase server_sl_total  ? Should not both limits have their own variables?

I just know that many people want me to calculate SNIPER RIFLE and DMR separately, And expressed anger and bullying me at the current code, Because for them DMR is not a sniper weapon.

Even if I don't play with guns, I can't judge the difference, I still need to separate this, I can only say that Asians hate this very much, I can't stand it anymore.

Dear sir, can you help me?

Link to comment
15 minutes ago, HATANO_KENJI said:

I just know that many people want me to calculate SNIPER RIFLE and DMR separately, And expressed anger and bullying me at the current code, Because for them DMR is not a sniper weapon.

Even if I don't play with guns, I can't judge the difference, I still need to separate this, I can only say that Asians hate this very much, I can't stand it anymore.

Dear sir, can you help me?

Just my opinion: I am a tank driver. And i have a sniper/dmr limit without separation. So eh... well I like your idea... I am motivated to do this with insane limits, but I just do not have the time... Also not to debug your procon rulz... Sorry :(

 

HELP NEEDED xd

Need new plugin features? I can change: Adkats, AdKatsLRT, LanguageEnforcer, InsaneLimits, xVotemap for you. Also working on new plugins. Have an idea? Share it and I might include it in my repos. Github.com/hedius

 

Check out E4GLAdKats for an advancded and maintained AdKats version.

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.