Jump to content

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


ColColonCleaner

Recommended Posts

Originally Posted by shadow2k1*:

 

You need just one rule, not multiple rules. The "%c%" automatically substitutes the number of times the rule has occurred.

 

On Kill;Weapon Melee;Yell %p% has taken %v% tags %c% times!

what would be the line to use if i want to make this the xbow?
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by tarreltje*:

 

what would be the line to use if i want to make this the xbow?

On Kill;Weapon Crossbow;Yell %p% has taken %v% tags %c% times!

 

Also please read the link below, its the basic info for ProconRulz , also contains a pdf with all the info you need!!

 

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

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

Originally Posted by Psychemotion*:

 

is it impossible to compare different %ini_% variables that include %p% or %v% variables?

 

like for instance if i have a rule like this:

 

On Kill;Incr %ini_nemesis[%p%]_against[%v%]%;

If %ini_nemesis[%v%]_against[%p%]% >= 5;Say %p% ended %v%'s nemesis streak at %ini_nemesis[%v%]_against[%p%]%!;Set %ini_nemesis[%v%]_against[%p%]% 0

If %ini_nemesis[%v%]_against[%p%]%

If %ini_nemesis[%p%]_against[%v%]% >= 5;Say %p% nemesis streak on %v% is now %ini_nemesis[%p%]_against[%v%]%!

 

It doesn't seem to understand the first 2 equations, why is that?

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

Originally Posted by tarreltje*:

 

Try %ini_%p%_nemesis[%v%]%, What you are trying to do, i have similar with knives. Like PlayerA KNIFED PlayerB [ 10 vs 4 ]

 

So:

 

On Kill;Incr %ini_%p%_nemesis[%v%]%;

If %ini_%v%_nemesis[%p%]% >= 5;Say %p% ended %v%'s nemesis streak at %ini_%v%_nemesis[%p%]%!;Set %ini_%v%_nemesis[%p%]% 0

If %ini_%v%_nemesis[%p%]%

If %ini_%p%_nemesis[%v%]% >= 5;Say %p% nemesis streak on %v% is now %ini_%p%_nemesis[%v%]%!

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

Originally Posted by Psychemotion*:

 

Try %ini_%p%_nemesis[%v%]%, What you are trying to do, i have similar with knives. Like PlayerA KNIFED PlayerB [ 10 vs 4 ]

 

So:

 

On Kill;Incr %ini_%p%_nemesis[%v%]%;

If %ini_%v%_nemesis[%p%]% >= 5;Say %p% ended %v%'s nemesis streak at %ini_%v%_nemesis[%p%]%!;Set %ini_%v%_nemesis[%p%]% 0

If %ini_%v%_nemesis[%p%]%

If %ini_%p%_nemesis[%v%]% >= 5;Say %p% nemesis streak on %v% is now %ini_%p%_nemesis[%v%]%!

No i've tried a variety of things already, even just %ini?[%p%]%_%v%%, it all makes no difference. The only variable it seems to be acknowledging is the on kill: ini_nemesis[%p%]%_against[%v%]%, no matter what names you give it... when i turn %p% and %v% around its always false, unless I turn 'ini' into server, but that would mean it doesn't save it for next round or whenever.

So that's why I am asking if it is even possible to store name variables in a variable in ini files.

Because setting the value of a variable to a name in an ini file most definitely doesnt work

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

Originally Posted by ty_ger07*:

 

is there some ware an list whit all rules or events for the plugin ?

Yeah, read the documentation in the first post of this thread. It links to a PDF file which explains the rules and lists all possible events and commands.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Berndel*:

 

ah ok thanks for the info i found that but i have an small problem ? is there some wrong that don't work ?

 

On Say;Text fuck Say thanks %p%;Say for noticing this new notice ur noticing has been noted and will reported to the authorities

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

Originally Posted by bambam*:

 

No i've tried a variety of things already, even just %ini?[%p%]%_%v%%, it all makes no difference. The only variable it seems to be acknowledging is the on kill: ini_nemesis[%p%]%_against[%v%]%, no matter what names you give it... when i turn %p% and %v% around its always false, unless I turn 'ini' into server, but that would mean it doesn't save it for next round or whenever.

So that's why I am asking if it is even possible to store name variables in a variable in ini files.

Because setting the value of a variable to a name in an ini file most definitely doesnt work

Be careful here...

 

firstly, I think %ini__% should work fine whatever the values are - if you're not sure you MUST check by looking at the ProconRulz ini file that will be stored in Procon\Config\__proconrulz.ini BUT do NOT START the section or var with a '[' character. When you see how the data is stored in the ini file you'll understand - you will confuse the Microsoft library with sections vs. vars

 

e.g. here's a part of an example that gets stored:

 

Code:

[round]
2012_07_31_16:25:00=Noshahr Canals_TeamDeathMatch0
2012_07_31_16:28:15=Noshahr Canals_TeamDeathMatch0
[rounds]
loaded[Noshahr Canals]=2012_07_31_16:28:15
[spawned]
player[pooyan8957]=2012_07_31__16:53:58
[kills]
kills[LenniVec]=1
kills[cyborg98u-i]=35
kills[mahaveera]=3
kills[dehi1990]=1
kills[vivichevallier]=3
kills[Drarker]=9
kills[Rogorth]=5
kills[domonxx]=3
kills[ravage35170Z]=57
kills[NCDex]=1
kills[Dhasten]=12
So, you might want to be a bit more considered about the SECTION part of your variable name, when you see how the info is stored in the file, e.g. use

 

%ini_nemesis_killer[%p%]_victim[%v%]%

 

This should create values in the ini file something like:

 

[nemesis]

killer[bambam]_victim[pebbles]=5

killer[bambam]_victim[C-4-N]=6

killer[pebbles]_victim[bambam]=66

...

 

i.e. everything in the one [nemesis] section.

 

Possible bug in your rulz

Note that starting a rule without a trigger is the SAME as prepending the prior trigger rule to the front, e.g.

 

On Kill, Incr X

If X > 10...

If X > 20...

 

is the same as

 

On Kill;Incr X

On Kill;Incr X;If X > 10...

On Kill;Incr X;If X > 20...

 

I.e. the Incr is repeated which is not what you want and your rulz are:

 

On Kill;Incr %ini_nemesis[%p%]_against[%v%]%;

 

On Kill;Incr %ini_nemesis[%p%]_against[%v%]%;If %ini_nemesis[%v%]_against[%p%]% >= 5;Say %p% ended %v%'s nemesis streak at %ini_nemesis[%v%]_against[%p%]%!;Set %ini_nemesis[%v%]_against[%p%]% 0

 

On Kill;Incr %ini_nemesis[%p%]_against[%v%]%;If %ini_nemesis[%v%]_against[%p%]%

...

 

i.e. you are incrementing the kill var many times for the same kill.

 

My suggestion (fixes incr repeat bug, moves vars into a single [nemesis] section of ini file):

On Kill;Incr %ini_nemesis_killer[%p%]_against[%v%]%;

 

On Kill;If %ini_nemesis_killer[%v%]_against[%p%]% >= 5;Say %p% ended %v%'s nemesis streak at %ini_nemesis_killer[%v%]_against[%p%]%!;Set %ini_nemesis_killer[%v%]_against[%p%]% 0

 

On Kill;If %ini_nemesis_killer[%v%]_against[%p%]%

 

On Kill;If %ini_nemesis_killer[%p%]_against[%v%]% >= 5;Say %p% nemesis streak on %v% is now %ini_nemesis_killer[%p%]_against[%v%]%!

 

 

I haven't checked your actual logic, i.e. swapping the %v% and %p% around to check who's the nemesis of who...

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

Originally Posted by ty_ger07*:

 

ah ok thanks for the info i found that but i have an small problem ? is there some wrong that don't work ?

 

On Say;Text fuck Say thanks %p%;Say for noticing this new notice ur noticing has been noted and will reported to the authorities

Yes, you are missing a semicolon ( ; ) before the first Say. Can you have two Say actions in one rule? I suppose it should work.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by SgtGibsonM*:

 

Hello!

 

First of all, wonderful plugin. I really like it! I've just a few questions. I want to limit all weapons, and kick players who preform a kill with it. Now I have a rule for every single weapon in the game. That are alot of rules. Is there a way reduce this, by putting some rules together?

 

Second question: I was wondering if the 'player count' just 'count' for one visit, or for every time a player is visiting the server. I don't want people who visit my server regularly to get banned after a few weeks. my rule:

 

On Kill;Weapon 870MCS;PlayerCount 8;Say %p% is banned for killing %v%. No kills allowed!;Ban %p% No kills allowed!

On Kill;Weapon 870MCS;PlayerCount 5;Say %p% is temporary banned for killing %v%. No kills allowed!;Tempban 900 %p% No kills allowed!

On Kill;Weapon 870MCS;Say %p% is kicked for killing %v%. No kills allowed!;Kick %p% No kills allowed!

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

Originally Posted by tarreltje*:

 

Hello!

 

First of all, wonderful plugin. I really like it! I've just a few questions. I want to limit all weapons, and kick players who preform a kill with it. Now I have a rule for every single weapon in the game. That are alot of rules. Is there a way reduce this, by putting some rules together?

 

Second question: I was wondering if the 'player count' just 'count' for one visit, or for every time a player is visiting the server. I don't want people who visit my server regularly to get banned after a few weeks. my rule:

Limit all weapons_? So no kills allowed on your server?
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by SgtGibsonM*:

 

Limit all weapons_? So no kills allowed on your server?

Exactly. I've now 80+ single rules to check for every single weapon. But I want to add another few lines to each weapon rule for Temp and permbans, which adds another 2 lines per rule(see my example). Is there a way to combine rules? For example to check in one rule for all assault weapons instead a rule for every single assault weapon?

 

And my second question. How the "Playercount", 'count' the amount for times the rule apply. Is this for as long as the player stays on the server, or does it keep counting after multiple visits. Like previously mentioned. I want to ban (and temporary ban) people who repeatly troll people by killing them, getting kicked and rejoining the server to repeat, instead of banning people who make this mistake once each match, but who are getting banned eventually after X matches played.

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

Originally Posted by tarreltje*:

 

Exactly. I've now 80+ single rules to check for every single weapon. But I want to add another few lines to each weapon rule for Temp and permbans, which adds another 2 lines per rule(see my example). Is there a way to combine rules? For example to check in one rule for all assault weapons instead a rule for every single assault weapon?

 

And my second question. How the "Playercount", 'count' the amount for times the rule apply. Is this for as long as the player stays on the server, or does it keep counting after multiple visits. Like previously mentioned. I want to ban (and temporary ban) people who repeatly troll people by killing them, getting kicked and rejoining the server to repeat, instead of banning people who make this mistake once each match, but who are getting banned eventually after X matches played.

Im not going to help you setup an statpadding server mate!
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by tarreltje*:

 

Ok you never mentioned it if im right!

 

But if you take the rulz for sniper only servers:

 

 

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

 

Change it too:

 

 

On Kill;Not Damage Death;PlayerCount 5;Ban %p% Only kills with air vehicels allowed

On Kill;Not Damage Death;PlayerCount 3;Kick %p% Only kills with air vehicels allowed

On Kill;Not Damage Death;PlayerSay %p% Only kills with air vehicels allowed;Kill 100

 

This will kill the troller on first kill, after 3 kills he will be kicked and after making the 5th kill he will be banned.

 

Only downside of this is that ground vehicel kills are also allowed. Ground and air units have the same damage trigger, named Death.

 

So basicly this is the easyest thing to use.

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

Originally Posted by shadow2k1*:

 

You need just one rule, not multiple rules. The "%c%" automatically substitutes the number of times the rule has occurred.

 

On Kill;Weapon Melee;Yell %p% has taken %v% tags %c% times!

with this rule, if i have only taken the players tags 1 time, and someone else has taken this players tag 2 times, whoever the last to get that players tag it says that, that person has taken the players tags X amount of times. is there anyway to make it where it remembers who has taken the tags and adds up the count per player?
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

with this rule, if i have only taken the players tags 1 time, and someone else has taken this players tag 2 times, whoever the last to get that players tag it says that, that person has taken the players tags X amount of times. is there anyway to make it where it remembers who has taken the tags and adds up the count per player?

Ok. I didn't think about that.

 

# Knife Nemesis Rules

# Count Knives

On Kill;Weapon Melee;Incr %knife_nem[%v%]%

# Show Knives

On Kill;Weapon Melee;Yell %p% has taken %v%'s tags %knife_nem[%v%]% times.

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

Originally Posted by SgtGibsonM*:

 

Ok you never mentioned it if im right!

 

But if you take the rulz for sniper only servers:

 

 

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

 

Change it too:

 

 

On Kill;Not Damage Death;PlayerCount 5;Ban %p% Only kills with air vehicels allowed

On Kill;Not Damage Death;PlayerCount 3;Kick %p% Only kills with air vehicels allowed

On Kill;Not Damage Death;PlayerSay %p% Only kills with air vehicels allowed;Kill 100

 

This will kill the troller on first kill, after 3 kills he will be kicked and after making the 5th kill he will be banned.

 

Only downside of this is that ground vehicel kills are also allowed. Ground and air units have the same damage trigger, named Death.

 

So basicly this is the easyest thing to use.

Thanks for your reply. I'm gonna test it out!
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by shadow2k1*:

 

Ok. I didn't think about that.

 

# Knife Nemesis Rules

# Count Knives

On Kill;Weapon Melee;Incr %knife_nem[%v%]%

# Show Knives

On Kill;Weapon Melee;Yell %p% has taken %v%'s tags %knife_nem[%v%]% times.

thanks Ty.. one more thing, whats is knife_nem? if i want another for xbow would i change the knife_nem to xbow_nem?
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

thanks Ty.. one more thing, whats is knife_nem? if i want another for xbow would i change the knife_nem to xbow_nem?

It's just a variable with a memorable name. If you wanted one for xbow, yes you would use a different variable name of your choice and would not use 'weapon melee'.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Helldon*:

 

Simple !rules command, without the use of !rules on request plugin.

 

Code:

# Public command for players.
On Say;Text !rules
PlayerSay ------- [YOUR TAG HERE] Server Rules ------- 
PlayerSay [1] Baserape/Camp[=KICK] Cheat & Glitch[=BAN]  
PlayerSay [2] No [YOUR CLAN NAME HERE] Clan member_ [NO Recruiting]     
PlayerSay [3] Play fair, have fun & respect all players!
PlayerSay [4] In offence: [1st] Warning [2nd] Kick/Ban
AdminSay !! [%p% requested the server rules] !!

# Admin only command.
On Say;Admin;Text @rules
Say --- [YOUR TAG HERE] Server Rules by Admin 2 all! --- 
Say [1] Baserape/Camp[=KICK] Cheat & Glitch[=BAN]  
Say [2] No [YOUR CLAN TAG HERE] Clan member_ [NO Recruiting]     
Say [3] Play fair, have fun & respect all players!
Say [4] In offence: [1st] Warning [2nd] Kick/Ban
Log Admin %p% send the rules to all players! [%hms%]
5 clear lines to use, so make your rules count.

But keep your eye on the chatwindow as it is limited in use.

 

TEST: inTheGame.nl [iTG #1] - 24/7 CQ Large - Firestorm & Caspian

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

Originally Posted by ty_ger07*:

 

This plugin already has the rules function built in. Just go to the plugin settings and add the rules there. Any time anyone says 'rules', the rules in the plugin settings are displayed automatically.

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

Originally Posted by tarreltje*:

 

This plugin already has the rules function built in. Just go to the plugin settings and add the rules there. Any time anyone says 'rules', the rules in the plugin settings are displayed automatically.

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

Originally Posted by Helldon*:

 

This plugin already has the rules function built in. Just go to the plugin settings and add the rules there. Any time anyone says 'rules', the rules in the plugin settings are displayed automatically.

Jip, you are correct.. but..

 

Every time someone said "rules" in chat the chatbox will be spammed with the rules because theres no "!"

Sometimes there are players talking about the rules, I dont want them to spam the chatbox, so I build-in the "!"

 

Thats the reason somehow..

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

Originally Posted by AntoniusBlock*:

 

Hello ppl,

i have one request pls

can you make string for this forbidden weapon : SMAW,RPG-7,C4,Claymore,M320 on TDM Kharg Island/Noshahar Canals

I would be grateful.

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

Originally Posted by ty_ger07*:

 

Hello ppl,

i have one request pls

can you make string for this forbidden weapon : SMAW,RPG-7,C4,Claymore,M320 on TDM Kharg Island/Noshahar Canals

I would be grateful.

Did you read the documentation and try yourself?

 

There are already 282 pages of this thread and most of them are from people asking others to do the work they could easily do themselves if they took the time to read.

http://www.forsterlewis.com/proconrulz.pdf

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

Originally Posted by AntoniusBlock*:

 

Did you read the documentation and try yourself?

 

There are already 282 pages of this thread and most of them are from people asking others to do the work they could easily do themselves if they took the time to read.

http://www.forsterlewis.com/proconrulz.pdf

49 pages !!!

 

joke,course :ohmy:

 

so... i go to read,thanks

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