Jump to content

ProconRulz - Sniper limiter v2.7 by Tarreltje


ImportBot

Recommended Posts

Originally Posted by tarreltje*:

 

Same problem for me... ProconRulz 44j.1

Are you realy using my rules or the sniperrules that come with the proconrulz plugin? I ask this because with the rules that come with the plugin their you will loose you slot if you use some like knife and pistol.

 

I have alterd my rules so , that you use a knife or pistol you wont loose your slot... Im running the rules for ages on my server ad they do work like intented!

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

Originally Posted by tarreltje*:

 

i repeat...

 

What file I have to enter this code?

Open the plugin and at the section rules, you can paste my rules.

 

Due your question i suggest to read the first page of the proconrulz plugin thread since you dont know what this plugin is cabable of!

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

Originally Posted by tarreltje*:

 

Hi, sorry for my English,

I am new,i would like the to Limit my server with sniper!

i have Pr.rulez v44. but where i adde the Code?

Pls help me and thx

Open the plugin and at the section rules, you can paste my rules.

 

Due your question i suggest to read the first page of the proconrulz plugin thread since you dont know what this plugin is cabable of!

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

Originally Posted by Mikkaav*:

 

Are you realy using my rules or the sniperrules that come with the proconrulz plugin? I ask this because with the rules that come with the plugin their you will loose you slot if you use some like knife and pistol.

 

I have alterd my rules so , that you use a knife or pistol you wont loose your slot... Im running the rules for ages on my server ad they do work like intented!

I don't use any of the included rules which came with ProconRulz by default...

 

I'm using YOUR Sniperlimit and since 2 days people are complaining that whenever they kill with something else as the Sniper Rifle they get killed by Sniper Limit...

 

Code:

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

# 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;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;Damage SniperRifle;
If %server_sl_total[%ptk%]% >= %server_sniperlimit%;if %server_sl_sniper[%p%]% == 0;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%]% == 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% You have a SNIPER SLOT! %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 Damage Melee;Not Damage DMR;Not Damage Explosive;If %server_sl_sniper[%p%]% == 1;Set %server_sl_sniper[%p%]% 0;Decr %server_sl_total[%ptk%]%;TeamSay %p% gave up his SNIPER SLOT!;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 %p% gave up his SNIPER SLOT!;Log Sniper %pt% %p% left server. %server_sl_total[%ptk%]% snipers on team %ptk%

# !snipers / !sniperx INFO MESSAGES
On Say;Text !sniper;
PlayerSay Sniper limit: %server_sl_total[%ptk%]%/%server_sniperlimit%. Reserve slot with sniper kill, lose it with non-sniper/handgun kill.
If %server_sl_total[%ptk%]% == 0;PlayerSay 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]%
If %server_sl_total[%ptk%]% > 5;PlayerSay %pt% SNIPER[6/%server_sniperlimit%] is %server_sl_snipername[%ptk%][6]%
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by tarreltje*:

 

I dont have aclua about what it could be. Is your bf4.def updated? Or maby reset your layer or delete procon plugin en reinstall.

 

Im using the same rules till this day, im a sniper my self voor almost 98% of all the games i play and it ia working like intended.

 

 

 

Verstuurd vanaf mijn Nexus 4 met Tapatalk

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

Originally Posted by boookal*:

 

Love this script. Snipers and long range dmr's are far too easy to use and people just spam endlessly. One unfortunately thing is the limitation that we have to wait for a kill to enforce the rules. Is there any way to track how many times somebody breaks the too many snipers rule? I've often seen people just ignore the limit, and with a well placed spawn beacon, kill all they want and just spawn back. I'm sure this can be done as the teamkill punish code can track how many times you tk, but would it just be far too complicated to add that type of code to the sniper code?

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

Originally Posted by EdgarAllan*:

 

Any chance we could get a tweak to the Sniper/DMR rulez? I noticed the odd scenario where an Engineer was using a DMR, but lost his slot due to killing a tank with an RPG. Thanks

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

Originally Posted by tarreltje*:

 

Any chance we could get a tweak to the Sniper/DMR rulez? I noticed the odd scenario where an Engineer was using a DMR, but lost his slot due to killing a tank with an RPG. Thanks

Unfortunately i dont think we cant do much about this, since we dont get a trigger if the sniper weapon is picked up! So basicly proconrulz isnt able to see this!
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by boookal*:

 

Any chance we could get a tweak to the Sniper/DMR rulez? I noticed the odd scenario where an Engineer was using a DMR, but lost his slot due to killing a tank with an RPG. Thanks

Yes there is something you can do. Find this line that begins with this in your script

 

Code:

On Kill;Not Damage SniperRifle;Not Damage Handgun;....
and add this in the middle there after the last weapon listed

 

Not Damage ProjectileExplosive

 

The only thing I haven't figured out how to solve yet is when you kill somebody with no weapon listed, like killed the pilot of a chopper which then crashed and killed somebody on the ground. Many times you'll get credit for that but you will also lose your sniper slot. Or I think if you kill somebody with a claymore when you've already died after placing it, it gets confused.

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

Originally Posted by tarreltje*:

 

Yes there is something you can do. Find this line that begins with this in your script

 

Code:

On Kill;Not Damage SniperRifle;Not Damage Handgun;....
and add this in the middle there after the last weapon listed

 

Not Damage ProjectileExplosive

 

The only thing I haven't figured out how to solve yet is when you kill somebody with no weapon listed, like killed the pilot of a chopper which then crashed and killed somebody on the ground. Many times you'll get credit for that but you will also lose your sniper slot. Or I think if you kill somebody with a claymore when you've already died after placing it, it gets confused.

While this method works, yo basicly could add all of the of the other weapons.... then also could add mines, ect ect. This isnt fixing the main problem the the rules cant see an pickup of the sniperrifle.
* Restored post. It could be that the author is no longer active.
Link to comment
  • 2 weeks later...

Originally Posted by kronenbourg*:

 

Hi

 

We have the old version, 2.3. Not sure what the difference is, but basically we get the sniper limit to work. However, when it reaches the 3 limit, it says killing player, but never does. It does that for many times, as we found out last night :sad:

 

This is the one we use:

 

Code:

####################################################
#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;Log %p% killed %v% with %d% %wk%
On Spawn;Log %p% spawned on %ptk%

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

# 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;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;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;Damage DMR;
    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;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 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 <name-substring> 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
Thanks :smile:

 

Kro

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

Originally Posted by SandSukka*:

 

To previous poster, make sure your admins aren't excluded from being killed. The setting is in the plugin, not the rule itself

 

--------------------

Is it possible to have the sniper limit vary with the server population. For example, 16 players or less, 2 snipers max. 17-32 players, 3 snipers max. And so on.

 

 

 

Sent from my iPhone using Tapatalk

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

Originally Posted by tarreltje*:

 

That should be posible. Just count how much players you have with somethink like On Spawn;Playerfirst. Then if x=16 set %sniperlimt% x

 

Verstuurd vanaf mijn Nexus 4 met Tapatalk

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

Originally Posted by kronenbourg*:

 

To previous poster, make sure your admins aren't excluded from being killed. The setting is in the plugin, not the rule itself

Thanks, will take a look at that today :smile:

 

Just looked and the Admins were set not to kick/kill, so changed to Neither, and will see how that goes tonight

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

Originally Posted by SandSukka*:

 

That should be posible. Just count how much players you have with somethink like On Spawn;Playerfirst. Then if x=16 set %sniperlimt% x

 

Verstuurd vanaf mijn Nexus 4 met Tapatalk

Thanks Tarreltje. My programming skills are very weak but I will give it a shot. Thanks for pointing me in the right direction. Also I'm thinking I'd want to do this at the start of the round. I wouldn't want to change it mid round because that would cause confusion.

 

 

Sent from my iPhone using Tapatalk

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

Originally Posted by tarreltje*:

 

Thanks Tarreltje. My programming skills are very weak but I will give it a shot. Thanks for pointing me in the right direction. Also I'm thinking I'd want to do this at the start of the round. I wouldn't want to change it mid round because that would cause confusion.

 

 

Sent from my iPhone using Tapatalk

Just try it and post the rules here, it is a good way to get familiar with proconrulz. I will take a look at it then and help you out
* Restored post. It could be that the author is no longer active.
Link to comment
  • 2 weeks later...

Originally Posted by TigrisPanthera*:

 

Hi all, I wonder if you are able to assist.

 

If there any particular reason that the unreserving part of the code should not be working all of the time. A couple of times it appears that when someone uses another gun, they are supposedly unreserved. However, when someone then uses the !sniper(s) command to check for or not there is a free sniper slot, that player is still listed as holding a slot.

Code:

Code:

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

# SNIPER KILL CHECKS either over limit (so kill), existing sniper (do nothing), new sniper (reserve slot)
On Kill;Damage SniperRifle;Not Weapon U_m82a3;Not Weapon U_m82a3-cqb;Not Weapon U_m82a3-mid;Not Weapon U_amr-2;Not Weapon U_amr-2-cqb;Not Weapon U_amr-2-mid;
If %server_sl_total[%ptk%]% >= %server_sniperlimit%;if %server_sl_sniper[%p%]% == 0;PlayerSay %p% killed by SNIPER LIMIT max %server_sniperlimit%;Kill;set %sniperwarn% 1;
If %server_sl_sniper[%p%]% == 1;
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. !unreserve to give it up. %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_sl_total[%ptk%]% >= %server_sniperlimit%;if %server_sl_sniper[%p%]% == 0;PlayerSay %p% killed by SNIPER LIMIT max %server_sniperlimit%;Kill;set %sniperwarn% 1;
If %server_sl_sniper[%p%]% == 1;
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. !unreserve to give it up. %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;Not Weapon U_SerbuShorty;If %server_sl_sniper[%p%]% == 1;Set %server_sl_sniper[%p%]% 0;Decr %server_sl_total

[%ptk%]%;PlayerYell %p% gave up the SNIPER slot!
On Leave;If %server_sl_sniper[%p%]% == 1;Set %server_sl_sniper[%p%]% 0;Decr %server_sl_total[%ptk%]%

# !sniper / !sniperx INFO MESSAGES
On Say;Text !sniper;
PlayerSay Sniper limit: %server_sl_total[%ptk%]%/%server_sniperlimit%. Reserve slot with sniper kill, Unreserve with non-sniper kill or !unreserve
If %server_sl_total[%ptk%]% == 0;PlayerSay 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]%

On Say;Text !sniperx;
PlayerSay SNIPERS: Team 1: %server_sl_total[1]%/%server_sniperlimit%, Team 2: %server_sl_total[2]%/%server_sniperlimit%

#ON SPAWN KILLED BY LIMIT
On Spawn;If %sniperwarn% == 1;PlayerYell %p%, you were killed by SNIPER LIMIT. !sniper;set %sniperwarn% 0

#GIVE UP SLOT VOLUNTARILY
On Say;Text !unreserve;If %server_sl_sniper[%p%]% == 1;Set %server_sl_sniper[%p%]% 0;Decr %server_sl_total[%ptk%]%;PlayerYell %p% gave up the SNIPER slot!
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by tarreltje*:

 

Hi all, I wonder if you are able to assist.

 

If there any particular reason that the unreserving part of the code should not be working all of the time. A couple of times it appears that when someone uses another gun, they are supposedly unreserved. However, when someone then uses the !sniper(s) command to check for or not there is a free sniper slot, that player is still listed as holding a slot.

Code:

Code:

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

# SNIPER KILL CHECKS either over limit (so kill), existing sniper (do nothing), new sniper (reserve slot)
On Kill;Damage SniperRifle;Not Weapon U_m82a3;Not Weapon U_m82a3-cqb;Not Weapon U_m82a3-mid;Not Weapon U_amr-2;Not Weapon U_amr-2-cqb;Not Weapon U_amr-2-mid;
If %server_sl_total[%ptk%]% >= %server_sniperlimit%;if %server_sl_sniper[%p%]% == 0;PlayerSay %p% killed by SNIPER LIMIT max %server_sniperlimit%;Kill;set %sniperwarn% 1;
If %server_sl_sniper[%p%]% == 1;
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. !unreserve to give it up. %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_sl_total[%ptk%]% >= %server_sniperlimit%;if %server_sl_sniper[%p%]% == 0;PlayerSay %p% killed by SNIPER LIMIT max %server_sniperlimit%;Kill;set %sniperwarn% 1;
If %server_sl_sniper[%p%]% == 1;
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. !unreserve to give it up. %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;Not Weapon U_SerbuShorty;If %server_sl_sniper[%p%]% == 1;Set %server_sl_sniper[%p%]% 0;Decr %server_sl_total

[%ptk%]%;PlayerYell %p% gave up the SNIPER slot!
On Leave;If %server_sl_sniper[%p%]% == 1;Set %server_sl_sniper[%p%]% 0;Decr %server_sl_total[%ptk%]%

# !sniper / !sniperx INFO MESSAGES
On Say;Text !sniper;
PlayerSay Sniper limit: %server_sl_total[%ptk%]%/%server_sniperlimit%. Reserve slot with sniper kill, Unreserve with non-sniper kill or !unreserve
If %server_sl_total[%ptk%]% == 0;PlayerSay 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]%

On Say;Text !sniperx;
PlayerSay SNIPERS: Team 1: %server_sl_total[1]%/%server_sniperlimit%, Team 2: %server_sl_total[2]%/%server_sniperlimit%

#ON SPAWN KILLED BY LIMIT
On Spawn;If %sniperwarn% == 1;PlayerYell %p%, you were killed by SNIPER LIMIT. !sniper;set %sniperwarn% 0

#GIVE UP SLOT VOLUNTARILY
On Say;Text !unreserve;If %server_sl_sniper[%p%]% == 1;Set %server_sl_sniper[%p%]% 0;Decr %server_sl_total[%ptk%]%;PlayerYell %p% gave up the SNIPER slot!

# 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;Not Weapon U_SerbuShorty;If %server_sl_sniper[%p%]% == 1;Set %server_sl_sniper[%p%]% 0;Decr %server_sl_total

Look at the end of the line.. %server_sl_total is missing the %
* Restored post. It could be that the author is no longer active.
Link to comment
  • 2 weeks later...

Originally Posted by Dr-X*:

 

I added the following to your script for our BF4 server to yell the status On Kill and On Suicide.

 

# On Kill & On Suicide yell sniper status

On Kill; admin; PlayerYell SNIPER SLOTS: %server_sl_total[%ptk%]%/%server_sniperlimit% USED.

On Suicide; admin; PlayerYell SNIPER SLOTS: %server_sl_total[%ptk%]%/%server_sniperlimit% USED.

 

However, the On Kill doesn't work. The On Suicide works perfectly.

Anyone have any ideas as to why the On Kill doesn't display?

Is there an event that I can trigger to display it during the time the player is on the ground and before he is actual dead?

 

Dr. X

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

Originally Posted by ty_ger07*:

 

I added the following to your script for our BF4 server to yell the status On Kill and On Suicide.

 

# On Kill & On Suicide yell sniper status

On Kill; admin; PlayerYell SNIPER SLOTS: %server_sl_total[%ptk%]%/%server_sniperlimit% USED.

On Suicide; admin; PlayerYell SNIPER SLOTS: %server_sl_total[%ptk%]%/%server_sniperlimit% USED.

 

However, the On Kill doesn't work. The On Suicide works perfectly.

Anyone have any ideas as to why the On Kill doesn't display?

Is there an event that I can trigger to display it during the time the player is on the ground and before he is actual dead?

 

Dr. X

On Spawn?

 

I am not sure exactly what you are trying to do.

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

Originally Posted by Dr-X*:

 

Basically, display the sniper availability prior to the player spawning.

After the player spawns, it's a little to late to grab a sniper kit.

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

Originally Posted by Dr-X*:

 

On Spawn?

 

I am not sure exactly what you are trying to do.

Basically, display the sniper availability prior to the player spawning.

After the player spawns, it's a little to late to grab a sniper kit.

Do a search in BF4 for the "OG23" and join the server. Once joined, suicide to see the display.

Then get killed and you won't see anything.

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

Originally Posted by LjMjollnir*:

 

how can I add the new Snipers?

I believe he is talking about the CS5..

 

Make sure your Bf4.def is up to date.. thats about all you can do .. the script itself should not need to be modified to add new weapons :ohmy:

* 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.