Jump to content

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


ColColonCleaner

Recommended Posts

Originally Posted by mimimimi*:

 

Oh, yes, you are right. I forgot that you are setting %server_comment% to the value of %targettext%. Yes, %targettext% is null in some cases and that is why %server_comment% is null.

 

Instead of saying "If %server_comment% == 0", you could try "If %server_comment%". I believe in that boolean test, that null is false and any value other than 0 or null is true. At least in C# it would work. Try it, it might work depending on how ProconRulz translates it.

 

In other words:

Code:

On Say;Text !ban;TargetPlayer;Set %server_lastp% %p%;Set %server_lastt% %t%;Set %server_comment% %targettext%;Set %server_voteIP% 1
On Say;Text who;If %server_voteIP% == 1;If Not %server_comment%;Say %server_lastp% > !ban > %server_lastt% <no reason stated>;Set %server_voteIP% 0
On Say;Text who;If %server_voteIP% == 1;If %server_comment%;Say %server_lastp% > !ban > %server_lastt% <%server_comment%>;Set %server_voteIP% 0
If ProconRulz translates it to C# correctly, it would effectively translate to this:

 

 

private string server_comment = null;

 

if(server_comment)

{

... continue as true ...

}

else

{

... continue as false ...

}

 

 

null is considered false. So, it is saying, if true, do true else do false.

 

 

But, if ProconRulz isn't programmed to translate that way, we will have to think of another approach.

 

 

Code:

On Say;Text who,reason;If %server_voteIP% == 1;If Not %server_comment%;
SKIPPING RULE: Bad "Bad If condition" clause in your rule ""
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

Code:

On Say;Text who,reason;If %server_voteIP% == 1;If Not %server_comment%;
SKIPPING RULE: Bad "Bad If condition" clause in your rule ""
That's too bad. I see that "If Not %server_comment%;" isn't working.

 

Does the next line with "If %server_comment%;" work? Or does it also say bad If condition?

 

Because, if "If %server_comment%;" works, you could add a tracking variable at the end of that line in order to effectively do a roundabout If Not on the next line.

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

Originally Posted by trans-am*:

 

Hi trans_am,

 

i rewritten your Code, but it doesn`t work :sad:

any idea what is wrong?

Code:

# INFORMATION ON FIRST SPAWN
On Spawn;Mapmode Domination0;PlayerFirst;PlayerSay ::: MODUS DOMINATION ::: KEINE RAKETEN und C4 !!!;PlayerSay ::: MODUS DOMINATION ::: KEINE RAKETEN und C4 !!!;PlayerSay ::: MODUS DOMINATION ::: KEINE RAKETEN und C4 !!;PlayerYell ::: MODUS DOMINATION ::: KEINE RAKETEN und C4 !!

# KILL AND KICK RULES
On Kill;Mapmode Domination0;Weapon U_RPG7;Weapon U_SMAW;Weapon U_C4;Weapon U_SRAW;Weapon U_NLAW;Weapon U_C4_Support;PlayerCount 2;Log %p% wurde gebannt wegen Benutzung von %w%;Say BANNED: %p% wegen Benutzung von %w%;Ban %p%, KEINE RAKETEN und C4 im Modus DOM! Du hast %w% benutzt.
On Kill;Mapmode Domination0;Weapon U_RPG7;Weapon U_SMAW;Weapon U_C4;Weapon U_SRAW;Weapon U_NLAW;Weapon U_C4;Weapon U_C4_Support;PlayerCount 1;Log %p% hat %c%/2 Verwarnung (%w%);Set %warnyell% 2;Say WARNUNG: %p%, Warnung %c%/2 wegen Benutzung von %w%;PlayerSay WARNUNG: %p%, Warnung %c%/2 wegen Benutzung von %w%;Kill 100
On Kill;Mapmode Domination0;Weapon U_RPG7;Weapon U_SMAW;Weapon U_C4;Weapon U_SRAW;Weapon U_NLAW;Weapon U_C4;Weapon U_C4_Support;Log %p% hat %c%/2 Verwarnungen (%w%);Set %warnyell% 1;Say WARNUNG: %p%, Warnung %c%/2 wegen Benutzung von %w%;PlayerSay WARNUNG: %p%, Warnung %c%/2 wegen Benutzung von %w%;Kill 100

# WARNING YELL ON SPAWN
On Spawn;Mapmode Domination0;If %warnyell% == 2;Log Domination warning yell 2/2 given to %p%;PlayerYell %p%, Du hast 2/2 Verwarnungen! Gleich gibts einen perm. Bann;PlayerSay %p%, Du hast 2/2 Verwarnungen! Gleich gibts einen perm. Bann;Set %warnyell% 0
On Spawn;Mapmode Domination0;If %warnyell% == 1;Log Domination warning yell 1/2 given to %p%;PlayerYell %p%, Du hast 1/2 Verwarnungen! KEINE RAKETEN und C4 im Modus DOM!;PlayerSay %p%, Du hast 1/2 Verwarnungen! KEINE RAKETEN und C4 im Modus DOM!;Set %warnyell% 0
Redline is working without problems.
Try this:

Code:

# INFORMATION ON FIRST SPAWN
On Spawn;Mapmode Domination0;PlayerFirst;PlayerSay ::: MODUS DOMINATION ::: KEINE RAKETEN und C4 !!!;PlayerSay ::: MODUS DOMINATION ::: KEINE RAKETEN und C4 !!!;PlayerSay ::: MODUS DOMINATION ::: KEINE RAKETEN und C4 !!;PlayerYell ::: MODUS DOMINATION ::: KEINE RAKETEN und C4 !!

# KILL AND KICK RULES
On Kill;Mapmode Domination0;Weapon U_RPG7,U_SMAW,U_C4,U_SRAW,U_NLAW,U_C4_Support;PlayerCount 2;Log %p% wurde gebannt wegen Benutzung von %w%;Say BANNED: %p% wegen Benutzung von %w%;Ban %p%, KEINE RAKETEN und C4 im Modus DOM! Du hast %w% benutzt.
On Kill;Mapmode Domination0;Weapon U_RPG7,U_SMAW,U_C4,U_SRAW,U_NLAW,U_C4,U_C4_Support;PlayerCount 1;Log %p% hat %c%/2 Verwarnung (%w%);Set %warnyell% 2;Say WARNUNG: %p%, Warnung %c%/2 wegen Benutzung von %w%;PlayerSay WARNUNG: %p%, Warnung %c%/2 wegen Benutzung von %w%;Kill 100
On Kill;Mapmode Domination0;Weapon U_RPG7,U_SMAW,U_C4,U_SRAW,U_NLAW,U_C4,U_C4_Support;Log %p% hat %c%/2 Verwarnungen (%w%);Set %warnyell% 1;Say WARNUNG: %p%, Warnung %c%/2 wegen Benutzung von %w%;PlayerSay WARNUNG: %p%, Warnung %c%/2 wegen Benutzung von %w%;Kill 100

# WARNING YELL ON SPAWN
On Spawn;Mapmode Domination0;If %warnyell% == 2;Log Domination warning yell 2/2 given to %p%;PlayerYell %p%, Du hast 2/2 Verwarnungen! Gleich gibts einen perm. Bann;PlayerSay %p%, Du hast 2/2 Verwarnungen! Gleich gibts einen perm. Bann;Set %warnyell% 0
On Spawn;Mapmode Domination0;If %warnyell% == 1;Log Domination warning yell 1/2 given to %p%;PlayerYell %p%, Du hast 1/2 Verwarnungen! KEINE RAKETEN und C4 im Modus DOM!;PlayerSay %p%, Du hast 1/2 Verwarnungen! KEINE RAKETEN und C4 im Modus DOM!;Set %warnyell% 0
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by LjMjollnir*:

 

That's too bad. I see that "If Not %server_comment%;" isn't working.

 

Does the next line with "If %server_comment%;" work? Or does it also say bad If condition?

 

Because, if "If %server_comment%;" works, you could add a tracking variable at the end of that line in order to effectively do a roundabout If Not on the next line.

because NOT should be the first part of a comparator :ohmy:

 

Code:

On Say;Text who,reason;If %server_voteIP% == 1;Not If %server_comment% -IS SOMETHING MISSING HERE!!!-
the other problem.. i have highlighted in Red.. you are missing half of the test.. If %server_comment% = what? Proconrulz doesnt work with Bools like that in rules.. so you need to compare it to something...
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

because NOT should be the first part of a comparator :ohmy:

Oh, duh!

Code:

On Say;Text who,reason;If %server_voteIP% == 1;Not If %server_comment% -IS SOMETHING MISSING HERE!!!-
the other problem.. i have highlighted in Red.. you are missing half of the test.. If %server_comment% = what? Proconrulz doesnt work with Bools like that in rules.. so you need to compare it to something...
That was what I wanted him to test. C# is perfectly happy testing a variable as true or false based on the value of the variable alone with no additional operators. I wanted to see if ProconRulz shared the same behavior.

 

This is the logic (which C# would agree is correct):

1) variable is set to null

2) null is considered false

3) if(variable) is tested

4) if(variable) is considered false

5) In ProconRulz, "Not If variable" should equal true ("not false" or "inverted false") if the variable is null (if ProconRulz supports this properly)

 

He wants to test for a null variable. Do you have a better idea how to use ProconRulz to determine if a variable is null? His target text variable is being nulled out by the targetplayer function when the target player is specified with no additional target text. He wants to know that there is no target text ahead of time by testing whether or not the variable is null.

 

 

Originally, I advised that he pay no attention to whether or not it was null and try to display it anyways. Displaying the null variable in the string is no problem other than just having a blank area.

 

This would be the output of my earlier recommendation if the text is null:

PlayerX says hello to PlayerY. Text:

 

^^ The text between and > is missing because it is null.

Apparently, he is not happy with displaying that ugly output.

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

Originally Posted by mimimimi*:

 

That's too bad. I see that "If Not %server_comment%;" isn't working.

 

Does the next line with "If %server_comment%;" work? Or does it also say bad If condition?

 

Because, if "If %server_comment%;" works, you could add a tracking variable at the end of that line in order to effectively do a roundabout If Not on the next line.

yes it says skipping rule bad bad if condition
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by LjMjollnir*:

 

Oh, duh!

 

That was what I wanted him to test. C# is perfectly happy testing a variable as true or false based on the value of the variable alone with no additional operators. I wanted to see if ProconRulz shared the same behavior.

.

Fair enough :ohmy:.. the only way i found to compare against null in this case would be

Code:

On Say;Text who,reason;If %server_voteIP% == 1;Not If %server_comment% == ""
i seem to remember that working :ohmy: or i atleast tried it once.. cant remember been sooo long
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by mimimimi*:

 

Fair enough :ohmy:.. the only way i found to compare against null in this case would be

Code:

On Say;Text who,reason;If %server_voteIP% == 1;Not If %server_comment% == ""
i seem to remember that working :ohmy: or i atleast tried it once.. cant remember been sooo long
ok bingo!!!

 

if a var is null, using this is perfect!!

 

 

 

Code:

If %server_comment% != ""
If %server_comment% == ""
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by DER_M4DE*:

 

Correct. The way he typed it using semi colon, it is saying:

"If the weapon is U_RPG7 AND the weapon is U_SMAW AND the weapon is U_C4 AND ..."

 

Obviously, you can't kill with every weapon at once and that's why it doesn't work.

 

He needs to use commas the way you showed so that it does weapon U_RPG7 OR weapon U_SMAW OR ...

Hi Guys,

thx for Help. Now it works great!!! :smile:

at last but not leaset Thx for help, too. trans_am :smile:

 

I wish you all a merry christmas

greetz M4DE

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

Originally Posted by trans-am*:

 

@DER_M4DE:

Code:

Say BANNED: %p% wegen Benutzung von %w%;Ban %p%, KEINE RAKETEN und C4 im Modus DOM! Du hast %w% benutzt.
This rule will Permanent Ban that player

How long do you intend to ban that player?

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

Originally Posted by DER_M4DE*:

 

@DER_M4DE:

Code:

Say BANNED: %p% wegen Benutzung von %w%;Ban %p%, KEINE RAKETEN und C4 im Modus DOM! Du hast %w% benutzt.
This rule will Permanent Ban that player

How long do you intend to ban that player?

only for a few days.

TB much easier, after 2 warnings = kick, next restricted weapon kill,TB?

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

Originally Posted by trans-am*:

 

Code:

Say BANNED: %p% wegen Benutzung von %w%;Ban %p%, KEINE RAKETEN und C4 im Modus DOM! Du hast %w% benutzt.
Code:
Say BANNED: %p% wegen Benutzung von %w%;PBKick 2880  %p%, KEINE RAKETEN und C4 im Modus DOM! Du hast %w% benutzt
I Prefer PBkick as it is in mins.

Number in green is in mins, i've put TB 2 days

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

Originally Posted by DER_M4DE*:

 

Code:

Say BANNED: %p% wegen Benutzung von %w%;Ban %p%, KEINE RAKETEN und C4 im Modus DOM! Du hast %w% benutzt.
Code:
Say BANNED: %p% wegen Benutzung von %w%;PBKick 2880  %p%, KEINE RAKETEN und C4 im Modus DOM! Du hast %w% benutzt
I Prefer PBkick as it is in mins.

Number in green is in mins, i've put TB 2 days

thx for help, i'll change it. :-)
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

i have to Say %var1% %varx1%%, %var2% %varx2%%

 

to have to display this

 

nick 30%, mike 45%

 

as you can see its impossible, i am scratching my head, what can i do_?

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

Originally Posted by comic1*:

 

Hi. I like what I have read on this plugin , but I am not sure or see if it will work for what our clan leader wants. On the map "Metro" for BF4 in conquest mode we want it so if you spawn on "A" you get " A" and " B " but can't go after "C" and vice versa. Is there a way with this plugin or any other, or can someone make one if needed , where if you do go after the forbidden fruit and start to capture it, you will be "killed!" Then after 2 or 3 times you get banned. thanks for the time

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

Originally Posted by 397Seth*:

 

Hello and merry christmas to everyone,

 

I am planing on using premium maps from now on. I do this with UMM in the evening.

My question is:

Is it possible to programm a rule that allows me to send yell messages on a certain time?

 

For example:

Premium maps start at 7 in the evening. I would like to post three yell messages: @6, 630 and 645.

 

Can I do that?

 

Happy Holidays

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

Originally Posted by mimimimi*:

 

just discovered that i cannot do reliable math !!!!

 

 

Code:

On Say;Text !doit;Set %x% 94148176-94148099;PlayerSay 94148176-94148099 = %x%
it gives me 80 !!!!

 

 

this is just an example, i cannot do some basic calculation why__?

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

Originally Posted by ty_ger07*:

 

just discovered that i cannot do reliable math !!!!

 

 

Code:

On Say;Text !doit;Set %x% 94148176-94148099;PlayerSay 94148176-94148099 = %x%
it gives me 80 !!!!

 

 

this is just an example, i cannot do some basic calculation why__?

First of all, the Proconrulz documentation shows a space before and after the mathematical operator. I don't know if that will make a difference, but it should be "94148176 - 94148099" instead of "94148176-94148099".

It might have something to do with floating point or number of digits. Is "176 - 99" just as wrong?

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

Originally Posted by mimimimi*:

 

First of all, the Proconrulz documentation shows a space before and after the mathematical operator. I don't know if that will make a difference, but it should be "94148176 - 94148099" instead of "94148176-94148099".

It might have something to do with floating point or number of digits. Is "176 - 99" just as wrong?

8176 - 8099

 

 

this work well

 

what i can do to avoid big number? i am using %seconds% as base for all my numbers

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

Originally Posted by comic1*:

 

Hi. I like what I have read on this plugin , but I am not sure or see if it will work for what our clan leader wants. On the map "Metro" for BF4 in conquest mode we want it so if you spawn on "A" you get " A" and " B " but can't go after "C" and vice versa. Is there a way with this plugin or any other, or can someone make one if needed , where if you do go after the forbidden fruit and start to capture it, you will be "killed!" Then after 2 or 3 times you get banned. thanks for the time

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

Originally Posted by ty_ger07*:

 

so any thoughts?

No, it is not possible. It is not possible to know if someone is capturing a flag let alone which flag they are capturing. All we know is that player X killed player Y with weapon Z. The only other information we know is that their score, ping, soldier rank, team, and squad information is updated about every 30 seconds. DICE's servers do not provide us with very much information over their rcon interface and only some things are possible.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by MUXA*:

 

Hello!

If i want to reduce snipers on spawn in proconrulz(for example, 2 snipers per team and if > then a person will be killed after the spawn, not after the kill with sniper rifle) what will be the code? Thanks for help

 

P.S. i need something easier than this myrcon.net/.../proconrulz-sniper-limiter-v27-by-tarreltje, without kill after damage, free sniper slote and so on.

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

Originally Posted by ty_ger07*:

 

Hello!

If i want to reduce snipers on spawn in proconrulz(for example, 2 snipers per team and if > then a person will be killed after the spawn, not after the kill with sniper rifle) what will be the code? Thanks for help

 

P.S. i need something easier than this myrcon.net/.../proconrulz-sniper-limiter-v27-by-tarreltje, without kill after damage, free sniper slote and so on.

Not possible in BF3 or BF4. Read the first post of this thread. We don't know what they spawn with. You have to use Tarreltje's workaround.
* 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.