Jump to content

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


ColColonCleaner

Recommended Posts

Originally Posted by B14ckwaterX*:

 

Hey!

 

First i want to say this plugin rulez but fo me that is a n00b i need some help :smile:

 

Is there any chance to limit the recon class to 3 for each team or make them die for spawning with a sniper if our rule is set to just have 3 snipers each team ? instead of killing them when they kill someone else? Sry for the inconvenience

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

Originally Posted by ixnorp*:

 

Hi ixnorp

1st of all : if you want forbid ALL M320_HE , you don't need to get all weapons, with multiple lines i mean, you can use this line

 

On kill;if %wk% contains M320_HE;kill

 

but it's better to use permanent count registred with a variable like : "Incr %ini_M320HE_%p%%"

by exemple (here a full code you can use , with same punish you want for all m320HE) :

 

On Kill;if %wk% contains M320_HE;Incr %ini_M320HE_%p%%

On Kill;

if %ini_M320HE_%p%% > 1;Say %p% Ban for Killing with %w%;Log %p% banned for %w%;TempBan 500;set %ini_M320HE_%p%% 0

if %ini_M320HE_%p%% == 1;PlayerSay %p% No %w%;kill

 

To only correct your last code ! try that (you don't need write playercount 0)

 

#####SteyrAug#####

On Kill;Weapon U_SteyrAug_M320_HE;

PlayerCount 1;Say %p% Ban for Killing with AUG M320 HE;Log %p% banned for AUG M320 HE;TempBan 500

PlayerSay %p% No AUG M320 HE;kill

hey, thanks man! i'm not getting any error on the console. gonna test it later.

btw 1 more question

 

On Join;TargetPlayer ;Say %t% is here!

 

doesn't work?

 

On Spawn;TargetPlayer ;say (whatever);kill 500

 

gave me errors. i can't figure out what did i type wrong?

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

Originally Posted by Gunslinger1973*:

 

Why do get ppl killed when using G18, M1911 and not with PP226

 

# RULZ

On Kill;Not Damage Handgun;PlayerCount 5;Log %p% banned (pistols only);Ban %p% pistols only

On Kill;Not Damage Handgun;PlayerCount 3;Log %p% kicked (pistols only);Kick %p% pistols only

On Kill;Not Damage Handgun;PlayerSay %p% pistols only;Kill 100

 

ON HC, 60 % player healt to start

 

any1 any ideas__?

Thanks

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

Originally Posted by tarreltje*:

 

Why do get ppl killed when using G18, M1911 and not with PP226

 

# RULZ

On Kill;Not Damage Handgun;PlayerCount 5;Log %p% banned (pistols only);Ban %p% pistols only

On Kill;Not Damage Handgun;PlayerCount 3;Log %p% kicked (pistols only);Kick %p% pistols only

On Kill;Not Damage Handgun;PlayerSay %p% pistols only;Kill 100

 

ON HC, 60 % player healt to start

 

any1 any ideas__?

Thanks

Is your BF4.DEF updated?
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Gunslinger1973*:

 

OK, I checked it..

 

Server R12 is in there

 

I got all the lines like

 

procon.protected.weapons.add None "U_CZ75" Auxiliary Handgun

procon.protected.weapons.add None "U_M1911" Auxiliary Handgun

procon.protected.weapons.add None "U_M9" Auxiliary Handgun

procon.protected.weapons.add None "U_M93R" Auxiliary Handgun

 

and so on...

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

Originally Posted by wdfstryfe*:

 

Would anyone have a good On Damage script for flashbangs? I got it set now to kick anyone that uses anything besides melee and handguns but still getting damage from flashbangs causing deaths which does kick but I want to slay them for trying to flash.

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

Originally Posted by bambam*:

 

In proconrulz_sniperlimit there is this Line...............

 

On Kill;ServerFirst;Set %server_sniperlimit% 3

On Say;ServerFirst;Set %server_sniperlimit% 3

 

mean this i have to change the Number 3 to 1 if i want only 1 sniper each team_!

 

Its not working if i change this to

 

On Kill;ServerFirst;Set %server_sniperlimit% 1

On Say;ServerFirst;Set %server_sniperlimit% 1

 

Other Players can join as Sniper

 

I want only 1 Sniper for 1 Team how to setup this_!

 

Regards

You are correct - just edit those two numbers.

 

Snipers in BF3 and BF3 can only be detected when they KILL with a sniper weapon. BF3/4 provide NO data when the player spawns.

 

So the sniper limit has to be more complicated, there is no way around this with any admin tool.

 

A sniper KILL reserves a slot for that player. A kill with any non-sniper weapon releases the slot.

 

Command !snipers tells you how many snipers & what's the limit & who has current slots on your team. It's all fucking clever. But tricky to do with BF3/4. BFBC2 was easy because you got the kit info on spawn.

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

Originally Posted by bambam*:

 

i cant seem to figure out whats wrong? whats with the error_?

 

 

#####SteyrAug#####

On Kill;Weapon U_SteyrAug_M320_HE;

PlayerCount 1;TempBan 500;Say %p% Ban for Killing with AUG M320 HE;Log %p% banned for AUG M320 HE

PlayerCount 0;kill;PlayerSay %p% No AUG M320 HE,

 

 

[04:57:55 62] ProconRulz: Exception occurred parsing your rules

[04:57:55 62] ProconRulz: Rule was ""

[04:57:55 62] ProconRulz: Part that failed was "PlayerCount 0:kill"

[04:57:55 62] ProconRulz: System.FormatException: Input string was not in a correct format.

at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)

at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)

at PRoConEvents.ProconRulz.parse_count(ParsedRule& parsed_rule, String[] fragments, Boolean negated)

at PRoConEvents.ProconRulz.parse_part(ParsedRule& parsed_rule, String part, Boolean target_action)

[04:57:55 62] ProconRulz: 141 rules loaded

PlayerCount 0:kill

has a ":" in it which should be ";"

Anyway PlayerCount 0 is completely redundant, thats the same as saying ALWAYS.

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

Originally Posted by bambam*:

 

Is there a no rockets on infantry rule?

I don't think BF4 tells you when a player was killed inside a tank or standing in a field... it just says "Fred killed with RPG-7".

 

So you're probably shit-out-of-luck unless you can confirm a rocket kill inside/outside a tank gives a difference weapon key or something.

 

This applies to ALL software looking at BF4 data streaming from the server. It's not a limitation of ProconRulz.

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

Originally Posted by bambam*:

 

Hey!

 

First i want to say this plugin rulez but fo me that is a n00b i need some help :smile:

 

Is there any chance to limit the recon class to 3 for each team or make them die for spawning with a sniper if our rule is set to just have 3 snipers each team ? instead of killing them when they kill someone else? Sry for the inconvenience

You can't detect a sniper at spawn time because BF4 (& BF3) just says (Fred spawned on US Army). It does NOT say what kit/weapons the player has spawned with. You have to wait until the player does a kill.

 

So proconrulz_sniperlimit.txt has to be a LOT cleverer than the one-line-rule possible in BFBC2 - it keeps track of all players and what weapons they've killed with, to keep track of who has the sniper slots.

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

Originally Posted by bambam*:

 

On Join;TargetPlayer ;Say %t% is here!

 

doesn't work?

 

On Spawn;TargetPlayer ;say (whatever);kill 500

 

gave me errors. i can't figure out what did i type wrong?

eh? that's a wierd rule. WHat are you trying to do?

 

"TargetPlayer xyz" looks for a player called xyz on the server and *if* found then it sets the %t% to that player name and continues.

 

The list of players on the server is only refreshed every 30 seconds, NOT in real time on each player join event, so there could be a problem for you there. (Maybe I should have worked around this with ProconRulz but I didn't...)

 

Instead, you could use

 

On Join;If %p% == Slartibartfast;Kill

 

That'll do the same thing...

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

Originally Posted by bambam*:

 

OK, I checked it..

 

Server R12 is in there

 

I got all the lines like

 

procon.protected.weapons.add None "U_CZ75" Auxiliary Handgun

procon.protected.weapons.add None "U_M1911" Auxiliary Handgun

procon.protected.weapons.add None "U_M9" Auxiliary Handgun

procon.protected.weapons.add None "U_M93R" Auxiliary Handgun

 

and so on...

You're on the right track... specifically you have to find the entry for the PP226 - maybe it's missing. You need the exact weapon key. If BF4.def has a bug and it's not in there, then you need to add a rule for just that weapon as in

 

On Kill;Weapon PP226;.....

 

(I haven't checked the BF4.def or the weapon key, so you check)

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

Originally Posted by bambam*:

 

Would anyone have a good On Damage script for flashbangs? I got it set now to kick anyone that uses anything besides melee and handguns but still getting damage from flashbangs causing deaths which does kick but I want to slay them for trying to flash.

What's the weapon key for flashbangs? If you have that you use the weapon limit rulz from the example in the 1st post of this thread with that key...
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Gunslinger1973*:

 

You're on the right track... specifically you have to find the entry for the PP226 - maybe it's missing. You need the exact weapon key. If BF4.def has a bug and it's not in there, then you need to add a rule for just that weapon as in

 

On Kill;Weapon PP226;.....

 

(I haven't checked the BF4.def or the weapon key, so you check)

OK - got it... found out that my Server Provider was still on 1.4.1.1 of ProCon Layer. I FORCED him to update and now it is running smoothly... If you have other ppl having similar issues, it could be the Procon Layer... (it was missleading because my ProCon was 1.4.1.2)
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ixnorp*:

 

eh? that's a wierd rule. WHat are you trying to do?

 

"TargetPlayer xyz" looks for a player called xyz on the server and *if* found then it sets the %t% to that player name and continues.

 

The list of players on the server is only refreshed every 30 seconds, NOT in real time on each player join event, so there could be a problem for you there. (Maybe I should have worked around this with ProconRulz but I didn't...)

 

Instead, you could use

 

On Join;If %p% == Slartibartfast;Kill

 

That'll do the same thing...

thanks bambam, it worked! its a weird rule to mess with my friend. =)

and thanks to C-4-N too!

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

Originally Posted by Voltstriker9*:

 

Hey guys im getting this error whenever i try to save a value to my variable %ini_restartCount%:

 

Posted Image

 

(Sorry its an image, procon wouldnt let me copy and paste)

 

The code I am executing is as follows:

 

Code:

On Say;Text !save;Set %ini_test% %text%
Does anyone have any suggestions as to how I can fix this or a reason why this isn't working. If it helps, I am trying to execute this on a BF4 server.

 

Many thanks,

 

Voltstriker.

 

 

Edit: just did a little testing and found that it returned this error with other instances of code such as:

 

Code:

On Spawn;Incr %ini_spawns%
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by JohnyDoo*:

 

Hello, I have a funny problem, I cannot Incr any variable (stupid example)

 

On Kill; Damage AssaultRifle; Incr %arKill%; PlayerSay AR_kills: %arKill%

it stays on 0 ... never increases

while replacing with:

On Kill; Damage AssaultRifle; Set %arKill% 1 + %arKill%; PlayerSay AR_kills: %arKill%

works fine ... anyone same issue?

 

Just annoying - not a drama.

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

Originally Posted by LjMjollnir*:

 

Any chance of having the option to enable and disable different rulz.txt files from within the procon ui.. i manage most of the addons for the server but a few of the admins would need to be able to quickly switch off certain rule sets as needed and it would be very nice to just be able to toggle a couple on an off as needed

 

so while the addition of the rules.txt list is great if we could have a few seperate ones with the ability to toggle them on and off (ingame would be even better)

 

so say i wanted to run Pistol/Knife for a few rounds it would be great to just type !enable pistolrule or some other command..

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

Originally Posted by lordicon*:

 

Any chance of having the option to enable and disable different rulz.txt files from within the procon ui.. i manage most of the addons for the server but a few of the admins would need to be able to quickly switch off certain rule sets as needed and it would be very nice to just be able to toggle a couple on an off as needed

 

so while the addition of the rules.txt list is great if we could have a few seperate ones with the ability to toggle them on and off (ingame would be even better)

 

so say i wanted to run Pistol/Knife for a few rounds it would be great to just type !enable pistolrule or some other command..

Would make it a bit better to organize the options instead of having just .txt files, I don't see why the .txt files can not be placed into their own dir then have the plugin scan that dir on load of the procon client so all the .txt files in that folder are added to the plugin as check mark boxs with the file name as the text beside it so you can decide which you want on or off.Really not a bad idea and you wont have to add the .txt filenames to the array anymore because it will always be there.

 

However enable and disable would be a whole new ball game, not sure how the plugin would be able to detect which .txt files to enable even with check boxs, it might end up enabling everything in that dir.

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

Originally Posted by LjMjollnir*:

 

Would make it a bit better to organize the options instead of having just .txt files, I don't see why the .txt files can not be placed into their own dir then have the plugin scan that dir on load of the procon client so all the .txt files in that folder are added to the plugin as check mark boxs with the file name as the text beside it so you can decide which you want on or off.Really not a bad idea and you wont have to add the .txt filenames to the array anymore because it will always be there.

 

However enable and disable would be a whole new ball game, not sure how the plugin would be able to detect which .txt files to enable even with check boxs, it might end up enabling everything in that dir.

I love that idea :ohmy:.. however for the other one i did think about that problem after i wrote that.. just something simple like enable rule1 rule 2 etc.. then using the rulez thing itself you could then make an easy to use alias for example

 

On Say;Admin;Text !Pistolrules; EnableRuleSet 2 #assuming the pistol.txt is in the number 2 slot for txt files :ohmy:

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

Originally Posted by kycu*:

 

ok i Ask again...

 

plugin is awesome but we have one problem, we put .txt files with plugin in the same folder but when we type command in chat bf4 ex. !rules, they dont show up like plugin don't see files inside directory.

 

we use procon layer on linux debian.

 

THANKS for answer!

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