Jump to content

ProconRulz - Sniper limiter v2.7 by Tarreltje


ImportBot

Recommended Posts

Originally Posted by pharbehind*:

 

Still getting these errors in the Console, is this normal?

 

[13:06:14 76] ProconRulz: Unrecognised rule Set %server_TeamSize2_sniperlimit% 1

[13:06:14 76] ProconRulz: Unrecognised rule Set %server_TeamSize4_sniperlimit% 1

[13:06:14 76] ProconRulz: Unrecognised rule Set %server_TeamSize8_sniperlimit% 2

[13:06:14 76] ProconRulz: Unrecognised rule Set %server_TeamSize12_sniperlimit% 3

[13:06:14 78] ProconRulz: Unrecognised rule Set %server_TeamSize16_sniperlimit% 4

[13:06:14 78] ProconRulz: Unrecognised rule Set %server_TeamSize20_sniperlimit% 5

[13:06:14 78] ProconRulz: Unrecognised rule Set %server_TeamSize24_sniperlinit% 6

[13:06:14 79] ProconRulz: Unrecognised rule Set %server_TeamSize32_sniperlimit% 8

[13:06:14 79] ProconRulz: Unrecognised rule if %n% >= -1;if %n% %server_TeamSize2_sniperlimit%;Set %server_sniperlimit% %server_TeamSize2_sniperlimit%;ALL SniperLimit set to %server_sniperlimit% per team!!! (XXS teams)

[13:06:14 79] ProconRulz: Unrecognised rule if %n% >= 3;if %n% %server_TeamSize4_sniperlimit%;Set %server_sniperlimit% %server_TeamSize4_sniperlimit%;ALL SniperLimit set to %server_sniperlimit% per team!!! (XS small teams)

[13:06:14 79] ProconRulz: Unrecognised rule if %n% >= 5;if %n% %server_TeamSize8_sniperlimit%;Set %server_sniperlimit% %server_TeamSize8_sniperlimit%;ALL SniperLimit set to %server_sniperlimit% per team!!! (S teams)

[13:06:14 81] ProconRulz: Unrecognised rule if %n% >= 9;if %n% %server_TeamSize12_sniperlimit%;Set %server_sniperlimit% %server_TeamSize12_sniperlimit%;ALL SniperLimit set to %server_sniperlimit% per team!!! (M teams)

[13:06:14 81] ProconRulz: Unrecognised rule if %n% >= 13;if %n% %server_TeamSize16_sniperlimit%;Set %server_sniperlimit% %server_TeamSize16_sniperlimit%;ALL SniperLimit set to %server_sniperlimit% per team!!! (L teams)

[13:06:14 81] ProconRulz: Unrecognised rule if %n% >= 15;if %n% %server_TeamSize20_sniperlimit%;Set %server_sniperlimit% %server_TeamSize20_sniperlimit%;ALL SniperLimit set to %server_sniperlimit% per team!!! (XL teams)

[13:06:14 81] ProconRulz: Unrecognised rule if %n% >= 19;if %n% %server_TeamSize24_sniperlimit%;Set %server_sniperlimit% %server_TeamSize24_sniperlimit%;ALL SniperLimit set to %server_sniperlimit% per team!!! (XXL teams)

[13:06:14 83] ProconRulz: Unrecognised rule if %n% >= 25;if %n% %server_TeamSize32_sniperlimit%;Set %server_sniperlimit% %server_TeamSize32_sniperlimit%;ALL SniperLimit set to %server_sniperlimit% per team!!! (XXXL teams)

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

[13:06:14 84] ProconRulz: Unrecognised rule On Spawn;Set %_beingsniper% 0

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

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

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

[13:06:14 86] 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:06:14 87] ProconRulz: Unrecognised rule On Leave;if %_beingsniper% == 1;Decr %team_recontotal%

[13:06:14 87] ProconRulz: 10 rules loaded

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

Originally Posted by Nebiros*:

 

I've just copy-paste all of the code myself, and no errors at all...

 

Are you sure you are copying to Proconrulz > Plugin Settings > Rules (open up the code with "..."-button)

 

Posted Image

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

Originally Posted by tarreltje*:

 

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.
Hey Nebiros, Sorry i was kinda busy so didnt had the time to at it!!

 

With those rules, dont you get a message with the sniperlimit on each spawn? Atleast everytimes someone spawns one of those teamsize ruls is correct and will give a message

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

Originally Posted by pharbehind*:

 

I've just copy-paste all of the code myself, and no errors at all...

 

Are you sure you are copying to Proconrulz > Plugin Settings > Rules (open up the code with "..."-button)

 

yes, I am doing that correctly, as you can see:

 

Posted Image

 

Perhaps I don't have the correct version of ProconRulz? I'm using 32n.3. Is that what you have?

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

Originally Posted by Nebiros*:

 

That could be the issue... install 43d.1 instead...

 

I've found a problem in the v1.1; ServerFirst is not working as expected.

Removed the ServerFirst stuff, now everytime someone Spawns the limitvalue will be set.

 

The new version is:

 

Code:

#sniper limit by tarreltje V2.1 with ADAPTIVE add-on by Nebiros v1.2
#
#ADAPTIVE add-on by NEBIROS:
#---------------------------------------------------------------
#Set values for Max # of snipers, Teamsize is smallest team in server
#---------------------------------------------------------------
On Spawn;
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%
Is there anyone here who can fix the ServerFirst stuff_?
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by tarreltje*:

 

Try On Round and log, so you can see what happends

 

On Round;

Set %server_TeamSize2_sniperlimit% 1;log teamsize2 = 1

Set %server_TeamSize4_sniperlimit% 1;log teamsize4 = 1

Set %server_TeamSize8_sniperlimit% 2;log teamsize8 = 2

Set %server_TeamSize12_sniperlimit% 3;log teamsize12 = 3

Set %server_TeamSize16_sniperlimit% 4;log teamsize16 = 4

Set %server_TeamSize20_sniperlimit% 5;log teamsize20 = 5

Set %server_TeamSize24_sniperlinit% 6;log teamsize24 = 6

Set %server_TeamSize32_sniperlimit% 8;log teamsize32 = 8

 

Most of the time when i make new rules i always put a log on sertain rulz, to see if things actualy happening

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

Originally Posted by pharbehind*:

 

I ran into an issue with this plugin today. I run a 64 slot server, which is adaptive size. Around ~42 or so players it was continually spamming "max 0, max 5, max 0, max 0, max 5, max 0" etc etc. I had to disable it. It got into some strange loop. I don't even have "0" as a possibility.

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

Originally Posted by Nebiros*:

 

Found the error... had some wrong values configured in the teamsize check...

 

Replace:

 

Code:

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)
With:

 

Code:

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% >= 17;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% >= 21;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)
At this moment I am testing "On Round" for the Set limits part... When this test is succesful I will release v1.3.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Nebiros*:

 

If you didn't altered the max# of snipers settings in the first part of the script, it shouldn't show or set 0.

If you did, and set it to 0 or removed one of the "Set %server_TeamSizeXX_sniperlimit%" rules, it would set and display 0.

 

I've encountered such a problem while testing, using "On Spawn;ServerFirst" in v1.1.

To be sure things doesn't get messed up, can you please replace all of the Sniperlimit + Adaptive add-on code with this:

 

Code:

#sniper limit by tarreltje V2.1 with ADAPTIVE add-on by Nebiros v1.3beta
#
#ADAPTIVE add-on by NEBIROS:
#---------------------------------------------------------------
#Set values for Max # of snipers, Teamsize is smallest team in server
#---------------------------------------------------------------
On Spawn;
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% >= 17;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% >= 21;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 %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%
I've changed some minor things in this version, but am unable to test it right now (no filled server)...

Can you please test it for me?

 

If the problem still exists; can you answer these questions?

1. How many players are in the server

2. What is the smallest team in the server?

3. Can you post a copy of the server-chat where the timestamps & messages of the SniperLimit change is visible?

 

Thanks in advance!

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

Originally Posted by Nebiros*:

 

Ok... Thanks for the Reply.

 

I am still trying to get the "On Spawn" load down by testing some "On Round" stuff Tarreltje came up with.

Until I get results with that, please use the latest posted code

 

sniper limit by tarreltje V2.1 with ADAPTIVE add-on by Nebiros v1.3beta

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

Originally Posted by pharbehind*:

 

I changed the verbage, but saw the SniperLimit is 0 again:

 

Was seen here in chat:

[14:54:26] Sorry, but max allowed snipers is [ 0 ] per team! Please change your kit.

 

While in the console it read:

[14:52:33 90] ProconRulz: Max snipers per team set to: [ 0 ] (Team Size = 24)

[14:54:26 62] ProconRulz: Player BlankedyBlank killed

[14:54:27 39] ProconRulz: EchoCharlie19 is still a sniper, 4 snipers on team US Army

 

Looks like it fails with the team size 24 option, (or XXL as you have it).

 

It worked flawless when the teamsize is smaller than 24.

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

Originally Posted by Nebiros*:

 

Due to your info I've found the error...

 

It was a typo: Set %server_TeamSize24_sniperlinit% 6

 

I want to test an "On Round" version as Tarreltje suggested... But my server is empty.

Can you test this for me?

 

Code:

#sniper limit by tarreltje V2.1 with ADAPTIVE add-on by Nebiros v1.4beta
#
#ADAPTIVE add-on by NEBIROS:
#---------------------------------------------------------------
#Set values for Max # of snipers, Teamsize is smallest team in server
#---------------------------------------------------------------
On Round;
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_sniperlimit% 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% >= 17;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% >= 21;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 %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 !!!;Yell %p% got killed for disobeying the SniperLimit!;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%
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by pharbehind*:

 

haha, thanks.

 

Sure, testing. The only thing that changed was "on Spawn" to "on Round" for setting the values, right?

 

edit: On Round isn't friendly, these poor chaps got killed:

 

[15:46:29 68] ProconRulz: 37 rules loaded

[15:46:44 29] ProconRulz: Player RachuN_lnW03 killed

[15:46:52 76] ProconRulz: Player killerpuppy5744 killed

[15:47:00 48] ProconRulz: Player xJieFx killed

 

Here's what happens with On Spawn:

 

[15:49:45 98] ProconRulz: 37 rules loaded

[15:49:46 65] ProconRulz: Max snipers per team set to: [ 5 ] (Team Size = 20)

 

Notice how it detects the team size.

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

Originally Posted by Nebiros*:

 

Yep... that's it...

 

In my previous testing some strange things occured with "On Round", but could possibly be other wrong code or typo's... :-)

 

I am curious if it's OK now.

Testing in our own server as well now...

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

Originally Posted by Nebiros*:

 

Very strange results with "On Round"...

I've tried all kind of things to get away from "Set %server_TeamSizeX_sniperlimit%" on every spawn of every player, but can't seem to get it to work any other way. On Round and ServerFirst give very strange results...

 

@Pharbehind: what are your experiences with the serverload on every spawn? Does it have a lot of impact?

 

I have thought of changing it to:

On Spawn; if %_server_TeamSize2_sniperlimit% == 0; "Set %server_TeamSize2_sniperlimit%" 1

But in my opinion this will create just as much serverload, maybe even more...

 

@Tarreltje; do you have any ideas left?

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

Originally Posted by tarreltje*:

 

I myself also dont use it anymore! You get killed for something you didnt know you could do! The rules it self work fine, but its better to get killed right on spawn, like it worked in Bad Company 2.

 

People dont like getting killed by admin :P

 

As long as DICE dont give us the onspawn info, this kind of rules arent the best thing to use i think!

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

Originally Posted by LumpyNutZ*:

 

#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

How could i set this like that when our server goes to scavenger mode, this rule is disabled?
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Tomgun*:

 

Ive done this to work on CTF only, question is have I done it right?

 

# SET THE MAX # OF SNIPERS HERE:

On Spawn;Mapmode CTF;ServerFirst;Set %server_sniperlimit% 3

 

# sniper limit rulz

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

On Spawn;Mapmode CTF;Set %_beingsniper% 0

 

On kill;Damage sniperRifle;

if %team_recontotal% == %server_sniperlimit%;if %_beingsniper% == 0;Yell 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;Mapmode CTF;Not Damage sniperRifle;Not Damage Handgun;if %beingsniper% == 1;decr %beingsniper%;decr %team_recontotal%;Yell Player %p% is not a sniper anymore, there are %team_recontotal% on team %pt%;log %p% is no sniper anymore, %team_recontotal% snipers on team %pt%

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

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

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.