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.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

Please review our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.