Jump to content

ProconRulz - Sniper limiter v2.7 by Tarreltje


ImportBot

Recommended Posts

Originally Posted by tarreltje*:

 

today this code to work incorrectly, on 5 snipers it ignored a limit and killed any sniper, the message that a limit of snipers 0 was thus deduced

i have seen this problem also, it is caused by either a downtime of your layer service or proconRulz was shutdown for a moment!

 

Try changing On Round;Set %server_sniperlimit% 5 --> On Spawn;ServerFirst;Set %server_sniperlimit% 5

 

I can confim this workes! Ill change my First post

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

Originally Posted by KK-FooKaa*:

 

Hi,

 

Is there any more tweaks can be done to this rule as it seems it stops working sometimes...

 

I have the latest version with the updated spawn part and it seems to work for a while then stops ...

 

Would be great if this was flawless...

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

Originally Posted by KK-FooKaa*:

 

Hi,

 

Is there any more tweaks can be done to this rule as it seems it stops working sometimes...

 

I have the latest version with the updated spawn part and it seems to work for a while then stops ...

 

Would be great if this was flawless...

Maybe theres a way to incorporate both the spawn and round rules all into 1 ?
* Restored post. It could be that the author is no longer active.
Link to comment
  • 2 weeks later...

Originally Posted by NLBeautytouch87*:

 

Every one is talking about sniper limits, but where can i find a "sniper only" (bolt) pluging? I used diffrent tags but didnt find anything.

 

Please who can send me a download link to my pm?

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

Originally Posted by LumpyNutZ*:

 

Every one is talking about sniper limits, but where can i find a "sniper only" (bolt) pluging? I used diffrent tags but didnt find anything.

 

Please who can send me a download link to my pm?

You mean to restrict bolt-action rifles or allow them?
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by LumpyNutZ*:

 

Not to restrict but to allow them. I want make a bolt sniper only server.

So this for sniper/pistols:

 

Code:

On Kill;Not Damage SniperRifle;Not Damage Handgun;PlayerCount 5;Log %p%banned (snipers / pistols only);Ban %p% snipers only
On Kill;Not Damage SniperRifle;Not Damage Handgun;PlayerCount 3;Log %p% kicked (snipers / pistols only);Kick %p% snipers only
On Kill;Not Damage SniperRifle;Not Damage Handgun;PlayerSay %p% snipers/pistols only;Kill 100
picked it up from here: www.phogue.net/forumvb/showth...-admin-actions* example 3
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ToM666*:

 

So this for sniper/pistols:

 

Code:

On Kill;Not Damage SniperRifle;Not Damage Handgun;PlayerCount 5;Log %p%banned (snipers / pistols only);Ban %p% snipers only
On Kill;Not Damage SniperRifle;Not Damage Handgun;PlayerCount 3;Log %p% kicked (snipers / pistols only);Kick %p% snipers only
On Kill;Not Damage SniperRifle;Not Damage Handgun;PlayerSay %p% snipers/pistols only;Kill 100
picked it up from here: www.phogue.net/forumvb/showth...-admin-actions* example 3
Hi guys, I have been using this code on and off for a while now but as far as I know it allows all sniper rifles some of which are obviously semi-auto.

 

Is there a way to limit to bolt action only?

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

Originally Posted by tarreltje*:

 

That is because the Damage SniperRifle is the collection name for all sniper weapons. You need to make an exception rule with only the bolt action sniper weapons in it!

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

Originally Posted by ToM666*:

 

That is because the Damage SniperRifle is the collection name for all sniper weapons. You need to make an exception rule with only the bolt action sniper weapons in it!

Thanks mate and sorry just realised this isn't the procon rulz thread.

I used search to get here and didn't check.

 

I'll go and see how to to the exception rule etc in the appropriate thread.

 

Regards

ToM

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

Originally Posted by the7thguest*:

 

I had to disable this rule again as it caused Procon to lag. If the server was full for some time, the lag raised up to 30 seconds and more so after a new round change, all players has respawned and started playing and procon just arrived at the mapchange and was scrambling teams...

 

Lets hope for a working onspawn soon :smile:

 

EDIT: Well, with armored kill I updated procon and all its plugins, now it works fine so far. No lags, no problems, everything cool. Great plugin!

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

Originally Posted by tarreltje*:

 

#sniper limit by tarreltje V2.1

 

# SET THE MAX # OF SNIPERS HERE:

On Spawn;ServerFirst;Set %server_sniperlimit% 2

 

# sniper limit rulz

On Spawn;if %_beingsniper% == 1;Decr %_beingsniper%;Decr %team_recontotal%;log we have %team_recontotal% snipers on team %pt%

On Spawn;Set %_beingsniper% 0

 

# Rule to kick player if not listening

On kill;Damage sniperRifle;

if %playerkilled% == 3;Kick abusing server rules

 

# Sniper rules

On kill;Damage sniperRifle;

if %team_recontotal% == %server_sniperlimit%;if %_beingsniper% == 0;Say Sniper Limit max %server_sniperlimit% snipers each team !!!;Incr %playerkilled%;Kill

if %_beingsniper% == 1;End;log %p% is still a sniper, %team_recontotal% snipers on team %pt%

incr %team_recontotal%;set %_beingsniper% 1;log %p% is a sniper, %team_recontotal% snipers on team %pt%

On kill;Not Damage sniperRifle;Not Damage Handgun;if %_beingsniper% == 1;decr %_beingsniper%;decr %team_recontotal%;log %p% is no sniper anymore, %team_recontotal% snipers on team %pt%

On Leave;if %_beingsniper% == 1;Decr %team_recontotal%

 

Try this, i have set the kick on 3 times!!

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

Originally Posted by al3x-tiger*:

 

hoi tarretje bedankt voor je goeie script zover

 

wij hebben je script sniper limit draaien maar nu is het zo als een sniper wisseld naar xbow dan kan diegene geen sniper meer zijn als iemand anders in die tussen tijd een sniper neemt help

 

Bvd [GG] Gatheringgamer & [Dw] Darkworld

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

Originally Posted by Nebiros*:

 

Hoi Tarreltje,

 

Sinds een maand zijn wij met onze clan in het bezit van een eigen server. Jouw script draait erop, en dat werkt super!

Aangezien de hoeveelheid spelers op de server nogal verschilt, heb ik geprobeerd om je script uit te breiden zodat de sniperlimit automatisch wordt aangepast bij verschillende spelersaantallen...

 

Hier heb ik het geprobeerd met Teamsize:

Code:

# SET THE MAX # OF SNIPERS HERE.
On Spawn;ServerFirst;Teamsize 4;Set %TeamSize4_sniperlimit% 1
On Spawn;ServerFirst;Teamsize 8;Set %TeamSize8_sniperlimit% 2
On Spawn;ServerFirst;Teamsize 12;Set %TeamSize12_sniperlimit% 4
On Spawn;ServerFirst;Teamsize 16;Set %TeamSize16_sniperlimit% 5
On Spawn;ServerFirst;Teamsize 32;Set %TeamSize32_sniperlimit% 6


# Sniper limit Teamsize Check, Adjust and Yell
On Join;Teamsize 4;if %server_sniperlimit% <> %TeamSize4_sniperlimit%;Set %server_sniperlimit% %TeamSize4_sniperlimit%;Yell SniperLimit changed to %server_sniperlimit%
On Leave;Teamsize 4;if %server_sniperlimit% <> %TeamSize4_sniperlimit%;Set %server_sniperlimit% %TeamSize4_sniperlimit%;Yell SniperLimit changed to %server_sniperlimit%
On Join;Teamsize 8;if %server_sniperlimit% <> %TeamSize8_sniperlimit%;Set %server_sniperlimit% %TeamSize8_sniperlimit%;Yell SniperLimit changed to %server_sniperlimit%
On Leave;Teamsize 8;if %server_sniperlimit% <> %TeamSize8_sniperlimit%;Set %server_sniperlimit% %TeamSize8_sniperlimit%;Yell SniperLimit changed to %server_sniperlimit%
On Join;Teamsize 12;if %server_sniperlimit% <> %TeamSize12_sniperlimit%;Set %server_sniperlimit% %TeamSize12_sniperlimit%;Yell SniperLimit changed to %server_sniperlimit%
On Leave;Teamsize 12;if %server_sniperlimit% <> %TeamSize12_sniperlimit%;Set %server_sniperlimit% %TeamSize12_sniperlimit%;Yell SniperLimit changed to %server_sniperlimit%
On Join;Teamsize 16;if %server_sniperlimit% <> %TeamSize16_sniperlimit%;Set %server_sniperlimit% %TeamSize16_sniperlimit%;Yell SniperLimit changed to %server_sniperlimit%
On Leave;Teamsize 16;if %server_sniperlimit% <> %TeamSize16_sniperlimit%;Set %server_sniperlimit% %TeamSize16_sniperlimit%;Yell SniperLimit changed to %server_sniperlimit%
On Join;Teamsize 32;if %server_sniperlimit% <> %TeamSize32_sniperlimit%;Set %server_sniperlimit% %TeamSize32_sniperlimit%;Yell SniperLimit changed to %server_sniperlimit%
On Leave;Teamsize 32;if %server_sniperlimit% <> %TeamSize32_sniperlimit%;Set %server_sniperlimit% %TeamSize32_sniperlimit%;Yell SniperLimit changed to %server_sniperlimit%

# sniper limit rulz
On Spawn;if %_beingsniper% == 1;Decr %_beingsniper%;Decr %team_recontotal%;Say we have %team_recontotal% snipers on team %pt%
On Spawn;Set %_beingsniper% 0

On kill;Damage sniperRifle;
if %team_recontotal% == %server_sniperlimit%;if %_beingsniper% == 0;PlayerYell Sniper Limit max %server_sniperlimit% snipers each team !!!;Say  Sniper Limit max %server_sniperlimit% snipers each team !!!;Kill
if %_beingsniper% == 1;End;log %p% is still a sniper, %team_recontotal% sniper(s) on team %pt%
incr %team_recontotal%;set %_beingsniper% 1;Say %p% is a sniper, %team_recontotal% sniper(s) on team %pt%
On kill;Not Damage sniperRifle;Not Damage Handgun;if %_beingsniper% == 1;decr %_beingsniper%;decr %team_recontotal%;log %p% is no sniper anymore, %team_recontotal% sniper(s) on team %pt%
On Leave;if %_beingsniper% == 1;Decr %team_recontotal%
Dit had als resultaat dat elke sniper limit elke keer doorlopend werden ingesteld.

Ook zonder On Join en On Leave het één en ander geprobeerd, maar geen succes...

 

De functie TeamSize bleef niet verwachte resultaten geven, dus ben ik overgestapt op %n%.

 

Dit is wat ik nu heb:

 

Code:

# SET THE MAX # OF SNIPERS HERE.
# TeamSize represents the # of players in the smallest team (not the server size!)
On Spawn; ServerFirst;
Set %TeamSize4_sniperlimit% 1
Set %TeamSize8_sniperlimit% 2
Set %TeamSize12_sniperlimit% 4
Set %TeamSize16_sniperlimit% 5
Set %TeamSize32_sniperlimit% 6

# Set Sniper Limit depending on smallest team on first spawn, every join and every leave
On Spawn; ServerFirst;
if %n% >= 0;if %n% <= 4;if %server_sniperlimit% <> %TeamSize4_sniperlimit%;Set %server_sniperlimit% %TeamSize4_sniperlimit%;Yell SniperLimit changed to %server_sniperlimit%;Say Sniper Limit is set on %server_sniperlimit%
if %n% >= 5;if %n% <= 8;if %server_sniperlimit% <> %TeamSize8_sniperlimit%;Set %server_sniperlimit% %TeamSize8_sniperlimit%;Yell SniperLimit changed to %server_sniperlimit%;Say Sniper Limit is set on %server_sniperlimit%
if %n% >= 9;if %n% <= 12;if %server_sniperlimit% <> %TeamSize12_sniperlimit%;Set %server_sniperlimit% %TeamSize12_sniperlimit%;Yell SniperLimit changed to %server_sniperlimit%;Say Sniper Limit is set on %server_sniperlimit%
if %n% >= 13;if %n% <= 16;if %server_sniperlimit% <> %TeamSize16_sniperlimit%;Set %server_sniperlimit% %TeamSize16_sniperlimit%;Yell SniperLimit changed to %server_sniperlimit%;Say Sniper Limit is set on %server_sniperlimit%
if %n% >= 17;if %n% <= 32;if %server_sniperlimit% <> %TeamSize32_sniperlimit%;Set %server_sniperlimit% %TeamSize32_sniperlimit%;Yell SniperLimit changed to %server_sniperlimit%;Say Sniper Limit is set on %server_sniperlimit%

On Join;
if %n% >= 0;if %n% <= 4;if %server_sniperlimit% <> %TeamSize4_sniperlimit%;Set %server_sniperlimit% %TeamSize4_sniperlimit%;Yell SniperLimit changed to %server_sniperlimit%;Say Sniper Limit is set on %server_sniperlimit%
if %n% >= 5;if %n% <= 8;if %server_sniperlimit% <> %TeamSize8_sniperlimit%;Set %server_sniperlimit% %TeamSize8_sniperlimit%;Yell SniperLimit changed to %server_sniperlimit%;Say Sniper Limit is set on %server_sniperlimit%
if %n% >= 9;if %n% <= 12;if %server_sniperlimit% <> %TeamSize12_sniperlimit%;Set %server_sniperlimit% %TeamSize12_sniperlimit%;Yell SniperLimit changed to %server_sniperlimit%;Say Sniper Limit is set on %server_sniperlimit%
if %n% >= 13;if %n% <= 16;if %server_sniperlimit% <> %TeamSize16_sniperlimit%;Set %server_sniperlimit% %TeamSize16_sniperlimit%;Yell SniperLimit changed to %server_sniperlimit%;Say Sniper Limit is set on %server_sniperlimit%
if %n% >= 17;if %n% <= 32;if %server_sniperlimit% <> %TeamSize32_sniperlimit%;Set %server_sniperlimit% %TeamSize32_sniperlimit%;Yell SniperLimit changed to %server_sniperlimit%;Say Sniper Limit is set on %server_sniperlimit%

On Leave;
if %n% >= 0;if %n% <= 4;if %server_sniperlimit% <> %TeamSize4_sniperlimit%;Set %server_sniperlimit% %TeamSize4_sniperlimit%;Yell SniperLimit changed to %server_sniperlimit%;Say Sniper Limit is set on %server_sniperlimit%
if %n% >= 5;if %n% <= 8;if %server_sniperlimit% <> %TeamSize8_sniperlimit%;Set %server_sniperlimit% %TeamSize8_sniperlimit%;Yell SniperLimit changed to %server_sniperlimit%;Say Sniper Limit is set on %server_sniperlimit%
if %n% >= 9;if %n% <= 12;if %server_sniperlimit% <> %TeamSize12_sniperlimit%;Set %server_sniperlimit% %TeamSize12_sniperlimit%;Yell SniperLimit changed to %server_sniperlimit%;Say Sniper Limit is set on %server_sniperlimit%
if %n% >= 13;if %n% <= 16;if %server_sniperlimit% <> %TeamSize16_sniperlimit%;Set %server_sniperlimit% %TeamSize16_sniperlimit%;Yell SniperLimit changed to %server_sniperlimit%;Say Sniper Limit is set on %server_sniperlimit%
if %n% >= 17;if %n% <= 32;if %server_sniperlimit% <> %TeamSize32_sniperlimit%;Set %server_sniperlimit% %TeamSize32_sniperlimit%;Yell SniperLimit changed to %server_sniperlimit%;Say Sniper Limit is set on %server_sniperlimit%


# sniper limit rulz
On Spawn;if %_beingsniper% == 1;Decr %_beingsniper%;Decr %team_recontotal%;Say we have %team_recontotal% snipers on team %pt%
On Spawn;Set %_beingsniper% 0

On kill;Damage sniperRifle;
if %team_recontotal% == %server_sniperlimit%;if %_beingsniper% == 0;Yell %p% got killed for disobeying the Sniper Limit!;Say  Sniper Limit max %server_sniperlimit% snipers each team!!!;Kill
if %_beingsniper% == 1;End;log %p% is still a sniper, %team_recontotal% snipers on team %pt%
incr %team_recontotal%;set %_beingsniper% 1;Say %p% is a sniper, %team_recontotal% snipers on team %pt%
On kill;Not Damage sniperRifle;Not Damage Handgun;if %_beingsniper% == 1;decr %_beingsniper%;decr %team_recontotal%;log %p% is no sniper anymore, %team_recontotal% snipers on team %pt%
On Leave;if %_beingsniper% == 1;Decr %team_recontotal%
Op zich lijkt het te werken, maar bij een Join of Leave, wordt de sniper limit ingesteld op bv 2 , en vervolgens weer op 0, of andersom...

Ik zie het niet meer, en dacht dat jij het wellicht een nuttige uitbreiding voor je script zou vinden en me hiermee zou willen helpen :biggrin:

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

Originally Posted by The_Gwynbleidd*:

 

#sniper limit by tarreltje V2.1

 

# SET THE MAX # OF SNIPERS HERE:

On Spawn;ServerFirst;Set %server_sniperlimit% 2

 

# sniper limit rulz

On Spawn;if %_beingsniper% == 1;Decr %_beingsniper%;Decr %team_recontotal%;log we have %team_recontotal% snipers on team %pt%

On Spawn;Set %_beingsniper% 0

 

On kill;Damage sniperRifle;

if %team_recontotal% == %server_sniperlimit%;if %_beingsniper% == 0;Say Sniper Limit max %server_sniperlimit% snipers each team !!!;Kill

if %_beingsniper% == 1;End;log %p% is still a sniper, %team_recontotal% snipers on team %pt%

incr %team_recontotal%;set %_beingsniper% 1;log %p% is a sniper, %team_recontotal% snipers on team %pt%

On kill;Not Damage sniperRifle;Not Damage Handgun;if %_beingsniper% == 1;decr %_beingsniper%;decr %team_recontotal%;log %p% is no sniper anymore, %team_recontotal% snipers on team %pt%

On Leave;if %_beingsniper% == 1;Decr %team_recontotal%

 

 

------

 

20-5-2012 Changelog;

Changed On Round;Set %server_sniperlimit% 2 into On Spawn;ServerFirst;Set %server_sniperlimit% 2 due limit gets bugged when proconRulz was shutdown

When set snioer limit 5 procon give that message [20:36:37] Sniper Limit max 0 snipers each team!!!

and kiling all snipers. Works only when copy paste your code in procon rulz. But 2 snipers is too little. Can u help me?

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

Originally Posted by tarreltje*:

 

You only have to change this rule into 5 like this:

 

# SET THE MAX # OF SNIPERS HERE:

On Spawn;ServerFirst;Set %server_sniperlimit% 5

 

 

%server_sniperlimit% = the how many snipers you would like to have.

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

Originally Posted by Nebiros*:

 

Hi Tarreltje,

 

I presume you did not respond to my post about the variable sniperlimit on Teamsize, because I've posted in the Dutch language.

Can you please tell me if you think it's possible to create a script that can change the sniperlimit size according to the number of players in the server, or smallest team?

 

 

Thanks in advance,

 

Nebiros

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

Originally Posted by Nebiros*:

 

I think it's a pity that there has been absolutely no response to my post, but I've continued working on the variable sniperlimit on teamsize and got it to work.

 

The Variable Sniperlimit is setting the sniperlimit value, depending on the size of the smallest team, every time someone Spawns.

I hope some of you readers can use this.

 

Maybe there's a more experienced ProconRulz programmer who sees possible improvements in the code, and are willing to contribute to this.

 

At first I was using the "On Spawn;ServerFirst" trigger for setting the %TeamSizeX_sniperlimit% variables, but got some weird results with the sniperlimit set to 0 and 1. I've tried several things, but removing the ServerFirst solved it and didn't lagg my server, although I've tested it with small teams only.

 

 

Installation:

 

Replace this part of Tarreltjes Code:

Code:

# SET THE MAX # OF SNIPERS HERE:
On Spawn;ServerFirst;Set %server_sniperlimit% 2
With this Code:

Code:

#VARIABLE SNIPERLIMIT by Nebiros v1.0
#---------------------------------------------------------------
#Set values for limits, Teamsize is smallest team in server
#---------------------------------------------------------------
On Spawn;
Set %TeamSize2_sniperlimit% 1
Set %TeamSize4_sniperlimit% 1
Set %TeamSize8_sniperlimit% 2
Set %TeamSize12_sniperlimit% 3
Set %TeamSize16_sniperlimit% 4
Set %TeamSize20_sniperlimit% 5
Set %TeamSize24_sniperlinit% 6
Set %TeamSize32_sniperlimit% 8
#----------------------------------------------------------------

On Spawn;
if %n% >= -1;if %n% <= 2;if %server_sniperlimit% <> %TeamSize2_sniperlimit%;Set %server_sniperlimit% %TeamSize2_sniperlimit%;ALL SniperLimit set to %server_sniperlimit% per team!!! (XXS teams)
if %n% >= 3;if %n% <= 4;if %server_sniperlimit% <> %TeamSize4_sniperlimit%;Set %server_sniperlimit% %TeamSize4_sniperlimit%;ALL SniperLimit set to %server_sniperlimit% per team!!! (XS small teams)
if %n% >= 5;if %n% <= 8;if %server_sniperlimit% <> %TeamSize8_sniperlimit%;Set %server_sniperlimit% %TeamSize8_sniperlimit%;ALL SniperLimit set to %server_sniperlimit% per team!!! (S teams)
if %n% >= 9;if %n% <= 12;if %server_sniperlimit% <> %TeamSize12_sniperlimit%;Set %server_sniperlimit% %TeamSize12_sniperlimit%;ALL SniperLimit set to %server_sniperlimit% per team!!! (M teams)
if %n% >= 13;if %n% <= 16;if %server_sniperlimit% <> %TeamSize16_sniperlimit%;Set %server_sniperlimit% %TeamSize16_sniperlimit%;ALL SniperLimit set to %server_sniperlimit% per team!!! (L teams)
if %n% >= 15;if %n% <= 20;if %server_sniperlimit% <> %TeamSize20_sniperlimit%;Set %server_sniperlimit% %TeamSize20_sniperlimit%;ALL SniperLimit set to %server_sniperlimit% per team!!! (XL teams)
if %n% >= 19;if %n% <= 24;if %server_sniperlimit% <> %TeamSize24_sniperlimit%;Set %server_sniperlimit% %TeamSize24_sniperlimit%;ALL SniperLimit set to %server_sniperlimit% per team!!! (XXL teams)
if %n% >= 25;if %n% <= 32;if %server_sniperlimit% <> %TeamSize32_sniperlimit%;Set %server_sniperlimit% %TeamSize32_sniperlimit%;ALL SniperLimit set to %server_sniperlimit% per team!!! (XXXL teams)
You can see this in action on our server HERE
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by pharbehind*:

 

Great addition, Nebiros. Ironic I came here to ask about an "adaptive" version of this, which it looks like you accomplished. Will be trying it out today on a 64 slot server.

 

edit, getting these errors:

 

[13:17:45 50] ProconRulz: Unrecognised rule Set %TeamSize2_sniperlimit% 1

[13:17:45 50] ProconRulz: Unrecognised rule Set %TeamSize4_sniperlimit% 1

[13:17:45 50] ProconRulz: Unrecognised rule Set %TeamSize8_sniperlimit% 2

[13:17:45 52] ProconRulz: Unrecognised rule Set %TeamSize12_sniperlimit% 3

[13:17:45 52] ProconRulz: Unrecognised rule Set %TeamSize16_sniperlimit% 4

[13:17:45 52] ProconRulz: Unrecognised rule Set %TeamSize20_sniperlimit% 5

[13:17:45 52] ProconRulz: Unrecognised rule Set %TeamSize24_sniperlinit% 6

[13:17:45 52] ProconRulz: Unrecognised rule Set %TeamSize32_sniperlimit% 8

[13:17:45 52] ProconRulz: Unrecognised rule if %n% >= -1;if %n% %TeamSize2_sniperlimit%;Set %server_sniperlimit% %TeamSize2_sniperlimit%;Max snipers per team set to %server_sniperlimit%.

[13:17:45 52] ProconRulz: Unrecognised rule if %n% >= 3;if %n% %TeamSize4_sniperlimit%;Set %server_sniperlimit% %TeamSize4_sniperlimit%;Max snipers per team set to %server_sniperlimit%.

[13:17:45 52] ProconRulz: Unrecognised rule if %n% >= 5;if %n% %TeamSize8_sniperlimit%;Set %server_sniperlimit% %TeamSize8_sniperlimit%;Max snipers per team set to %server_sniperlimit%.

[13:17:45 52] ProconRulz: Unrecognised rule if %n% >= 9;if %n% %TeamSize12_sniperlimit%;Set %server_sniperlimit% %TeamSize12_sniperlimit%;Max snipers per team set to %server_sniperlimit%.

[13:17:45 52] ProconRulz: Unrecognised rule if %n% >= 13;if %n% %TeamSize16_sniperlimit%;Set %server_sniperlimit% %TeamSize16_sniperlimit%;Max snipers per team set to %server_sniperlimit%.

[13:17:45 52] ProconRulz: Unrecognised rule if %n% >= 15;if %n% %TeamSize20_sniperlimit%;Set %server_sniperlimit% %TeamSize20_sniperlimit%;Max snipers per team set to %server_sniperlimit%.

[13:17:45 52] ProconRulz: Unrecognised rule if %n% >= 19;if %n% %TeamSize24_sniperlimit%;Set %server_sniperlimit% %TeamSize24_sniperlimit%;Max snipers per team set to %server_sniperlimit%.

[13:17:45 52] ProconRulz: Unrecognised rule if %n% >= 25;if %n% %TeamSize32_sniperlimit%;Set %server_sniperlimit% %TeamSize32_sniperlimit%;Max snipers per team set to %server_sniperlimit%.

[13:17:45 52] ProconRulz: Unrecognised rule On Spawn;if %_beingsniper% == 1;Decr %_beingsniper%;Decr %team_recontotal%;log we have %team_recontotal% snipers on team %pt%

[13:17:45 52] ProconRulz: Unrecognised rule On Spawn;Set %_beingsniper% 0

[13:17:45 52] ProconRulz: Unrecognised rule if %team_recontotal% == %server_sniperlimit%;if %_beingsniper% == 0;Say Sniper Limit max %server_sniperlimit% snipers each team !!!;Kill

[13:17:45 52] ProconRulz: Unrecognised rule if %_beingsniper% == 1;End;log %p% is still a sniper, %team_recontotal% snipers on team %pt%

[13:17:45 52] ProconRulz: Unrecognised rule incr %team_recontotal%;set %_beingsniper% 1;log %p% is a sniper, %team_recontotal% snipers on team %pt%

[13:17:45 52] ProconRulz: Unrecognised rule On kill;Not Damage sniperRifle;Not Damage Handgun;if %_beingsniper% == 1;decr %_beingsniper%;decr %team_recontotal%;log %p% is no sniper anymore, %team_recontotal% snipers on team %pt%

[13:17:45 52] ProconRulz: Unrecognised rule On Leave;if %_beingsniper% == 1;Decr %team_recontotal%

[13:17:45 52] ProconRulz: 10 rules loaded

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

Originally Posted by Enco86*:

 

I want to implement this sniper rule on a 52 slot server but only in Rush mode.These codes seem to complicated for me i'll be glad if someone write down the code if its possible.

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

Originally Posted by Nebiros*:

 

Glad to see someone finds my add-on usefull.

 

Currently I'm testing a minor update, which is setting the values only on On Spawn;ServerFirst

Maybe you can test this as well.

The complete code (Adaptive add-on & tarreltjes Sniper Limit combined) is:

 

Code:

#sniper limit by tarreltje V2.1 with ADAPTIVE add-on by Nebiros v1.1
#
#ADAPTIVE add-on by NEBIROS:
#---------------------------------------------------------------
#Set values for Max # of snipers, Teamsize is smallest team in server
#---------------------------------------------------------------
On Spawn;ServerFirst;
Set %server_TeamSize2_sniperlimit% 1
Set %server_TeamSize4_sniperlimit% 1
Set %server_TeamSize8_sniperlimit% 2
Set %server_TeamSize12_sniperlimit% 3
Set %server_TeamSize16_sniperlimit% 4
Set %server_TeamSize20_sniperlimit% 5
Set %server_TeamSize24_sniperlinit% 6
Set %server_TeamSize32_sniperlimit% 8
#----------------------------------------------------------------

On Spawn;
if %n% >= -1;if %n% <= 2;if %server_sniperlimit% <> %server_TeamSize2_sniperlimit%;Set %server_sniperlimit% %server_TeamSize2_sniperlimit%;ALL SniperLimit set to %server_sniperlimit% per team!!! (XXS teams)
if %n% >= 3;if %n% <= 4;if %server_sniperlimit% <> %server_TeamSize4_sniperlimit%;Set %server_sniperlimit% %server_TeamSize4_sniperlimit%;ALL SniperLimit set to %server_sniperlimit% per team!!! (XS small teams)
if %n% >= 5;if %n% <= 8;if %server_sniperlimit% <> %server_TeamSize8_sniperlimit%;Set %server_sniperlimit% %server_TeamSize8_sniperlimit%;ALL SniperLimit set to %server_sniperlimit% per team!!! (S teams)
if %n% >= 9;if %n% <= 12;if %server_sniperlimit% <> %server_TeamSize12_sniperlimit%;Set %server_sniperlimit% %server_TeamSize12_sniperlimit%;ALL SniperLimit set to %server_sniperlimit% per team!!! (M teams)
if %n% >= 13;if %n% <= 16;if %server_sniperlimit% <> %server_TeamSize16_sniperlimit%;Set %server_sniperlimit% %server_TeamSize16_sniperlimit%;ALL SniperLimit set to %server_sniperlimit% per team!!! (L teams)
if %n% >= 15;if %n% <= 20;if %server_sniperlimit% <> %server_TeamSize20_sniperlimit%;Set %server_sniperlimit% %server_TeamSize20_sniperlimit%;ALL SniperLimit set to %server_sniperlimit% per team!!! (XL teams)
if %n% >= 19;if %n% <= 24;if %server_sniperlimit% <> %server_TeamSize24_sniperlimit%;Set %server_sniperlimit% %server_TeamSize24_sniperlimit%;ALL SniperLimit set to %server_sniperlimit% per team!!! (XXL teams)
if %n% >= 25;if %n% <= 32;if %server_sniperlimit% <> %server_TeamSize32_sniperlimit%;Set %server_sniperlimit% %server_TeamSize32_sniperlimit%;ALL SniperLimit set to %server_sniperlimit% per team!!! (XXXL teams)

# SNIPER LIMIT rulz by TARRELTJE
On Spawn;if %_beingsniper% == 1;Decr %_beingsniper%;Decr %team_recontotal%;log we have %team_recontotal% snipers on team %pt%
On Spawn;Set %_beingsniper% 0

On kill;Damage sniperRifle;
if %team_recontotal% == %server_sniperlimit%;if %_beingsniper% == 0;Say Sniper Limit max %server_sniperlimit% snipers each team !!!;Kill
if %_beingsniper% == 1;End;log %p% is still a sniper, %team_recontotal% snipers on team %pt%
incr %team_recontotal%;set %_beingsniper% 1;log %p% is a sniper, %team_recontotal% snipers on team %pt%
On kill;Not Damage sniperRifle;Not Damage Handgun;if %_beingsniper% == 1;decr %_beingsniper%;decr %team_recontotal%;log %p% is no sniper anymore, %team_recontotal% snipers on team %pt%
On Leave;if %_beingsniper% == 1;Decr %team_recontotal%
Maybe you can try to copy paste the complete code into ProconRulz again.
* 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.




×
×
  • 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.