Jump to content

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


ColColonCleaner

Recommended Posts

Originally Posted by QuadPrime*:

 

Hey, what you're aiming for requires the saving of Variables over roundend. e.g. %ini**%

 

#set limit here how many rounds to play until one Pistol round (in the SET)

On Join; if %server_Pistolrounds_cycle% = 0;

+set %server_Pistolrounds_cycle% 2

 

On Round; MapMode Conquest;

+Incr %ini_vars_rndnr%

##

On Round; MapMode Conquest;if %ini_vars_rndnr%

+set %server_pistolmode% 0

##

On Round; MapMode Conquest;if %ini_vars_rndnr% = %server_Pistolrounds_cycle%;

+set %server_pistolmode% 1

##

On Round; MapMode Conquest;if %ini_vars_rndnr% > %server_Pistolrounds_cycle%;

+set %server_pistolmode% 0

+set %ini_vars_rndnr% 0

##

On Spawn;PlayerFirst;if %server_pistolmode% = 1;

+PlayerYell Generic Pistol only message here!

##

# Checking Weapons (dlSHTR is the Phantom bow)

On Kill; if %server_pistolmode% = 1;

+Not Weapon Damagearea

+Not Weapon dlSHTR

+Not Weapon U_BallisticShield

+Not Weapon U_Defib

+Not Weapon U_PortableMedicpack

+Not Weapon U_Medkit

+Not Weapon SoldierCollision

+Not Weapon U_Repairtool

+Not Weapon Melee

+Not Damage Handgun

+Not Damage Explosive

+Not Damage ProjectileExplosive

+Not Weapon RoadKill

+Not Damage Suicide

 

+kill

+PlayerYell !!!WATCH YOUR ACTIONS!!! (Generic Kill message..)

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

Originally Posted by spatieman*:

 

i got a weard isue.

i made a teamkill tracker.

Code:

# Teamkill spammer
on join;If %ini_teamkill_dead[%p%]% >= 1;Set %ini_teamkill_dead[%p%]% 0
on round;If %ini_teamkill_dead[%p%]% >= 1;Set %ini_teamkill_dead[%p%]% 0
On teamkill; Incr %ini_teamkill_dead[%p%]%
If %ini_teamkill_dead[%p%]% >= 7;Set %ini_teamkill_dead[%p%]% 1;playersay teamkill counter resetted
If %ini_teamkill_dead[%p%]% == 1;yell 5 %p% teamkilled for the 1st time (1/5);playersay warning 1/5 dont kill teammates
If %ini_teamkill_dead[%p%]% == 2;yell 5 %p% teamkilled for the 2nd time (2/5);playersay warning 2/5 dont kill teammates
If %ini_teamkill_dead[%p%]% == 3;yell 5 %p% teamkilled for the 3th time (3/5);playersay warning 3/5 dont kill teammates,3 more and you get kicked
If %ini_teamkill_dead[%p%]% == 4;yell 5 %p% teamkilled for the 4th time (4/5);playersay warning 4/5 dont kill teammates,2 more and you get kicked
If %ini_teamkill_dead[%p%]% == 5;yell 5 %p% teamkilled for the last time,next = kick (5/5);playersay warning 5/5 dont kill teammates,1 more and you get kicked
If %ini_teamkill_dead[%p%]% == 6;yell 5 %p% got kicked for being so stupid to teamkill for 6 times;kick this is not a teamkill server
but for some reason the counter hits 7 instantly on teamkill.

what am i doing wrong here?

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

Originally Posted by BuRockK*:

 

i got a weard isue.

i made a teamkill tracker.

Code:

# Teamkill spammer
on join;If %ini_teamkill_dead[%p%]% >= 1;Set %ini_teamkill_dead[%p%]% 0
on round;If %ini_teamkill_dead[%p%]% >= 1;Set %ini_teamkill_dead[%p%]% 0
On teamkill; Incr %ini_teamkill_dead[%p%]%
If %ini_teamkill_dead[%p%]% >= 7;Set %ini_teamkill_dead[%p%]% 1;playersay teamkill counter resetted
If %ini_teamkill_dead[%p%]% == 1;yell 5 %p% teamkilled for the 1st time (1/5);playersay warning 1/5 dont kill teammates
If %ini_teamkill_dead[%p%]% == 2;yell 5 %p% teamkilled for the 2nd time (2/5);playersay warning 2/5 dont kill teammates
If %ini_teamkill_dead[%p%]% == 3;yell 5 %p% teamkilled for the 3th time (3/5);playersay warning 3/5 dont kill teammates,3 more and you get kicked
If %ini_teamkill_dead[%p%]% == 4;yell 5 %p% teamkilled for the 4th time (4/5);playersay warning 4/5 dont kill teammates,2 more and you get kicked
If %ini_teamkill_dead[%p%]% == 5;yell 5 %p% teamkilled for the last time,next = kick (5/5);playersay warning 5/5 dont kill teammates,1 more and you get kicked
If %ini_teamkill_dead[%p%]% == 6;yell 5 %p% got kicked for being so stupid to teamkill for 6 times;kick this is not a teamkill server
but for some reason the counter hits 7 instantly on teamkill.

what am i doing wrong here?

You can reset all the %ini_teamkill_dead% variables to 0 on a new round: On Round;set %ini_teamkill% 0
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by spatieman*:

 

nop, wasnt it.

after TK count = 7 again..

but after this.

On teamkill; Incr %ini_teamkill_dead[%p%]%

set to

On teamkill;

Incr %ini_teamkill_dead[%p%]%

 

worked

stupid, i should now it..

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

Originally Posted by BuRockK*:

 

nop, wasnt it.

after TK count = 7 again..

but after this.

On teamkill; Incr %ini_teamkill_dead[%p%]%

set to

On teamkill;

Incr %ini_teamkill_dead[%p%]%

 

worked

stupid, i should now it..

Glad its all good now. That probably worked because there was no ";" at the end of the first line of "On teamkill..."

 

Could have been:

 

On teamkill; Incr %ini_teamkill_dead[%p%]%;

If %ini_teamkill_dead[%p%]% >= 7;Set %ini_teamkill_dead[%p%]% 1;playersay teamkill counter resetted

If %ini_teamkill_dead[%p%]% == 1;yell 5 %p% teamkilled for the 1st time (1/5);playersay warning 1/5 dont kill teammates

...

...

...

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

Originally Posted by Kartoffel*:

 

Hey,

sorry for my bad Englisch.

 

I´m a admin in bf bc2.

 

I have my right only with one name. but i like my rights with new names. can procon rules read my ea guid and give me rights for other names ?

yes, can you give me the key ?

 

Thank´s

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

Originally Posted by BuRockK*:

 

Hey,

sorry for my bad Englisch.

 

I´m a admin in bf bc2.

 

I have my right only with one name. but i like my rights with new names. can procon rules read my ea guid and give me rights for other names ?

yes, can you give me the key ?

 

Thank´s

I dont know how bfbc2 works but proconrulz can know if a player is admin when that player triggers any rulz.

 

Example: On Say;Admin;Text !test;say test

 

If youre admin, and you type !test , proconrulz will write "test" in game because youre admin

 

But you must add your name to admin list in procon (not proconrulz)

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

Originally Posted by Kartoffel*:

 

I dont know how bfbc2 works but proconrulz can know if a player is admin when that player triggers any rulz.

 

Example: On Say;Admin;Text !test;say test

 

If youre admin, and you type !test , proconrulz will write "test" in game because youre admin

 

But you must add your name to admin list in procon (not proconrulz)

Yes i know. But i dont like to Write all the names of my member.

I like one rul to read the eugid and know this is a member and have Automatik Admin rights.

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

Originally Posted by BuRockK*:

 

Yes i know. But i dont like to Write all the names of my member.

I like one rul to read the eugid and know this is a member and have Automatik Admin rights.

You dont write names of the members to the code. But you do need to add the admin names to Procon's Admin List.

 

This code (on say;Admin;text !whatever; ...) , covers every admin in game.

 

EDIT: You cannot add admins in Battlefield by their EAUID or PBUID. Only by names.

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

Originally Posted by JackD_BR*:

 

HELLO friends

i tried create rule for to kick player hider ping.

i create that command however no success

On Kill;if %n% !ping -1;Log Ping;Say %p%'s ping is %ping% hide

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

Originally Posted by ty_ger07*:

 

HELLO friends

i tried create rule for to kick player hider ping.

i create that command however no success

On Kill;if %n% !ping -1;Log Ping;Say %p%'s ping is %ping% hide

On Kill;If %ping%

 

Note: not everyone owns or has control over the network they are connected through or has high security settings for other reasons. Kicking may be a little indiscriminate.

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

Originally Posted by Chilace*:

 

HELLO friends

i tried create rule for to kick player hider ping.

i create that command however no success

On Kill;if %n% !ping -1;Log Ping;Say %p%'s ping is %ping% hide

On Kill;If %ping%

 

Note: not everyone owns or has control over the network they are connected through or has high security settings for other reasons. Kicking may be a little indiscriminate.

Ping is not shown by some players until 2 minutes after they join.

It may be better to use this limit: myrcon.net/.../insane-limits-missing-ping-kicker

(I recommend for the beginning to set OnIntervalPlayers to 120)

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

Originally Posted by BuRockK*:

 

just a question:

which parameter should I fill out to set the time?

 

tks ty_ger07 and chilace

That depends on what trigger youre using in that plugin. But it is not hard to figure it out. For further help on Insane Limits please refer to the plugins own thread. Where we will gladly help you.

 

You cant do time interval triggers with ProconRulz..

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

Originally Posted by JackD_BR*:

 

Dears

More one question

On spawn player if M320 or xm25 in inventory this player is killed to remove this weapon

this code is correct?

 

On Spawn;Weapon M320;Kill ;PlayerYell %wk% NO M320 this Server

 

thanks in advanced

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

Originally Posted by BuRockK*:

 

Dears

More one question

On spawn player if M320 or xm25 in inventory this player is killed to remove this weapon

this code is correct?

 

On Spawn;Weapon M320;Kill ;PlayerYell %wk% NO M320 this Server

 

thanks in advanced

Yes but you can use %w%(weapon name) instead of %wk%(weapon key)
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by JackD_BR*:

 

Yes but you can use %w%(weapon name) instead of %wk%(weapon key)

my friend BuRockK

 

I change code however no working

 

On Spawn;Weapon M320;Kill ;PlayerYell %w% NO M320 this server

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

Originally Posted by Hodor*:

 

my friend BuRockK

 

I change code however no working

 

On Spawn;Weapon M320;Kill ;PlayerYell %w% NO M320 this server

Impossible to kill players on spawn because Procon Rulz doesnt check loadout/inventory of players.

Use this plugin for it: myrcon.net/.../on-spawn-loadout-enforcer-for-infantryvehicles-adkatslrt

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

Originally Posted by s1ngular1ty*:

 

Impossible to kill players on spawn because Procon Rulz doesnt check loadout/inventory of players.

Use this plugin for it: myrcon.net/.../on-spawn-loadout-enforcer-for-infantryvehicles-adkatslrt

The plugin Hodor recommended isn't free but does restrict on spawn. If you don't mind restricting when someone uses the weapon you can try my plugin which is free.

 

myrcon.net/.../simple-weapon-limiter-v1000

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

Originally Posted by BuRockK*:

 

my friend BuRockK

 

I change code however no working

 

On Spawn;Weapon M320;Kill ;PlayerYell %w% NO M320 this server

My bad, you can only limit how many players can use a specific weapon in server or a specific kit. Intended for limiting weapon usage in a round like "sniper/dmr limit" rule.

 

If you want to restrict on spawn, you have to use another plugin. AdKats is very effective with this but its not free, you can however use Insane Limits to make OnSpawn restictions if you know C# language. Other than that, you can retrict weapons in ProconRulz only OnKill. (takes action on "player" when a "victim" dies with a restricted weapon)

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

Originally Posted by MRniceGuy*:

 

Hello!

 

would someone help me to add some delay between messages please

for example the below code can be used for server rules or whatever we want by changing the command name it shows too fast you cant even read it in game

So i want to add some delay between each lines :smile:

Im not going to use it for rules but some other information when a player types

 

On Say;Text !rules

PlayerSay === ProconRulz is active. ===

PlayerSay === Teamwork is everything - go for the objective ===

PlayerSay === ProconRulz is active. ===

PlayerSay === Teamwork is everything - go for the objective ===

PlayerSay === ProconRulz is active. ===

PlayerSay === Teamwork is everything - go for the objective ===

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

Originally Posted by Chilace*:

 

Hello!

 

would someone help me to add some delay between messages please

for example the below code can be used for server rules or whatever we want by changing the command name it shows too fast you cant even read it in game

So i want to add some delay between each lines :smile:

Im not going to use it for rules but some other information when a player types

It's not possible with proconrulz. One of the other possible workarounds - Insane Limits + this limit:

myrcon.net/.../insane-limits-programmable-chat-yell-spambot-with-pauses

 

I read your post once again and maybe I misunderstood.

This topic can also be useful:

myrcon.net/.../insane-limits-timed-messaging-system-v20

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

Originally Posted by Dete96*:

 

Hi!

 

We had almost the same problem a few months ago. Back then I wasn't too familiar with IL so I found this small plugin:

 

myrcon.net/.../server-rules-on-request

 

It's intended for rules but you can change the keyword !rules to whatever you like. It's pretty easy to setup.

 

Greetings

Dete

 

 

Gesendet von iPhone mit Tapatalk

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

Originally Posted by MRniceGuy*:

 

It's not possible with proconrulz. One of the other possible workarounds - Insane Limits + this limit:

myrcon.net/.../insane-limits-programmable-chat-yell-spambot-with-pauses

 

I read your post once again and maybe I misunderstood.

This topic can also be useful:

myrcon.net/.../insane-limits-timed-messaging-system-v20

Hi!

 

We had almost the same problem a few months ago. Back then I wasn't too familiar with IL so I found this small plugin:

 

myrcon.net/.../server-rules-on-request

 

It's intended for rules but you can change the keyword !rules to whatever you like. It's pretty easy to setup.

 

Greetings

Dete

 

 

Gesendet von iPhone mit Tapatalk

Thanks guys :smile:

 

----------------------------

 

 

but i have one more question and hopefully you can help me out

 

 

after searching alot and finding some codes i have set this rules for bf4

 

On Kill

+ Incr %ini_collectedsouls_%p%%

+ Set %ini_collectedsouls_%p%% %ini_collectedsouls_%p%% + 5

On Say;Text !souls;PlayerSay You have %ini_collectedsouls_%p%% souls in your backpack!

 

 

On Say;Text !slap

+ If %ini_collectedsouls_%p%%

+ PlayerSay You are broke mister! You need atleast 5 souls for a "slap".

On Say;Text !slap

+ If %ini_collectedsouls_%p%% >= 5

+ TargetPlayer

+ If %p% != %t%

+ Say %p% slaps %t%..... blah bla blah...

Now this is just some fun commands i try to setup, as in the code you can see you will collect points on each kill then you need to have points to use a command named "!slap"

right now in the code above [ !slap player ] it works on every player names you type if you have points

i couldn't go further anymore and i want to improve it so !slap works ONLY on players which you kill basically %v% but i do not know how

 

any idea so it works on the victim you kill and not anyone else?

 

Thanks in advance

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

Originally Posted by BuRockK*:

 

Thanks guys :smile:

 

----------------------------

 

 

but i have one more question and hopefully you can help me out

 

 

after searching alot and finding some codes i have set this rules for bf4

 

 

 

Now this is just some fun commands i try to setup, as in the code you can see you will collect points on each kill then you need to have points to use a command named "!slap"

right now in the code above [ !slap player ] it works on every player names you type if you have points

i couldn't go further anymore and i want to improve it so !slap works ONLY on players which you kill basically %v% but i do not know how

 

any idea so it works on the victim you kill and not anyone else?

 

Thanks in advance

You need to save the victim of killer in an ini variable. so that "on text" code can check if that variable exist for that victim and so on.

 

Example:

 

On kill;set %ini_slapvictim_%v%% 1;set %ini_slapkiller_%v%% %p%

On say;Text !slap;

if %ini_slapvictim_%p%% != 0

Say %p% slaps %ini_slapkiller_%p%%

set %ini_slapvictim% 0

set %ini_slapkiller% 0

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

Originally Posted by MRniceGuy*:

 

Sorry this code shows Only the last the last player you kill and the last player who killed you [ !slap any name] :/

For example if I kill you, and then i type, !slap BuRockK

the message says

MrNice Slaps BuRockK

 

and then lets say if YOU killed me this time and again if I type !slap BuRockK

the message still says

MrNice Slaps BuRockK

------

 

 

Perhaps i explained wrong on other reply

what i want is simple

 

Lets say i have killed 3 players, named

Player A, B, C

the command should work like this

 

!slap Player A

Say I slap Player A...

or !slap Player C and B anytime because they are also my victims

 

but it should NOT work if i type !slap Player D, E,... etc) because i haven't killed them... YET haha xD

 

 

Right now in the above code whatever player name you type after !slap, it shows the last player name who killed you or you killed him

------

 

Something like saving players every victim in an array and then loop to find the name you triggered after !slap to see if it exists and then function

 

 

Thanks for replies btw

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