Jump to content

ProconRulz V44j1 - weapon limits and other event-triggered admin actions


ColColonCleaner

Recommended Posts

Originally Posted by QuadPrime*:

 

And what exacly is oyur problem with that? the rule looks fine. if you wanna add Claymore to the Whitelisted weapon just add

 

Code:

;Not Weapon U_Claymore; Not Weapon U_Claymore_Recon;
rest should work fine as far as i can tell... btw - log only gets displayed in the Procons Plugins tab, at the debug log. ingame you will have no idea what just happened. maybe also use PlayerSay in the kick and ban rules.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Hawk*:

 

Hello, how does multi-line rule work? in bc2 works like this:

Code:

On Join
+	If %ini_fulladmins_%p%% == 1
+	Say Clan-Member and admin %p% connected...
how would i write this in BF4?

Thank you for answer :smile:

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

Originally Posted by mimimimi*:

 

Code:

On Join;Admin;Say Clan-Member and admin %p% connected...
proconrulz is a plugin for procon, compatible with bf4,bf3,bf2,moh

you write the rules all the same for those games, maybe some conditions are not supported in all games, but the syntax is the same for all of them

 

 

the code above will work only if %p% is listed in Accounts Tab in procon

 

 

it is soo hard to test your code? :smile:

your code is correct.

 

this is the same:

Code:

On Join;If %ini_fulladmins_%p%% == 1;Say Clan-Member and admin %p% connected...
Multi-line rulz using '+' as a simple continuation character

"this is a convenience for the layout of your rulz and does not affect the way ProconRulz actually processes the rulz"

pag 13 of proconrulz manual

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

Originally Posted by mimimimi*:

 

well thank you sir - that server? tip might actually do the trick. i will test that.

 

The full script is an alternation of tarreltje's Sniperslots... just renamed everything accordingly and blocking the slotsystem below population of 10... again - thank you, good sir.

will be much easier to just use something like this

 

Code:

trigger;Not TeamSize 4;condition1;condition2;etc
this will prevent your rule to be triggered as long as the smallest team has 4 or fewer players

 

or you can go your way, and make sure to establish a value for your %sever_teamsizetotal% each and every time your are going to trigger that rule like this:

 

Code:

On Say;Text !ts;Set  %server_teamsizetotal% %ts1% + %ts2%;Say Total teamsize is %server_teamsizetotal%, (single) %ts1% & %ts2%, Highpop Limit is %server_highpop%
or where is not needed to show the %server_teamsizetotal% value you can use something like this:

 

Code:

trigger;If %ts1% + %ts2% > 10;condition1;condition2;etc
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Arcisit*:

 

Hi guys,

 

i am new here, but i have a question.

Is possible with this plugin set K/D ratio limit on server?

Unfortunately my provider doesnt support Insane limits so i have to find another way to set max KDR on server.

Thx for help and sorry for my eng

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

Originally Posted by ty_ger07*:

 

Hi guys,

 

i am new here, but i have a question.

Is possible with this plugin set K/D ratio limit on server?

Unfortunately my provider doesnt support Insane limits so i have to find another way to set max KDR on server.

Thx for help and sorry for my eng

Please use the "Search Thread" option just above the thread contents.

 

myrcon.net/...proconrulz-v44j1-weapon-limits-and-other-event-triggered-admin-actions#entry14497

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

Originally Posted by Hawk*:

 

Thank you for answer.

Its not same i need KDR from Battlelog not from server.

Am i right?

Tried AdKats?

Besides, KD ratio shouldnt be a meter for measuring anything

focus on kill/minute or headshot/kill

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

Originally Posted by Arcisit*:

 

Tried AdKats?

Besides, KD ratio shouldnt be a meter for measuring anything

focus on kill/minute or headshot/kill

Sure,

 

i dont need use this specific plugin, but what i need is good server for rookies. So any settings what kick high skilled players is good for me.

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

Originally Posted by Hodor*:

 

Hi guys, I need to make an immediate calculation of the players after the On Join and On Leave to file so i did the rule:

 

Code:

On Join;Incr %_joinedplayers%
On Leave;Incr %_leaveplayers%
On Join;If %_joinedplayers%-%_leaveplayers% >= 0;Set %_playersoneserver% %_joinedplayers%-%_leaveplayers%;Set %ini_vars_playeronlinecount% %_joinedplayers%-%_leaveplayers%
On Leave;If %_joinedplayers%-%_leaveplayers% >= 0;Set %_playersoneserver% %_joinedplayers%-%_leaveplayers%;Set %ini_vars_playeronlinecount% %_joinedplayers%-%_leaveplayers%
and it looks like this:

 

Code:

[vars]
playeronlinecount=1
When a player joins the rule is triggered On Join;Incr %_joinedplayers%

When a player leaves from the server the rule is triggered On Leave;Incr %_leaveplayers%

This rule, I am doing calculation how many players on the server (including joining players and players in the queue) Set %_playersoneserver% %_joinedplayers%-%_leaveplayers%

 

But there is one problem, if the player clicked "join server" and something went wrong and he failed to join the rule is not triggered On Leave;Incr %_leaveplayers% it will destroy the calculation of the number of players on the server and spoil the correctness of calculation. Is it possible to come up with a different calculation or somehow find the number of players on the server and write that number in the ini file proconrulz?

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

Originally Posted by ty_ger07*:

 

So guys anybody can share some rules for ProconRulz or AdKats against high skilled players?

Using this plugin, you can calculate their kill death ratio on a per-round basis and you can sort of calculate their kills per minute on a per-round basis. That's about all that you can do with this plugin. Are either of this things good enough for you?

 

For AdKats questions, ask in the AdKats thread.

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

Originally Posted by ty_ger07*:

 

Hi guys, I need to make an immediate calculation of the players after the On Join and On Leave to file so i did the rule:

 

Code:

On Join;Incr %_joinedplayers%
On Leave;Incr %_leaveplayers%
On Join;If %_joinedplayers%-%_leaveplayers% >= 0;Set %_playersoneserver% %_joinedplayers%-%_leaveplayers%;Set %ini_vars_playeronlinecount% %_joinedplayers%-%_leaveplayers%
On Leave;If %_joinedplayers%-%_leaveplayers% >= 0;Set %_playersoneserver% %_joinedplayers%-%_leaveplayers%;Set %ini_vars_playeronlinecount% %_joinedplayers%-%_leaveplayers%
and it looks like this:

 

Code:

[vars]
playeronlinecount=1
When a player joins the rule is triggered On Join;Incr %_joinedplayers%

When a player leaves from the server the rule is triggered On Leave;Incr %_leaveplayers%

This rule, I am doing calculation how many players on the server (including joining players and players in the queue) Set %_playersoneserver% %_joinedplayers%-%_leaveplayers%

 

But there is one problem, if the player clicked "join server" and something went wrong and he failed to join the rule is not triggered On Leave;Incr %_leaveplayers% it will destroy the calculation of the number of players on the server and spoil the correctness of calculation. Is it possible to come up with a different calculation or somehow find the number of players on the server and write that number in the ini file proconrulz?

teamsize is already a variable available to ProconRulz. You shouldn't need to re-engineer a way of calculating the number of players in the server. Just add up teamsize of team one and teamsize of team 2 and that will be your number.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by mimimimi*:

 

Hi guys, I need to make an immediate calculation of the players after the On Join and On Leave to file so i did the rule:

 

Code:

On Join;Incr %_joinedplayers%
On Leave;Incr %_leaveplayers%
On Join;If %_joinedplayers%-%_leaveplayers% >= 0;Set %_playersoneserver% %_joinedplayers%-%_leaveplayers%;Set %ini_vars_playeronlinecount% %_joinedplayers%-%_leaveplayers%
On Leave;If %_joinedplayers%-%_leaveplayers% >= 0;Set %_playersoneserver% %_joinedplayers%-%_leaveplayers%;Set %ini_vars_playeronlinecount% %_joinedplayers%-%_leaveplayers%
and it looks like this:

 

Code:

[vars]
playeronlinecount=1
When a player joins the rule is triggered On Join;Incr %_joinedplayers%

When a player leaves from the server the rule is triggered On Leave;Incr %_leaveplayers%

This rule, I am doing calculation how many players on the server (including joining players and players in the queue) Set %_playersoneserver% %_joinedplayers%-%_leaveplayers%

 

But there is one problem, if the player clicked "join server" and something went wrong and he failed to join the rule is not triggered On Leave;Incr %_leaveplayers% it will destroy the calculation of the number of players on the server and spoil the correctness of calculation. Is it possible to come up with a different calculation or somehow find the number of players on the server and write that number in the ini file proconrulz?

try something like this:

Code:

On Leave;Set %ini_vars_playeronlinecount% %ts1% + %ts2%
depending on what you want to achieve, chose the trigger that best suit you, its up to you

 

%ts1% %ts2% %n% %pts% all these variable are an accurate count of the players assigned to a team, so if the player is not assigned to a team yet, he will not be in the counting. Commanders are counted too

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

Originally Posted by Arcisit*:

 

Using this plugin, you can calculate their kill death ratio on a per-round basis and you can sort of calculate their kills per minute on a per-round basis. That's about all that you can do with this plugin. Are either of this things good enough for you?

 

For AdKats questions, ask in the AdKats thread.

Definitely, at least i can try it.

Thx

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

Originally Posted by Hodor*:

 

Hi guys, Is it possible to make a "Hello world" only tickets from 1000 to 900. I want that in the spaces between the 1000 and 900 displays the message, even if the player spawn when 950 tickets, but if it is below than 900 the message will not be displayed

 

 

Code:

On Spawn;If %server_team_score[1]% == helpmewithrule or %server_team_score[2]% == helpmewithrule;PlayerFirst;PlayerSay Hello world
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by mimimimi*:

 

Hi guys, Is it possible to make a "Hello world" only tickets from 1000 to 900. I want that in the spaces between the 1000 and 900 displays the message, even if the player spawn when 950 tickets, but if it is below than 900 the message will not be displayed

 

 

Code:

On Spawn;If %server_team_score[1]% == helpmewithrule or %server_team_score[2]% == helpmewithrule;PlayerFirst;PlayerSay Hello world
this will say to a player "Hello world" each time he spawn between 1000 and 900 ticket (on both teams)

Code:

On Spawn;If %team_score% < 1000;If %team_score% > 900;PlayerSay Hello world
--- so this is based on teams, each player will receive that message when they spawn, the same for the opposite team when it has less than 1000 tickets etc...

 

 

 

this will say to a player "Hello world" only the first time he spawn between 1000 and 900 ticket (on both teams one time per player)

Code:

On Spawn;If %team_score% < 1000;If %team_score% > 900;PlayerFirst;PlayerSay Hello world
--- this is based also on the team, each player will receive that message only the first time he spawn during 1000 to 900 tickets, the same for the opposite team when it has less than 1000 tickets etc...

 

 

 

this will say only to one player "Hello world" as soon as a team has less than 1000 ticket (one time one player)

Code:

On Spawn
	If %team_score% < 1000;If %team_score% > 900;If %server_hello_world% == 0;Set %server_hello_world% 1
        If %server_hello_world% == 1;PlayerSay Hello world;Set %server_hello_world% off
---- this will say Hello world to only one player and one time only.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by bckrv*:

 

Morning everybody,

 

I have a question regarding the new weapons (DLC), I would like to know if is possible to updade Proconrulz myself? Because, actually I can filter the following weapon; Mare's Leg Saddle Gun Sniper.

 

I added following code, but it seems not working for this weapon:

 

On Kill;weapon U_SaddlegunSnp;PlayerCount 0;Log ^1%p% ^0was BANNED for using a ^1%w%;Incr %ini_kickban_tbans[%p%]%;Say %p% was BANNED for using a %w%;TempBan 1000000 %p% BANNED PISTOLS ONLY! You used a %w%.

I am also interested to filter all new weapons easly, any idea?

 

Thanks for your support

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

Originally Posted by flyingtucunare*:

 

Hi guys,

 

i'm using "SNIPER LIMIT V2.7 BOLT AND DMR", and it's working good, but i want to add a exception, the power gun "M82A3" because when the slots are full, it kills players...

 

My code is:

Code:

# 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 tanto acima do limite (so kill), existindo sniper (do nothing), novo sniper (reserve slot)
On Kill;Damage SniperRifle;
If %server_sl_total[%ptk%]% >= %server_sniperlimit%;if %server_sl_sniper[%p%]% == 0;PlayerSay -;PlayerSay - %p% morto pelo LIMITE DE SNIPER de %server_sniperlimit%;PlayerSay -;Log Sniper Limit max %server_sniperlimit% snipers por time !!! (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 -;PlayerSay - VOCE ESTA NUM SLOT DE SNIPER !!! %server_sl_total[%ptk%]%/%server_sniperlimit%;PlayerSay -;Log %ptk% %p% is new sniper, %server_sl_total[%ptk%]%/%server_sniperlimit% snipers on team %ptk%

# SNIPER KILL CHECKS tanto acima do limite (so kill), existindo sniper (do nothing), novo sniper (reserve slot)
On Kill;Damage DMR;
If %server_sl_total[%ptk%]% >= %server_sniperlimit%;if %server_sl_sniper[%p%]% == 0;PlayerSay -;PlayerSay - %p% morto pelo LIMITE DE SNIPER máximo %server_sniperlimit%;PlayerSay -;Log Sniper Limite máximo de %server_sniperlimit% snipers por time !!! (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 -;PlayerSay - VOCE ESTA NUM SLOT DE SNIPER !!! %server_sl_total[%ptk%]%/%server_sniperlimit%;PlayerSay -;Log %ptk% %p% is new sniper, %server_sl_total[%ptk%]%/%server_sniperlimit% snipers on team %ptk%

# LIBERAR SLOT CASO FACA KILL COM NON-SNIPER OU SAIR DA CLASSE_JOGO
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 -;TeamSay - %p% desistiu do seu slot de SNIPER!!!;TeamSay -;Log Ex-sniper %p% used %d% %wk%, %server_sl_total[%ptk%]% snipers on team %ptk%
On Leave;If %server_sl_sniper[%p%]% == 1;Set %server_sl_sniper[%p%]% 0;Decr %server_sl_total[%ptk%]%;TeamSay -;TeamSay - %p% desistiu do seu slot de SNIPER !!!;TeamSay -;Log Sniper %pt% %p% left server. %server_sl_total[%ptk%]% snipers on team %ptk%

# !snipers / !sniperx MENSAGEM DE INFORMAÇÃO
On Say;Text !sniper;
PlayerSay Sniper limite: %server_sl_total[%ptk%]%/%server_sniperlimit%. Para manter o slot de sniper faça um kill com sniper. Se o primeiro kill nao for com sniper, perde o slot quando morrer.
If %server_sl_total[%ptk%]% == 0;PlayerSay 0/%server_sniperlimit% SNIPERS no time %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[4/%server_sniperlimit%] is %server_sl_snipername[%ptk%][5]%

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

#ADMIN- ONLY comando para admins
#!setsniper <name-substring> comando adminonly que configura um slot de sniper para um player especifico E.x. "!setsniper FlyingTucunare", assim meu slot sniper vai estar garantido até o fim da partida.
On Say;Admin;Text !setsniper;TargetPlayer;Set %server_sl_setsniper[%t%]% 1;PlayerSay %t% garantido slot SNIPER até o fim da partida
What i have to do to add this exception?

 

Thank you guys! Sorry about the bad english.

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

Originally Posted by dwysywd*:

 

I've set up multiple "say" messages based on the melee kill, but only one is said. How can I make the messages random after each kill? It looks to be "saying" them all, just the last one is said in chat.

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

Originally Posted by ty_ger07*:

 

I've set up multiple "say" messages based on the melee kill, but only one is said. How can I make the messages random after each kill? It looks to be "saying" them all, just the last one is said in chat.

ProconRulz does not support random messages. You need to create your own "random" by assigning a different message for each kill number and loop it when you reach the end.
* Restored post. It could be that the author is no longer active.
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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