Jump to content

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


ColColonCleaner

Recommended Posts

Originally Posted by thunderje*:

 

hi guys

I want to forbid knifes on my server, would anyone have time to help me with the coding I would use in procon rulz to just do a warning then a admin kill if a person uses a knife,there is some maps we wish to try to forbid the knife

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

Originally Posted by Fonta*:

 

Can anyone tell me why this doesn't work in BF4 when a recon places a claymore?

Code:

On Kill;Weapon U_Claymore_Recon;PlayerCount 1
    Say [KILLED] %p% for using Claymores
    Kill 1
The one for support does work:

Code:

On Kill;Weapon U_Claymore
    Say [KILLED] %p% for using Claymores
    Kill 1
Hmmmm, might have found it.

It's the playercount probably.

 

But I do have another question.

When do you use a ; behind a line?

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

Originally Posted by LjMjollnir*:

 

Can anyone tell me why this doesn't work in BF4 when a recon places a claymore?

Code:

On Kill;Weapon U_Claymore_Recon;PlayerCount 1
    Say [KILLED] %p% for using Claymores
    Kill 1
When do you use a ; behind a line?
Code:
On kill;if %wk% contains "Claymore";Say [Killed] %p% for using Claymores;kill
will work for both Recon and Support Claymore in 1 rule.

 

Proconrulz isnt C++ or C# it never goes on the end of the line :ohmy: the ; is basically only used to continue a rule in most cases it stands for AND

, is used for OR in some things eg. On Kill;Weapon U_Claymore_Recon,U_Claymore;Say no clays;kill

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

Originally Posted by Fonta*:

 

Code:

On kill;if %wk% contains "Claymore";Say [Killed] %p% for using Claymores;kill
will work for both Recon and Support Claymore in 1 rule.

 

Proconrulz isnt C++ or C# it never goes on the end of the line :ohmy: the ; is basically only used to continue a rule in most cases it stands for AND

, is used for OR in some things eg. On Kill;Weapon U_Claymore_Recon,U_Claymore;Say no clays;kill

Thx!, I'll try that later.

 

Good to know about the ; :smile:

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

Originally Posted by Gambler*:

 

Hi, om New here and i have used alot of hours today to figure out if it is posible to Write a rule that only work on a special player?

 

I have tried to modify the knife kill message.

I want it to yell a message only when this special player got knifed.

 

Is it possible?

 

Gambler

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

Originally Posted by LjMjollnir*:

 

Hi, om New here and i have used alot of hours today to figure out if it is posible to Write a rule that only work on a special player?

 

I have tried to modify the knife kill message.

I want it to yell a message only when this special player got knifed.

 

Is it possible?

 

Gambler

Code:
On Kill;Damage Melee;if %v% contains "name of player";Say %p% knifed name of player.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by DER_M4DE*:

 

Hi, can someone help me and tell me if this Code is correct? (red)

 

# Phantomkill Anzeige written by DER_M4DE

On Kill;Weapon dlSHTR;If %server_km% == 0

Incr %ini_bow_kc%

If %ini_Bow_kc% >= 6;Set %ini_bow_kc% 0

If %ini_Bow_kc% == 0;Say %p% trifft %v% voll mit dem Pfeil !!!

If %ini_Bow_kc% == 1;Say Wilhelm Tell "%p%" trifft nicht den Apfel, sondern %v% voll ins Gesicht !!!

If %ini_Bow_kc% == 2;Say %v% hat einen Querschlaeger von %p% ab bekommen !!!

If %ini_Bow_kc% == 3;Say %v% hat jetzt einen Pfeil von %p% im Kopf !!!

If %ini_Bow_kc% == 4;Say Volltreffer, %p% hat %v% einen Scheitel gezogen !!!

If %ini_Bow_kc% == 5;Say Bogen-Meister! gegen %p% schaut Robin Hood alt aus und %v% hats gemerkt !!!

On Kill;Weapon dlSHTR;Set %server_km% 0

thx and greetz

M4DE

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

Originally Posted by LjMjollnir*:

 

@DER_M4DE

 

Other then Incr %ini?bow_kc% using a lower case B where as all the others use the upper case B.. it looks fine.. fix that and it should work alright

 

also it appears you are setting a variable that isnt being used :ohmy: %server_km% unless its being modified outside of that piece of code it is doing nothing at the moment :ohmy:

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

Originally Posted by DER_M4DE*:

 

also it appears you are setting a variable that isnt being used*%server_km% unless its being modified outside of that piece of code it is doing nothing at the moment

Hi, i've unwritten the anouncement from this Code.

 

On Kill;Weapon Melee;If %server_km% == 0

Incr %ini_knife_kc%

If %ini_knife_kc% >= 7;Set %ini_knife_kc% 0

If %ini_knife_kc% == 0;Say *%p% hat %v% seinen Stachel in den Arsch gerammt!!!*

If %ini_knife_kc% == 1;Say *%p% meinte es %v% von hinten zu geben!!!*

If %ini_knife_kc% == 2;Say *%p% erteilte %v% eine Lektion - ANAL!!!*

If %ini_knife_kc% == 3;Say *DEINE NACHRICHT*

If %ini_knife_kc% == 4;Say *DEINE NACHRICHT2*

If %ini_knife_kc% == 5;Say *DEINE NACHRICHT3*

If %ini_knife_kc% == 6;Say *DEINE NACHRICHT4*

On Kill;Weapon Melee;Set %server_km% 0

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

Originally Posted by DDR*:

 

I'm setting up a BF4 thematic loadout server that changes allowed weapons weekly. Have some questions.

The default single weapon limiter reads as

Code:

On Kill;Weapon Siaga20k;PlayerCount 5;Log %p% banned for Saiga;Ban %p% Saiga shotgun use
On Kill;Weapon Siaga20k;PlayerCount 3;Log %p% kicked for Saiga;Kick %p% Saiga shotgun use
On Kill;Weapon Siaga20k;PlayerSay %p% no Saiga shotgun;Kill 100
How can I make that ban temporary and not permanent?

Also what are all the BF4 weapon names?

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

Originally Posted by LjMjollnir*:

 

I'm setting up a BF4 thematic loadout server that changes allowed weapons weekly. Have some questions.

The default single weapon limiter reads as

Code:

On Kill;Weapon Siaga20k;PlayerCount 5;Log %p% banned for Saiga;Ban %p% Saiga shotgun use
On Kill;Weapon Siaga20k;PlayerCount 3;Log %p% kicked for Saiga;Kick %p% Saiga shotgun use
On Kill;Weapon Siaga20k;PlayerSay %p% no Saiga shotgun;Kill 100
How can I make that ban temporary and not permanent?

Also what are all the BF4 weapon names?

Either use

 

TempBan [time] [reason] (which some people have said desnt work correctly)..

 

or use

Exec banList.add player %p% [time] [reason]

 

you need to change the [time] [reason] bits :ohmy: heres from the server Docs.

banList.add reason>Add player/IP/GUID to ban list for a certain amount of time

 

i believe timeout is in seconds :ohmy:

 

and from Prconrulz docs

TempBan []

 

The weapon names and codes can be found within Proconrulz..

Head tot he plugin or Parental layer control tab within Procon

then select Proconrulz and then Details.. the weapn codes and names are there just scroll down a bit

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

Originally Posted by DDR*:

 

Either use

 

TempBan [time] [reason] (which some people have said desnt work correctly)..

 

or use

Exec banList.add player %p% [time] [reason]

 

you need to change the [time] [reason] bits :ohmy: heres from the server Docs.

banList.add reason>Add player/IP/GUID to ban list for a certain amount of time

 

i believe timeout is in seconds :ohmy:

 

and from Prconrulz docs

TempBan []

 

The weapon names and codes can be found within Proconrulz..

Head tot he plugin or Parental layer control tab within Procon

then select Proconrulz and then Details.. the weapn codes and names are there just scroll down a bit

So tell me if I got this right:

Code:

On Kill;Weapon U_GalilACE52;PlayerCount 5;Log %p% temp banned for Ace 52;TempBan %p% [3600] Ace 52 use
On Kill;Weapon U_GalilACE52;PlayerCount 3;Log %p% kicked for Ace 52;Kick %p% Saiga shotgun use
On Kill;Weapon U_GalilACE52;PlayerSay %p% No ACE 52;Kill 100
Does that work?

Also the "id-type" and "id, timeout" arguments confuse me. What would I put in those spots?

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

Originally Posted by w262035635*:

 

HI,Guys

I am searching a plugin:

Player spawn after, check battlelog loadout.

If this weapon is limit, the player will be kill.

This is how to do?

everybody Can help me looking for the it plugin?

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

Originally Posted by LjMjollnir*:

 

So tell me if I got this right:

Code:

On Kill;Weapon U_GalilACE52;PlayerCount 5;Log %p% temp banned for Ace 52;TempBan %p% [3600] Ace 52 use
On Kill;Weapon U_GalilACE52;PlayerCount 3;Log %p% kicked for Ace 52;Kick %p% Saiga shotgun use
On Kill;Weapon U_GalilACE52;PlayerSay %p% No ACE 52;Kill 100
Does that work?

Also the "id-type" and "id, timeout" arguments confuse me. What would I put in those spots?

On Kill;Weapon U_GalilACE52;PlayerCount 5;Log %p% temp banned for Ace 52;TempBan 3600 Ace 52 use

 

you dont need the %p% for the TempBan (it uses %p% automatically unless you use TargetPlayer...) the time doesnt need to be in brackets either :ohmy:

 

also for the Exec version.. the id-type is either player IP or GUID ... then id is either the name of the player their IP or their GUID

timeout is the time in seconds :ohmy:

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

Originally Posted by LjMjollnir*:

 

HI,Guys

I am searching a plugin:

Player spawn after, check battlelog loadout.

If this weapon is limit, the player will be kill.

This is how to do?

everybody Can help me looking for the it plugin?

Proconrulz doesnt offer any option to read from Battlelog .. so it cannot be done with this plugin :ohmy:.. i hear ColColonCleaner member.php_...olColonCleaner* may have a plugin that does that however :ohmy:... my personal plugin doesnt do that yet.. but it might be something i looked into soonish
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by w262035635*:

 

Proconrulz doesnt offer any option to read from Battlelog .. so it cannot be done with this plugin :ohmy:.. i hear ColColonCleaner member.php_...olColonCleaner* may have a plugin that does that however :ohmy:... my personal plugin doesnt do that yet.. but it might be something i looked into soonish

So do you know the name of the plugin?
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by DDR*:

 

About this line:

Code:

On Kill;Not Damage SniperRifle;Not Damage Handgun;PlayerSay %p% snipers/pistols only;Kill 100
Is it possible to add as many "Not Damage Damagetype" and "Not Weapon Weaponkey" arguments as I want to a single line?
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by DER_M4DE*:

 

hey Guys, i`ve testet my Phantom Anouncement,

# Phantomkill Anzeige written by DER_M4DE

On Kill;Weapon dlSHTR;If %server_km% == 0

Incr %ini_bow_kc%

If %ini_bow_kc% >= 6;Set %ini_bow_kc% 0

If %ini_bow_kc% == 0;Say %p% trifft %v% voll mit dem Pfeil !!!

If %ini_bow_kc% == 1;Say Wilhelm Tell "%p%" trifft nicht den Apfel, sondern %v% voll ins Gesicht !!!

If %ini_bow_kc% == 2;Say %v% hat einen Querschlaeger von %p% ab bekommen !!!

If %ini_bow_kc% == 3;Say %v% hat jetzt einen Pfeil von %p% im Kopf !!!

If %ini_bow_kc% == 4;Say Volltreffer, %p% hat %v% einen Scheitel gezogen !!!

If %ini_bow_kc% == 5;Say Bogen-Meister! gegen %p% schaut Robin Hood alt aus und %v% hats gemerkt !!!

On Kill;Weapon dlSHTR;Set %server_km% 0

but it doesn`t work :sad: like this Knife Anouncement

 

On Kill;Weapon Melee;If %server_km% == 0

Incr %ini_knife_kc%

If %ini_knife_kc% >= 7;Set %ini_knife_kc% 0

If %ini_knife_kc% == 0;Say *%p% hat %v% seinen Stachel in den Arsch gerammt!!!*

If %ini_knife_kc% == 1;Say *%p% meinte es %v% von hinten zu geben!!!*

If %ini_knife_kc% == 2;Say *%p% erteilte %v% eine Lektion - ANAL!!!*

If %ini_knife_kc% == 3;Say *DEINE NACHRICHT*

If %ini_knife_kc% == 4;Say *DEINE NACHRICHT2*

If %ini_knife_kc% == 5;Say *DEINE NACHRICHT3*

If %ini_knife_kc% == 6;Say *DEINE NACHRICHT4*

On Kill;Weapon Melee;Set %server_km% 0

I think the red highlighted part is wrong , but I do not know how I need to change it because the Phantom has no Weaponcategory, like the red part in the knife anouncement.

 

Can someone Help me, please.

 

sry, for my bad englisch (translated by google)

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

Originally Posted by LjMjollnir*:

 

About this line:

Code:

On Kill;Not Damage SniperRifle;Not Damage Handgun;PlayerSay %p% snipers/pistols only;Kill 100
Is it possible to add as many "Not Damage Damagetype" and "Not Weapon Weaponkey" arguments as I want to a single line?
It has been awhile since ive used Proconrulz.. but you should be able to :ohmy:.. also you can do better

 

 

Code:

On Kill;Not Damage SniperRifle,Handgun;PlayerSay %p% snipers/pistols only;Kill 100
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by LjMjollnir*:

 

hey Guys, i`ve testet my Phantom Anouncement,

 

 

but it doesn`t work :sad: like this Knife Anouncement

 

 

 

I think the red highlighted part is wrong , but I do not know how I need to change it because the Phantom has no Weaponcategory, like the red part in the knife anouncement.

 

Can someone Help me, please.

 

sry, for my bad englisch (translated by google)

What error codes are you getting? you may need to update your BF4.def https://github.com/Myrcon/Procon-1/b...onfigs/BF4.def

 

if there is no error code check your Proconrulz.ini (its in the config folder in procon... ).. i suspect because at one point you used a Capital B in the Incr %ini_bow_kc% at one point Proconrulz has stuck with that.. and therefor not increasing the correct variable.. (ive had it happen to me a couple of times...)..

 

add the following line you your code as a test

Code:

On say;Text !test;say %ini_bow_kc% %ini_Bow_kc%
then after someone gets a bow kill type !test and see if the value changes :ohmy:
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by DER_M4DE*:

 

Hi, I have my code yesterday changed so that in the variable only a lower case B is present. (see last post) now, no more Capital B is present.

Can it be that the Vaiable is completely wrong? It should work so that continuously one after the other Killmessage appears after every kill. Not always the same.

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

Originally Posted by OmegaViper*:

 

After following the instructions I get this.

 

[00:19:11 65] ProconRulz: Skipping c:\games\68_232_167_83_17070\1039163\procon\Plugin s\BF4\On Kill;Not Damage SniperRifle;Not Damage Handgun;PlayerCount 5;Log %p_nned (snipers\ pistols only);Ban %p% snipers only NOT FOUND

[00:19:11 65] ProconRulz: Skipping c:\games\68_232_167_83_17070\1039163\procon\Plugin s\BF4\On Kill;Not Damage SniperRifle;Not Damage Handgun;PlayerCount 3;Log %p% kicked (snipers\ pistols only);Kick %p% snipers only NOT FOUND

[00:19:11 65] ProconRulz: Skipping c:\games\68_232_167_83_17070\1039163\procon\Plugin s\BF4\On Kill;Not Damage SniperRifle;Not Damage Handgun;PlayerSay %p% snipers\pistols only;Kill 100 NOT FOUND

 

It is not respecting the rules.

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

Originally Posted by LjMjollnir*:

 

After following the instructions I get this.

 

[00:19:11 65] ProconRulz: Skipping c:\games\68_232_167_83_17070\1039163\procon\Plugin s\BF4\On Kill;Not Damage SniperRifle;Not Damage Handgun;PlayerCount 5;Log %p_nned (snipers\ pistols only);Ban %p% snipers only NOT FOUND

[00:19:11 65] ProconRulz: Skipping c:\games\68_232_167_83_17070\1039163\procon\Plugin s\BF4\On Kill;Not Damage SniperRifle;Not Damage Handgun;PlayerCount 3;Log %p% kicked (snipers\ pistols only);Kick %p% snipers only NOT FOUND

[00:19:11 65] ProconRulz: Skipping c:\games\68_232_167_83_17070\1039163\procon\Plugin s\BF4\On Kill;Not Damage SniperRifle;Not Damage Handgun;PlayerSay %p% snipers\pistols only;Kill 100 NOT FOUND

 

It is not respecting the rules.

Looks like you have put the rules in the wrong section...

the .txt section is for .txt files not Rules themselves :ohmy:.. soy ou'd put all your rules in a .txt file put them in the plugins/bf4 folder and then put the file name in that section and it will load all the rules from the .txt file :ohmy:

 

there is another section for rules.. (has been ages since ive looked at Proconrulz).. but it believe its the one just above or just below that section you have put them in..

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

Originally Posted by LjMjollnir*:

 

Hi, I have my code yesterday changed so that in the variable only a lower case B is present. (see last post) now, no more Capital B is present.

Can it be that the Vaiable is completely wrong? It should work so that continuously one after the other Killmessage appears after every kill. Not always the same.

There is nothing wrong with the rules themselves from what i can see.. There is however a BUG with Proconrulz if you typed the variable wrong ONCE and it saved it is possible it is saving the variable incorrectly..

 

as per the reason i asked you to add

On say;Text !test;say %ini_bow_kc% %ini_Bow_kc%

 

and see what variable is being changed :ohmy:.. you may need to change them all to %ini_Bow_kc% :ohmy:

 

and Also is your BF4.DEF up to date _.. i need error codes if there are any

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

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