Jump to content

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


ColColonCleaner

Recommended Posts

Originally Posted by ColColonCleaner*:

 

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

I do have such a plugin.

 

showthread....vate-Extension*

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

Originally Posted by DER_M4DE*:

 

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

Hi, I've tested it and it works with the lower case b. %ini_bow_kc%, but only if I disable this code

#####PhantomAnnouncement Player

On Kill;Weapon dlSHTR

#If %p% == "DER_M4DE";Yell %v% hat jetzt einen Pfeil im Kopf!!! %p% macht einen auf Robin Hood !!!;Set %server_km% 1

is there a possibility that it works together?

with the knife anouncement that is not a problem!

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

Originally Posted by OmegaViper*:

 

Can I have this code

On Kill;Not Damage Handgun;PlayerCount 5;Log %p?nned (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

 

With with the Bow, too? Do I need to add a single weapon restriction? What would the code look like?

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

Originally Posted by DER_M4DE*:

 

Can I have this code

On Kill;Not Damage Handgun;PlayerCount 5;Log %p?nned (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

 

With with the Bow, too? Do I need to add a single weapon restriction? What would the code look like?

try this one

 

On Kill;Not Weapon dlSHTR;PlayerCount 5;Log %p% banned (Phantom Bow only);Ban %p% Phantom Bow only

On Kill;Not Weapon dlSHTR;PlayerCount 3;Log %p% kicked (Phantom Bow only);Kick %p% Phantom Bow only

On Kill;Not Weapon dlSHTR;PlayerSay %p% Phantom Bow only;Kill 100

 

greetz M4DE

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

Originally Posted by OmegaViper*:

 

try this one

 

On Kill;Not Weapon dlSHTR;PlayerCount 5;Log %p% banned (Phantom Bow only);Ban %p% Phantom Bow only

On Kill;Not Weapon dlSHTR;PlayerCount 3;Log %p% kicked (Phantom Bow only);Kick %p% Phantom Bow only

On Kill;Not Weapon dlSHTR;PlayerSay %p% Phantom Bow only;Kill 100

 

greetz M4DE

Both codes in use.

Pistol kill = bow only warning

Bow kill = Pistol only warning

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

Originally Posted by ty_ger07*:

 

Both codes in use.

Pistol kill = bow only warning

Bow kill = Pistol only warning

It looks like the code is working correctly.

 

But, is that not what you want? If you want something different, you should say so. You didn't say that you wanted a pistol AND bow server. You just said that you wanted a bow server using code similar to blah blah blah.

 

If you want to allow pistols AND bows, try this:

 

Code:

On Kill;Not Weapon dlSHTR;Not Damage Handgun;PlayerCount 5;Log %p% banned (pistol and bow only);Ban %p% pistol and bow only
On Kill;Not Weapon dlSHTR;Not Damage Handgun;PlayerCount 3;Log %p% kicked (pistol and bow only);Kick %p% pistol and bow only
On Kill;Not Weapon dlSHTR;Not Damage Handgun;PlayerSay %p% pistol and bow only;Kill 100
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by OmegaViper*:

 

It looks like the code is working correctly.

 

But, is that not what you want? If you want something different, you should say so. You didn't say that you wanted a pistol AND bow server. You just said that you wanted a bow server using code similar to blah blah blah.

 

If you want to allow pistols AND bows, try this:

 

Code:

On Kill;Not Weapon dlSHTR;Not Damage Handgun;PlayerCount 5;Log %p% banned (pistol and bow only);Ban %p% pistol and bow only
On Kill;Not Weapon dlSHTR;Not Damage Handgun;PlayerCount 3;Log %p% kicked (pistol and bow only);Kick %p% pistol and bow only
On Kill;Not Weapon dlSHTR;Not Damage Handgun;PlayerSay %p% pistol and bow only;Kill 100
This is the correct code and yes it works. I figured it out w/o help but thanks!

 

On Kill;Not Weapon dlSHTR;Not Damage Melee;Not Damage Handgun;PlayerCount 5;Log %p%banned (Phantom / Melee / Pistols only);Ban %p% Phantom / Melee / Pistols only

On Kill;Not Weapon dlSHTR;Not Damage Melee;Not Damage Handgun;PlayerCount 3;Log %p% kicked (Phantom / Melee / Pistols only);Kick %p% Phantom / Melee / Pistols only

On Kill;Not Weapon dlSHTR;Not Damage Melee;Not Damage Handgun;PlayerSay %p% Phantom / Melee / Pistols only;Kill 100

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

Originally Posted by DDR*:

 

So I need someone to check if this entire rule will work or not.

 

Code:

On Kill;Not Weapon U_Ultimax;U_RPK-74;U_SAR21;U_RPK12;U_Type95B;U_QBZ951;U_PP2000;U_QBB95;U_LSAT;U_G36C;U_SteyrAug;U_Type88;U_CBJ-MS;U_CZ805;U_AR160;U_UMP9;U_AK5C;U_Defib;U_Repairtool;Melee;PlayerCount 5;Log %p% temp banned for disallowed weapon;TempBan 7200 Type !rules for allowed weapons
On Kill;Not Weapon U_Ultimax;U_RPK-74;U_SAR21;U_RPK12;U_Type95B;U_QBZ951;U_PP2000;U_QBB95;U_LSAT;U_G36C;U_SteyrAug;U_Type88;U_CBJ-MS;U_CZ805;U_AR160;U_UMP9;U_AK5C;U_Defib;U_Repairtool;Melee;Log %p% kicked for disallowed weapon;Kick %p% Type !rules for allowed weapons
On Kill;Not Weapon U_Ultimax;U_RPK-74;U_SAR21;U_RPK12;U_Type95B;U_QBZ951;U_PP2000;U_QBB95;U_LSAT;U_G36C;U_SteyrAug;U_Type88;U_CBJ-MS;U_CZ805;U_AR160;U_UMP9;U_AK5C;U_Defib;U_Repairtool;Melee;PlayerSay %p% Type !rules for allowed weapons;Kill 100
The goal is to only allow the use of 700 RPM and below guns that deal 24 or below damage along with defibs, repair tools, and knives.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

So I need someone to check if this entire rule will work or not.

 

Code:

On Kill;Not Weapon U_Ultimax;U_RPK-74;U_SAR21;U_RPK12;U_Type95B;U_QBZ951;U_PP2000;U_QBB95;U_LSAT;U_G36C;U_SteyrAug;U_Type88;U_CBJ-MS;U_CZ805;U_AR160;U_UMP9;U_AK5C;U_Defib;U_Repairtool;Melee;PlayerCount 5;Log %p% temp banned for disallowed weapon;TempBan 7200 Type !rules for allowed weapons
On Kill;Not Weapon U_Ultimax;U_RPK-74;U_SAR21;U_RPK12;U_Type95B;U_QBZ951;U_PP2000;U_QBB95;U_LSAT;U_G36C;U_SteyrAug;U_Type88;U_CBJ-MS;U_CZ805;U_AR160;U_UMP9;U_AK5C;U_Defib;U_Repairtool;Melee;Log %p% kicked for disallowed weapon;Kick %p% Type !rules for allowed weapons
On Kill;Not Weapon U_Ultimax;U_RPK-74;U_SAR21;U_RPK12;U_Type95B;U_QBZ951;U_PP2000;U_QBB95;U_LSAT;U_G36C;U_SteyrAug;U_Type88;U_CBJ-MS;U_CZ805;U_AR160;U_UMP9;U_AK5C;U_Defib;U_Repairtool;Melee;PlayerSay %p% Type !rules for allowed weapons;Kill 100
The goal is to only allow the use of 700 RPM and below guns that deal 24 or below damage along with defibs, repair tools, and knives.
No, it will not work.

 

If you are combining multiple weapons, you need to use a comma between each weapon name, not a semicolon.

 

Example:

... Not Weapon U_Ultimax,U_RPK-74,U_SAR21,U_RPK12,...,Melee;

 

A comma means OR in a string of weapon or damage codes. A semicolon means AND between conditions or actions.

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

Originally Posted by DDR*:

 

No, it will not work.

 

If you are combining multiple weapons, you need to use a comma between each weapon name, not a semicolon.

 

Example:

... Not Weapon U_Ultimax,U_RPK-74,U_SAR21,U_RPK12,...,Melee;

 

A comma means OR in a string of weapon or damage codes. A semicolon means AND between conditions or actions.

Code:
On Kill;Not Weapon U_Ultimax,U_RPK-74,U_SAR21,U_RPK12,U_Type95B,U_QBZ951,U_PP2000,U_QBB95,U_LSAT,U_G36C,U_SteyrAug,U_Type88,U_CBJ-MS,U_CZ805,U_AR160,U_UMP9,U_AK5C,U_Defib,U_Repairtool,Melee;PlayerCount 5;Log %p% temp banned for disallowed weapon;TempBan 7200 Type !rules for allowed weapons
On Kill;Not Weapon U_Ultimax,U_RPK-74,U_SAR21,U_RPK12,U_Type95B,U_QBZ951,U_PP2000,U_QBB95,U_LSAT,U_G36C,U_SteyrAug,U_Type88,U_CBJ-MS,U_CZ805,U_AR160,U_UMP9,U_AK5C,U_Defib,U_Repairtool,Melee;Log %p% kicked for disallowed weapon;Kick %p% Type !rules for allowed weapons
On Kill;Not Weapon U_Ultimax,U_RPK-74,U_SAR21,U_RPK12,U_Type95B,U_QBZ951,U_PP2000,U_QBB95,U_LSAT,U_G36C,U_SteyrAug,U_Type88,U_CBJ-MS,U_CZ805,U_AR160,U_UMP9,U_AK5C,U_Defib,U_Repairtool,Melee;PlayerSay %p% Type !rules for allowed weapons;Kill 100
Is that better?
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by mimimimi*:

 

there is a simple way to have a variable empty? but not zero.

 

or a null function

 

 

Code:

On Say;Text !hello;TargetPlayer;Set %lastp% %p%;Set %lastt% %t%;Set %comment% %targettext%;Set %saidIP% 1
On Say;Text what_;If %voteIP% == 1;If %comment% == 0;PlayerSay %lastp% says hello %lastt% <no other said>;Set %voteIP% 0
On Say;Text what_;If %voteIP% == 1;If %comment% != 0;PlayerSay %lastp% says hello %lastt% <%comment%>;Set %voteIP% 0
the problem is in the

 

 

If %comment% == 0;

 

it is never zero but empy..... what i have to do?

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

Originally Posted by ty_ger07*:

 

there is a simple way to have a variable empty? but not zero.

 

or a null function

 

 

Code:

On Say;Text !hello;TargetPlayer;Set %lastp% %p%;Set %lastt% %t%;Set %comment% %targettext%;Set %saidIP% 1
On Say;Text what_;If %voteIP% == 1;If %comment% == 0;PlayerSay %lastp% says hello %lastt% <no other said>;Set %voteIP% 0
On Say;Text what_;If %voteIP% == 1;If %comment% != 0;PlayerSay %lastp% says hello %lastt% <%comment%>;Set %voteIP% 0
the problem is in the

 

 

If %comment% == 0;

 

it is never zero but empy..... what i have to do?

I don't understand what you are trying to do. Making recommendations is easier if your objective is known. I don't know what %voteIP% is, but according to your code, it is always 0 and therefore "If %voteIP% == 1" will never occur.

 

I believe that all variables are set to zero at the start of every round. I do not believe it is possible to have an empty or null variable with ProconRulz. As soon as the variable exists, its value is 0 by default.

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

Originally Posted by ty_ger07*:

 

Code:

On Kill;Not Weapon U_Ultimax,U_RPK-74,U_SAR21,U_RPK12,U_Type95B,U_QBZ951,U_PP2000,U_QBB95,U_LSAT,U_G36C,U_SteyrAug,U_Type88,U_CBJ-MS,U_CZ805,U_AR160,U_UMP9,U_AK5C,U_Defib,U_Repairtool,Melee;PlayerCount 5;Log %p% temp banned for disallowed weapon;TempBan 7200 Type !rules for allowed weapons
On Kill;Not Weapon U_Ultimax,U_RPK-74,U_SAR21,U_RPK12,U_Type95B,U_QBZ951,U_PP2000,U_QBB95,U_LSAT,U_G36C,U_SteyrAug,U_Type88,U_CBJ-MS,U_CZ805,U_AR160,U_UMP9,U_AK5C,U_Defib,U_Repairtool,Melee;Log %p% kicked for disallowed weapon;Kick %p% Type !rules for allowed weapons
On Kill;Not Weapon U_Ultimax,U_RPK-74,U_SAR21,U_RPK12,U_Type95B,U_QBZ951,U_PP2000,U_QBB95,U_LSAT,U_G36C,U_SteyrAug,U_Type88,U_CBJ-MS,U_CZ805,U_AR160,U_UMP9,U_AK5C,U_Defib,U_Repairtool,Melee;PlayerSay %p% Type !rules for allowed weapons;Kill 100
Is that better?
I don't know. Is it? I don't have a server to test with and haven't played the game for many months. It's all hypothetical from my end.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by mimimimi*:

 

I don't understand what you are trying to do. Making recommendations is easier if your objective is known. I don't know what %voteIP% is,

 

-#it is just a switch, to make the PlayerSay says hello, only one time.

 

 

but according to your code, it is always 0

 

-#no it is not.... it is 1 when someone types !hello "playername" and there is a player with that name

 

and therefore "If %voteIP% == 1" will never occur.

 

-#no i ve tested it

 

I believe that all variables are set to zero at the start of every round. I do not believe it is possible to have an empty or null variable with ProconRulz.

 

 

-#Set %comment% %targettext%, when there is no %targettext%, %comment% is null, not zero

 

-#so i dont know how to fork it, i want to add if there is no comment (%targettext%)

 

 

 

As soon as the variable exists, its value is 0 by default.

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

Originally Posted by ty_ger07*:

 

is possible to do

 

not contains?

 

i am using contains

 

but can i use

 

not contains

 

as well?

I don't know. Try it. Then you will have your answer. Either it will work, won't work and will give you an error message, or won't work and will give you no error message.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by mimimimi*:

 

Umm... What?

I don't understand what you are trying to do. Making recommendations is easier if your objective is known. I don't know what %voteIP% is,

 

-#it is just a switch, to make the PlayerSay says hello, only one time.

 

 

but according to your code, it is always 0

 

-#no it is not.... it is 1 when someone types !hello "playername" and there is a player with that name

 

and therefore "If %voteIP% == 1" will never occur.

 

-#no i ve tested it

 

I believe that all variables are set to zero at the start of every round. I do not believe it is possible to have an empty or null variable with ProconRulz.

 

 

-#Set %comment% %targettext%, when there is no %targettext%, %comment% is null, not zero

 

-#so i dont know how to fork it, i want to add if there is no comment (%targettext%)

 

 

 

As soon as the variable exists, its value is 0 by default.

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

Originally Posted by ty_ger07*:

 

but according to your code, it is always 0

 

-#no it is not.... it is 1 when someone types !hello "playername" and there is a player with that name

On Say;Text !hello;TargetPlayer;Set %lastp% %p%;Set %lastt% %t%;Set %comment% %targettext%;Set %saidIP% 1

On Say;Text what_;If %voteIP% == 1;If %comment% == 0;PlayerSay %lastp% says hello %lastt% ;Set %voteIP% 0

On Say;Text what_;If %voteIP% == 1;If %comment% != 0;PlayerSay %lastp% says hello %lastt% ;Set %voteIP% 0

Either there is more to your code which you haven't shared, or you are confused.

 

There is nothing there which will ever set %voteIP% to 1. %saidIP% is set to 1, but not %voteIP%. Can you please show me anywhere in the code above where it says "Set %voteIP% 1"?

 

 

 

Anyway...

Can you please explain what you are trying to do? Explain in this form: when player does X, server does Y. Your explanation was very vague. You said that you want to track how many times players say "hello", but then what? What is the purpose? Your code has errors and therefore I can't make assumptions or make sense of it until you explain exactly what the purpose is.

 

All I know is that you want to track how many times a player said "hello". So, that being the case, I would reply:

 

On Say;Text hello;Say Hello was said %c% times.

 

You can see that is not what you want. So what do you want?

 

 

Try this:

Code:

On Say;Text !hello;TargetPlayer;Set %server_lasthelloperson% %p%;Set %server_lasthellotoperson% %t%;Set %server_lasthellotext% %targettext%;Set %server_hellowassaid% 1
On Say;Text what_;If %server_hellowassaid% == 0;PlayerSay Hello has not been said to anyone.
On Say;Text what_;If %server_hellowassaid% == 1;PlayerSay %server_lasthelloperson% says hello to %server_lasthellotoperson%. Text: <%server_lasthellotext%>
You need to use %server_...% variables due to variable scope. Otherwise, every player has their own version of the variable and no player can know what another player typed.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Unglaublich*:

 

How to disable grenades and explosives on Operation Metro in Battlefield 4? The code example don't works.

I want that by the first and second kill with explosives the player gets killed with a warning in the Chat or as yell message (for all_). And the 3th kill with explosive this player should get kick with a message / reason.

 

Is that possible to realise with ProconRulz?

Please help me, thank you!

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

Originally Posted by trans-am*:

 

How to disable grenades and explosives on Operation Metro in Battlefield 4? The code example don't works.

I want that by the first and second kill with explosives the player gets killed with a warning in the Chat or as yell message (for all_). And the 3th kill with explosive this player should get kick with a message / reason.

 

Is that possible to realise with ProconRulz?

Please help me, thank you!

Code:
# INFORMATION ON FIRST SPAWN
On Spawn;Map XP0_Metro;PlayerFirst;PlayerSay ::: METRO 2014::: EXPLOSIVES ARE NOT ALLOWED !!!;PlayerSay ::: METRO 2014::: EXPLOSIVES ARE NOT ALLOWED!!!;PlayerSay ::: METRO 2014::: EXPLOSIVES ARE NOT ALLOWED!!!;PlayerYell ::: METRO 2014::: EXPLOSIVES ARE NOT ALLOWED!!!

# KILL AND KICK RULES
On Kill;Map XP0_Metro;Not Weapon U_Flashbang;Damage Explosive,ProjectileExplosive;PlayerCount 2;Log %p% was KICKED for using a %w%;Say KICKED: %p% for using a %w%;Kick %p%, No Explosives on Metro 2014! You used a %w%.
On Kill;Map XP0_Metro;Not Weapon U_Flashbang;Damage Explosive,ProjectileExplosive;PlayerCount 1;Log %p% has %c%/2 offenses (%w%);Set %warnyell% 2;Say WARNING: %p%, warning %c%/2 for using a %w%;PlayerSay WARNING: %p%, warning %c%/2 for using a %w%;Kill 100
On Kill;Map XP0_Metro;Not Weapon U_Flashbang;Damage Explosive,ProjectileExplosive;Log %p% has %c%/2 offenses (%w%);Set %warnyell% 1;Say WARNING: %p%, warning %c%/2 for using a %w%;PlayerSay WARNING: %p%, warning %c%/2 for using a %w%;Kill 100

# WARNING YELL ON SPAWN
On Spawn;Map XP0_Metro;If %warnyell% == 2;Log METRO 2014 warning yell 2/2 given to %p%;PlayerYell %p%, you've 2/2 offenses! NEXT WILL BE A KICK;PlayerSay %p%, you've 2/2 offenses! NEXT WILL BE A KICK;Set %warnyell% 0
On Spawn;Map XP0_Metro;If %warnyell% == 1;Log METRO 2014 warning yell 1/2 given to %p%;PlayerYell %p%, you've 1/2 offenses! No explosives!;PlayerSay %p%, you've 1/2 offenses! No explosives!;Set %warnyell% 0
If you wanna include Flash-bang, remove the code in red.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by mimimimi*:

 

Either there is more to your code which you haven't shared, or you are confused.

 

There is nothing there which will ever set %voteIP% to 1. %saidIP% is set to 1, but not %voteIP%. Can you please show me anywhere in the code above where it says "Set %voteIP% 1"?

 

 

 

Anyway...

Can you please explain what you are trying to do? Explain in this form: when player does X, server does Y. Your explanation was very vague. You said that you want to track how many times players say "hello", but then what? What is the purpose? Your code has errors and therefore I can't make assumptions or make sense of it until you explain exactly what the purpose is.

 

All I know is that you want to track how many times a player said "hello". So, that being the case, I would reply:

 

On Say;Text hello;Say Hello was said %c% times.

 

You can see that is not what you want. So what do you want?

 

 

Try this:

Code:

On Say;Text !hello;TargetPlayer;Set %server_lasthelloperson% %p%;Set %server_lasthellotoperson% %t%;Set %server_lasthellotext% %targettext%;Set %server_hellowassaid% 1
On Say;Text what_;If %server_hellowassaid% == 0;PlayerSay Hello has not been said to anyone.
On Say;Text what_;If %server_hellowassaid% == 1;PlayerSay %server_lasthelloperson% says hello to %server_lasthellotoperson%. Text: <%server_lasthellotext%>
You need to use %server_...% variables due to variable scope. Otherwise, every player has their own version of the variable and no player can know what another player typed.
thank you for your answer

 

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 %server_comment% == 0;Say %server_lastp% > !ban > %server_lastt% <no reason stated>;Set %server_voteIP% 0
On Say;Text who;If %server_voteIP% == 1;If %server_comment% != 0;Say %server_lastp% > !ban > %server_lastt% <%server_comment%>;Set %server_voteIP% 0
when x start a voteban to y, if z or a,g,etc type who in the chat, chat should answer with the last voteban

 

 

the problem is that %server_comment% is never 0, it is %targettext% OR if there is no %targettext% is null, really strange

 

 

 

if i can fix this, the next step would be, if x y z a,g etc start a voteban, if 180 seconds are passed from the previosu voteban, then set ect ect

 

all of this is because most of the time you do not know who is been votekicked or votebanned, so if some types a common trigger word, it tells you what is going on

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

Originally Posted by DER_M4DE*:

 

Hi trans_am,

 

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

any idea what is wrong?

 

# 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.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by mimimimi*:

 

you should you comma instead of semicolon, i think

 

 

Code:

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.
you are going to ban player forever___?
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by DER_M4DE*:

 

you should you comma instead of semicolon, i think

 

 

Code:

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.
Thx i will test it!

 

you are going to ban player forever___?
No, we ban only for a few days
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

the problem is that %server_comment% is never 0, it is %targettext% OR if there is no %targettext% is null, really strange

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.

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

Originally Posted by ty_ger07*:

 

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.

you should you comma instead of semicolon, i think

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

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