Jump to content

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


ColColonCleaner

Recommended Posts

Originally Posted by utopiate*:

 

Have been trying the below code to restrict the use of the tac50 in mohw, however, its not working. If anyone could help I'd really appreciate it. I'm either looking to restrict the tac50 or even better limit the number of snipers on the map at any one time.

 

Here is the non functioning tac50 code

Code:

rule 0 # SPAWN RULE, so we get info when MOHW gives it
rule 1 On Spawn;Log [%pt%] ^2%p%^0 spawned with [%kk%], [%wk%], [%speck%]
rule 2 # TAC50KILL RULZ
rule 3 On Kill;Weapon MOHW/Weapons/MP_Weapons/TAC50_MP;PlayerCount 4;Log %p% banned for TAC-50;Ban %p% TAC-50 use
rule 4 On Kill;Weapon MOHW/Weapons/MP_Weapons/TAC50_MP;PlayerCount 2;Log %p% kicked for TAC-50;Kick %p% no TAC-50 allowed;Kill 100
rule 5 On Kill;Weapon MOHW/Weapons/MP_Weapons/TAC50_MP;PlayerSay %p% no TAC-50 allowed;Kill 100
Here is the code I use to restrict the number of snipers in BF3

Code:

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

On kill;Damage sniperRifle;
if %team_recontotal% == %server_sniperlimit%;if %_beingsniper% == 3;PlayerYell %p% 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%
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Dog_Pound*:

 

Have been trying the below code to restrict the use of the tac50 in mohw, however, its not working. If anyone could help I'd really appreciate it. I'm either looking to restrict the tac50 or even better limit the number of snipers on the map at any one time.

 

Here is the non functioning tac50 code

Code:

rule 0 # SPAWN RULE, so we get info when MOHW gives it
rule 1 On Spawn;Log [%pt%] ^2%p%^0 spawned with [%kk%], [%wk%], [%speck%]
rule 2 # TAC50KILL RULZ
rule 3 On Kill;Weapon MOHW/Weapons/MP_Weapons/TAC50_MP;PlayerCount 4;Log %p% banned for TAC-50;Ban %p% TAC-50 use
rule 4 On Kill;Weapon MOHW/Weapons/MP_Weapons/TAC50_MP;PlayerCount 2;Log %p% kicked for TAC-50;Kick %p% no TAC-50 allowed;Kill 100
rule 5 On Kill;Weapon MOHW/Weapons/MP_Weapons/TAC50_MP;PlayerSay %p% no TAC-50 allowed;Kill 100
Hi utopiate, I just noticed you are saying the tac 50 code I gave you wasn't working. As it is very possible to miss a character or space when trying to retype things, I figured this time I would just give you all the code lines from my config for proconrulz this go round. This does work as I run it on my three servers and the tac 50 guys hate it so shhhh, don't tell them I told you...lol.

 

Code:

procon.protected.plugins.enable "ProconRulz" True
procon.protected.plugins.setVariable "ProconRulz" "Delay before kill" "5000"
procon.protected.plugins.setVariable "ProconRulz" "Yell seconds" "5"
procon.protected.plugins.setVariable "ProconRulz" "Player keeps items on respawn" "Player_reserves_item_until_respawn"
procon.protected.plugins.setVariable "ProconRulz" "EA Rules of Conduct read and accepted" "No"
procon.protected.plugins.setVariable "ProconRulz" "Protect these players from Kick or Kill" "Admins"
procon.protected.plugins.setVariable "ProconRulz" "Trace rules" "No"
procon.protected.plugins.setVariable "ProconRulz" "Rules" "#             SPAWN RULE, so we get info when MOHW gives it|On Spawn;Log [%pt%] ^2%p%^0 spawned with [%kk%], [%wk%], [%speck%]|#             TAC50KILL RULZ|On Kill;Weapon MOHW/Weapons/MP_Weapons/TAC50_MP;PlayerCount 4;Log %p% banned for TAC-50;Ban %p% TAC-50 use|On Kill;Weapon MOHW/Weapons/MP_Weapons/TAC50_MP;PlayerCount 2;Log %p% kicked for TAC-50;Kick %p% no TAC-50 allowed;Kill 100|On Kill;Weapon MOHW/Weapons/MP_Weapons/TAC50_MP;PlayerSay %p% no TAC-50 allowed;Kill 100|#             SUICIDE LOG|On Suicide;Log Suicide by [%pt%] [^2%p%^0] with [%wk%]|#             LOG KILL RULZ|On Kill;Weapon MOHW/Weapons/MELEE/Tomohawk/Tomohawk;Log Tomohawk kill by [^2%p%^0] on [^2%v%^0]|On Kill;Log Kill [%pt%] [^2%p%^0] killed [%vt%] [^2%v%^0] with [%wk%] [%w%], Kit [%kk%] [%k%], Damage [%d%]"
procon.protected.plugins.setVariable "ProconRulz" "Server Rulz Message enable" "Yes"
procon.protected.plugins.setVariable "ProconRulz" "Server Rulz Message limited to PlayerSay" "No"
procon.protected.plugins.setVariable "ProconRulz" "Server Rulz Message" "SERVER RULZ:|=== ProconRulz is active. ===|=== Teamwork is everything - go for the objective ==="
procon.protected.plugins.setVariable "ProconRulz" "Player name whitelist" ""
procon.protected.plugins.setVariable "ProconRulz" "Clan name whitelist" ""
procon.protected.plugins.setVariable "ProconRulz" "Send ProconRulz Log messages to:" "PluginConsole"
To add this to your configs and make it stick, you have to turn off procon first btw. Otherwise you can pull the code and set it in the lines inside the plugin, as you wish.

 

You can limit by class instead of by weapon easily too. It is only a matter of knowing the actual things to point at which are all available in the mohw.def file in procon. I don't have time right now to go through your other code or amend this one to the class but will try to take a look for you when I can.

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

Originally Posted by set4812*:

 

I using this to Tac-50 and is working,

Code:

On Kill; Weapon MOHW/Weapons/MP_Weapons/TAC50_MP; PlayerCount 2; Say Player %p% was kicked using Tac-50
On Kill; Weapon MOHW/Weapons/MP_Weapons/TAC50_MP;Say Tac-50 is not allowed; Kill
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by utopiate*:

 

I using this to Tac-50 and is working,

Code:

On Kill; Weapon MOHW/Weapons/MP_Weapons/TAC50_MP; PlayerCount 2; Say Player %p% was kicked using Tac-50
On Kill; Weapon MOHW/Weapons/MP_Weapons/TAC50_MP;Say Tac-50 is not allowed; Kill
thx for posting, however, it seems to not action a kick despite the message saying player kicked for tac50. It does kill for tac50 though.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by utopiate*:

 

Hi utopiate, I just noticed you are saying the tac 50 code I gave you wasn't working. As it is very possible to miss a character or space when trying to retype things, I figured this time I would just give you all the code lines from my config for proconrulz this go round. This does work as I run it on my three servers and the tac 50 guys hate it so shhhh, don't tell them I told you...lol.

 

Code:

procon.protected.plugins.enable "ProconRulz" True
procon.protected.plugins.setVariable "ProconRulz" "Delay before kill" "5000"
procon.protected.plugins.setVariable "ProconRulz" "Yell seconds" "5"
procon.protected.plugins.setVariable "ProconRulz" "Player keeps items on respawn" "Player_reserves_item_until_respawn"
procon.protected.plugins.setVariable "ProconRulz" "EA Rules of Conduct read and accepted" "No"
procon.protected.plugins.setVariable "ProconRulz" "Protect these players from Kick or Kill" "Admins"
procon.protected.plugins.setVariable "ProconRulz" "Trace rules" "No"
procon.protected.plugins.setVariable "ProconRulz" "Rules" "#             SPAWN RULE, so we get info when MOHW gives it|On Spawn;Log [%pt%] ^2%p%^0 spawned with [%kk%], [%wk%], [%speck%]|#             TAC50KILL RULZ|On Kill;Weapon MOHW/Weapons/MP_Weapons/TAC50_MP;PlayerCount 4;Log %p% banned for TAC-50;Ban %p% TAC-50 use|On Kill;Weapon MOHW/Weapons/MP_Weapons/TAC50_MP;PlayerCount 2;Log %p% kicked for TAC-50;Kick %p% no TAC-50 allowed;Kill 100|On Kill;Weapon MOHW/Weapons/MP_Weapons/TAC50_MP;PlayerSay %p% no TAC-50 allowed;Kill 100|#             SUICIDE LOG|On Suicide;Log Suicide by [%pt%] [^2%p%^0] with [%wk%]|#             LOG KILL RULZ|On Kill;Weapon MOHW/Weapons/MELEE/Tomohawk/Tomohawk;Log Tomohawk kill by [^2%p%^0] on [^2%v%^0]|On Kill;Log Kill [%pt%] [^2%p%^0] killed [%vt%] [^2%v%^0] with [%wk%] [%w%], Kit [%kk%] [%k%], Damage [%d%]"
procon.protected.plugins.setVariable "ProconRulz" "Server Rulz Message enable" "Yes"
procon.protected.plugins.setVariable "ProconRulz" "Server Rulz Message limited to PlayerSay" "No"
procon.protected.plugins.setVariable "ProconRulz" "Server Rulz Message" "SERVER RULZ:|=== ProconRulz is active. ===|=== Teamwork is everything - go for the objective ==="
procon.protected.plugins.setVariable "ProconRulz" "Player name whitelist" ""
procon.protected.plugins.setVariable "ProconRulz" "Clan name whitelist" ""
procon.protected.plugins.setVariable "ProconRulz" "Send ProconRulz Log messages to:" "PluginConsole"
To add this to your configs and make it stick, you have to turn off procon first btw. Otherwise you can pull the code and set it in the lines inside the plugin, as you wish.

 

You can limit by class instead of by weapon easily too. It is only a matter of knowing the actual things to point at which are all available in the mohw.def file in procon. I don't have time right now to go through your other code or amend this one to the class but will try to take a look for you when I can.

yep, that works now, however, if you have the time I think I would prefer to limit the number of snipers on the map to say 1 or 2 per team. However, looking in the mohw.def I just cannot see any class/kit references. I could completely restrict the class by copying your rules for all sniper class weapons but just feel this is not a good option. If you have an idea how to achieve limiting the numbers of snipers It would be really appreciated.

 

many thanks

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

Originally Posted by skooterking5*:

 

Is there a list floating around somewhere that has all possible variables listed on them and what they do? Because I feel like the online documentation only gives you a few compared to what there actually is.

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

Originally Posted by ty_ger07*:

 

Is there a list floating around somewhere that has all possible variables listed on them and what they do? Because I feel like the online documentation only gives you a few compared to what there actually is.

Variables are variables. You make up the variable and name them whatever you want (preferably a unique name which describes the variable's function well). They are just storage placeholders to store a string, byte, or integer.

 

The online documentation explains the commands:

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

 

Hi, I´m new with server and didn´t find how to use ProconRulz... on procon software ther´s no plugin available. Do I have to put the commands on startup txt? Thks for help!

If you are using a PRoCon Layer server, you need to upload the plugin to your layer server. If you are just running PRoCon on your local machine without a layer server, you need to download the plugin onto your machine. More help on how to use plugins or what a layer server is and why you should use one should be researched by you or asked elsewhere. This is a plugin specific thread and not a general assistance thread.

 

Once you get the plugin system figured out, enter your rules into the plugin in the way the first post shows.

www.phogue.net/forumvb/showth...-admin-actions*

...

 

How to enter your rulz

...

 

Posted Image

 

...

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

Originally Posted by skooterking5*:

 

Is there a way to make procon rulz choose from a list of things to say? Like lets say I wanted to make a custom suicide mocker...how can I have it choose from a random list of what to say?

 

Sent from my HTC Rezound via Verizon 4G LTE.

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

Originally Posted by reclutador*:

 

please i need a help. in one map expecific exmple metro

i need config for put in one map specific (not in all

no granades no 320 no rpg no c4 no claimores ect.... but i dont know

 

and need config for activate frienly fire in all maps

need config for save or punisher team killers when u team member kill you u posible forgibe

 

and need configuration for not vehiclkes in specific maps example karkand

 

 

please is posible any give me this configuration please i no find in this forum me email is [email protected] thx for help me

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

Originally Posted by me1*:

 

Hello !

 

I have a question to the -- Example 23. Simple Aimbot headshot detector -- .

 

I want to change it, so that it shows the Headshot / Kill ratio every 25 kills to the player (playersay)

 

... i am not so good in programming proconrulz, i have try it, please, can someone look at it and tell me what i do wrong, and what can i do that it works.

 

on spawn;serverfirst;set %kills% 0;set %hs% 0

on kill;incr %kills%

on kill;incr %hs%

on kill;Set %proc.1% %hs% / %kills% * 100

on kill;If %kills% == 5;PlayerSay %p%'s headshot rate in this round: %proc.1% %.

on kill;If %kills% == 30;PlayerSay %p%'s headshot rate in this round: %proc.1% %.

on kill;If %kills% == 55;PlayerSay %p%'s headshot rate in this round: %proc.1% %.

 

Please, please can someone help me and do the script so, that it shows the Headshot / Kill ratio every 25 kills to the player.

 

Thank you so much for your answers !

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

Originally Posted by russel5*:

 

Hi, just correct your rules

Code:

on kill;incr %kills%;incr %count%
on kill;[b]Headshot[/b];incr %hs%
on kill;set %proc.1% %hs% / %kills% * 100
on kill;if %count% == 25;PlayerSay %p% 's headshot rate in this round: %proc.1% %;set %count% 0
Test and write if not work
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by me1*:

 

Oh thank you so much for your help, i will test it tonight at my server and i will tell you, if it works!

 

Thank you for your help!

 

I have tested it now, it works, thank you russel5 !

 

I have read the online documet about ProConRulz, but where can i find a list of commands (with description) like %count%, "incr" and so on.

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

Originally Posted by bambam*:

 

I have read the online documet about ProConRulz, but where can i find a list of commands (with description) like %count%, "incr" and so on.

Online Docs, as per my sig (http://www.forsterlewis.com/proconrulz.pdf), page 37, Appendix 1 "List of substitution variables" such as %p%. Also see from p.20 for a guide to embedding those in your rulz. For a simple list of *commands* (not variables), see p.32. Using variables just means embedding them in a command, e.g. Yell %p% is leet will output the player name that triggered the rule in place of %p%. Using counts requires more thought although it is just the %c% variable - usually you want to TEST the count against something. There is no %count% variable, you made that up...
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by bambam*:

 

Is there a way to make procon rulz choose from a list of things to say? Like lets say I wanted to make a custom suicide mocker...how can I have it choose from a random list of what to say?

 

Sent from my HTC Rezound via Verizon 4G LTE.

You use a variable to keep track of how many messages you've said, e.g. for 'random' knife/tool messages:

 

On Kill;Damage Melee;

Incr %server_melees%;If %server_melees% > 5;Set %server_melees% 1

If %server_melees% == 1;Yell %p% is a full contact bitch, just ask %v%

If %server_melees% == 2;Yell %p% gets close and personal with %v%

If %server_melees% == 3;Yell %p% gave %v% some %w% love

If %server_melees% == 4;Yell %v% took it in the ass from %p%

If %server_melees% == 5;Yell %p% is a %w% god, as %v% knows

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

Originally Posted by utopiate*:

 

Hi all, had a search of the thread but came up empty which was a surprise as I thought what I want would have been covered bt someone at some point.

What I'm looking for is a ruleset which would announce the next map near the end of a round and implement a vote option to skip it. If anyone could help I'd really appreciate it.

 

Many thanks guys.

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

Originally Posted by The_Gwynbleidd*:

 

On Kill;Weapon Death;

PlayerCount 3;Say %p%banned for vehicle kills;Ban Banned for vehicle kills

PlayerCount 2;Say %p% kicked for vehicle kills;Kick kicked for vehicle kills

PlayerCount 1;Say %p% slayed for vehicle kill %c%/3;Kill 100

 

 

 

Only infantry server. Admin kill work only on secon count. Kick or ban not working. What wrong? May it be host error? When procon layer was in london all work. Change location in Frankfurt Reinstal procon rulz and this rule not working. Need help.

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

Originally Posted by cLiXr*:

 

On Kill;Weapon Death;Log %p% kicked for USING TANK/VEHICLE;Kick %p% DO NOT USE TANK/BMP-2 VEHICLE

On Kill;Weapon RoadKill;Log %p% kicked for roadkill;Kick %p% PLEASE DO NOT USE THE TANK/BMP

 

These two will kick a player if he makes a kill with the tank ( any way, main cannon, gunner, roadkill )

Where do I put these codes in at to make them work, Im new to this
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by L2Devlier*:

 

A pretty interesting bullSh*t rulz i've come up with :mad:

Code:

#admin player actions
On Say;Text !killme
	Kill;Say %p% you will be killed by me as requested.;Say %p% will be killed by me as requested by him/herself.

On Say;Text !kickme
	Kick You requested to kick yourself;Say %p% kicked by me as requested by him/herself.;Say %p% kicked by me as requested by him/herself.

On Say;Text !banme
	Ban %p% > Ownself requested ban;Say %p% banned by me as requested by him/herself.;Say %p% banned by me as requested by him/herself.
Feel free to copy and paste. Have fun watching players banning themselves out of curiosity.:cool:

 

all commands player-tested to work

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

Originally Posted by TheDoctor*:

 

Sweet, this has been a transcendental plugin for me. I had no idea why it took me so long to realize this is exactly what I've been looking for...for months!

 

Thank you bambam!

 

Anyone know how to program a "Best Clan" rule?

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

Originally Posted by ty_ger07*:

 

Hi all.

Can I disable the use of airplanes on the server? And how is it done?

Thank you!

Please read the first post!

 

...

 

1) not all weapon keys are available. All kills by mortar, MAV, tanks, choppers, humvee are just weapon 'Death'. This means Damage VehicleXXX conditions cannot be used in BF3.

 

...

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




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