Jump to content

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


ColColonCleaner

Recommended Posts

Originally Posted by Tunnleram*:

 

I'm having problems getting ProconRulz to work. I do the following:

 

1. Downloaded ProconRulz_43d1.zip

2. Extract ProconRulz.cs to \Plugins\BF3

3. Launch Procon

4. I don't see anything changed under plugins, no entry for ProconRulz

 

What should I expect? Am I doing something wrong?

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

Originally Posted by Mithralmir*:

 

Hello everybody,

I'm having a strange issue on a On spawn Rules. An acces violation is occuring sometimes (perhaps after a kick) on a on spawn rules:

 

[19:06:56 60] ProconRulz: System.ArgumentNullException: Value cannot be null.

Parameter name: key

at System.ThrowHelper.ThrowArgumentNullException(Exce ptionArgument argument)

at System.Collections.Generic.Dictionary`2.FindEntry( TKey key)

at PRoConEvents.ProconRulz.SpawnCounts.add(String item_mixed, String team_id, String player_name)

at PRoConEvents.ProconRulz.OnPlayerSpawned(String player_name, Inventory inv)

[19:42:57 65] ProconRulz: 106 rules loaded

 

My rules:

#/* SPAWN RULE, so we get info when BF3 gives it

# On Spawn;AdminSay [%pt%] %p% spawned with [%k%], [%w%]

#/* TEAMKILL RULZ

On TeamKill;Admin

On TeamKill;PlayerCount 2;AdminSay %p% SUICIDAL TEAMKILL #%c% on %v% with %w%;Kill 100

On TeamKill;AdminSay TEAMKILL #%c% by %p% on %v% with %w%

#/* SUICIDE LOG

On Suicide;AdminSay Suicide by [%pt%] [%p%] with [%wk%];PlayerSay %p% Do not suicide to fix your KDR. Let the other team kill you.

#/* SAMPLE KILL RULZ

On Kill;AdminSay Kill [%p%] killed [%v%] with [%wk%] [%w%]

#/* SAMPLE SAY RULZ

On Say;Text protected;Protected;Say [%p%] is protected

On Say;Text protected;Not Protected;Say [%p%] is NOT protected

On Say;Admin;Text xkill;TargetPlayer;Say Confirm %t%;TargetAction Say %t% killed by admin;TargetAction Kill 100

On Say;Admin;Text xkick;TargetPlayer;Say Confirm %t%;TargetAction Say %t% kicked by admin;TargetAction Kick Kicked by admin

On Say;Text xyes;TargetConfirm

#/* ROUND CHANGE

On Round;AdminSay Round change to [%m%] [%mm%]

#/* JOINER/LEAVER LOG

On Join;Admin;AdminSay Joiner [%p%] (min teamsize %n%) (admin)

On Join;Not Admin;AdminSay Joiner [%p%] (min teamsize %n%) (Not admin)

On Leave; AdminSay Leaver [%p%] (min teamsize %n%)

#/* PSS RULZ

On Spawn;Incr %spawns%;PlayerSay [%p%] %kills%:%spawns% k/s

On Kill;Incr %kills%;PlayerSay [%p%] %kills%:%spawns% k/s

On Kill;If %kills% = 10

AdminSay [%p%] KILLS 10 : NOW ONLY HANDGUN KNIVE OR GRENADE !!!

PlayerSay [%p%] KILLS 10 : NOW ONLY HANDGUN KNIVE OR GRENADE !!!

PlayerYell [%p%] KILLS 10 : NOW ONLY HANDGUN KNIVE OR GRENADE !!!

On Kill;If %kills% = 19

AdminSay [%p%] KILLS 19: ONLY ONE LAST KILL !!!

PlayerSay [%p%] KILLS 19: ONLY ONE LAST KILL !!!

PlayerYell [%p%] KILLS 19: ONLY ONE LAST KILL !!!

On Kill;If %kills% = 20

AdminSay [%p%] KILLS 20 : NO MORE KILL OR BE BANNED !!!

PlayerSay [%p%] KILLS 20 : NO MORE KILL OR BE BANNED !!!

PlayerYell [%p%] KILLS 20 : NO MORE KILL OR BE BANNED !!!

On Kill;If %kills% = 21;Incr %twt%;Kick %p% TOO MANY KILLS. MAXIMUM 20 (%twt%)

On Kill;If %kills% / %spawns% > 2;Incr %kdrwarn%

On Kill;If %kills% / %spawns% > 2

Set %kdr% %kills% / %spawns%

AdminSay [%p%] KDR TOO HIGH (>2). FIX IT NOW! %kills%:%spawns% k/s=> kdr : %kdr% (%kdrwarn%)

PlayerSay [%p%] KDR TOO HIGH (>2). FIX IT NOW! %kills%:%spawns% k/s=> kdr : %kdr% (%kdrwarn%)

PlayerYell [%p%] KDR TOO HIGH (>2). FIX IT NOW! %kills%:%spawns% k/s=> kdr : %kdr% (%kdrwarn%)!

#On Kill;If %kills% / %spawns% > 2;If %kdrwarn% > 2;Kick %p% KDR TOO HIGH MAX 2.0 yours: %kills%:%spawns% k/s(%kdrwarn%)

On Kill;Weapon 40mmsg

Incr %mmsg%

PlayerSay [%p%] 40MM IS FORBIDDEN LAST WARNING (%mmsg%)

AdminSay [%p%] 40MM IS FORBIDDEN LAST WARNING (%mmsg%)

PlayerYell [%p%] 40MM IS FORBIDDEN LAST WARNING (%mmsg%)

On Kill;Weapon 40mmsg;If %mmsg% > 1;Kick 40 MM IS FORBIDDEN (%mmsg%)

On Kill;Weapon 40mmgl

Incr %mmgl%

AdminSay [%p%] 40MM IS FORBIDDEN LAST WARNING (%mmgl%)

PlayerSay [%p%] 40MM IS FORBIDDEN LAST WARNING (%mmgl%)

PlayerYell [%p%] 40MM IS FORBIDDEN LAST WARNING (%mmgl%)

On Kill;Weapon 40mmgl;If %mmgl% > 1;Kick 40 MM IS FORBIDDEN (%mmgl%)

On Kill;Weapon 40mmsmk

Incr %mmsmk%

AdminSay [%p%] 40MM IS FORBIDDEN LAST WARNING (%mmsmk%)

PlayerSay [%p%] 40MM IS FORBIDDEN LAST WARNING (%mmsmk%)

PlayerYell [%p%] 40MM IS FORBIDDEN LAST WARNING (%mmsmk%)

On Kill;Weapon 40mmgl;If %mmsmk% > 1;Kick 40 MM IS FORBIDDEN (%mmsmk%)

On Kill;Weapon uav1#bomb

Incr

vb%

AdminSay [%p%] UAV IS FORBIDDEN LAST WARNING (

vb%)

PlayerSay [%p%] UAV IS FORBIDDEN LAST WARNING (

vb%)

PlayerYell [%p%] UAV IS FORBIDDEN LAST WARNING (

vb%)

On Kill;Weapon uav1#bomb;If

vb% > 1;Kick UAV IS FORBIDDEN (

vb%)

On Kill;Weapon uav1#mg

Incr

vm%

AdminSay [%p%] UAV IS FORBIDDEN LAST WARNING (

vm%)

PlayerSay [%p%] UAV IS FORBIDDEN LAST WARNING (

vm%)

PlayerYell [%p%] UAV IS FORBIDDEN LAST WARNING (

vm%)

On Kill;Weapon uav1#mg;If

vm% > 1;Kick UAV IS FORBIDDEN (

vm%)

On Kill;Weapon DTN-4

Incr %dtn%

AdminSay [%p%] USE C4 ONLY ON TANK (%dtn%)

PlayerSay USE C4 ONLY ON TANK (%dtn%)

PlayerYell USE C4 ONLY ON TANK (%dtn%)

#On Kill;Weapon DTN-4;If %dtn% > 1;Kick C4 IS FORBIDDEN (%dtn%)

On Kill;Weapon MRTR-5

Incr %mrtr%

AdminSay [%p%] MORTAR IS FORBIDDEN LAST WARNING (%mrtr%)

PlayerYell [%p%] MORTAR IS FORBIDDEN LAST WARNING (%mrtr%)

PlayerSay [%p%] MORTAR IS FORBIDDEN LAST WARNING (%mrtr%)

On Kill;Weapon MRTR-5;If %mrtr% > 1;Kick MORTAR IS FORBIDDEN (%mrtr%)

On Kill;Weapon M2CG

Incr %mcg%

AdminSay [%p%] USE RPG ONLY ON VEHICLES (%mcg%)

PlayerSay USE RPG ONLY ON VEHICLES (%mcg%)

PlayerYell USE RPG ONLY ON VEHICLES (%mcg%)

#On Kill;Weapon M2CG;If %mcg% > 1;Kick RPG IS FORBIDDEN (%mcg%)

On Kill;Weapon M136

Incr %m136%

AdminSay [%p%] USE RPG ONLY ON VEHICLES (%m136%)

PlayerSay USE RPG ONLY ON VEHICLES (%m136%)

PlayerYell USE RPG ONLY ON VEHICLES (%m136%)

#On Kill;Weapon M136;If %m136% > 1;Kick RPG IS FORBIDDEN (%m136%)

On Kill;Weapon RPG7

Incr %rpg7%

AdminSay [%p%] USE RPG ONLY ON VEHICLES (%rpg7%).

PlayerSay USE RPG ONLY ON VEHICLES (%rpg7%).

PlayerYell USE RPG ONLY ON VEHICLES (%rpg7%).

#On Kill;Weapon RPG7;If %rpg7% > 1;Kick RPG IS FORBIDDEN (%rpg7%)

On Kill;If %kills% > 11;Not Weapon knv-1;Not Weapon HG-2;Not Damage Handgun;Incr %hgn%;Kick %p% has been kicked for not using knive or handgun or grenade after 10 kills (%hgn%)

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

Originally Posted by tarreltje*:

 

Hello everybody,

I'm having a strange issue on a On spawn Rules. An acces violation is occuring sometimes (perhaps after a kick) on a on spawn rules:

 

[19:06:56 60] ProconRulz: System.ArgumentNullException: Value cannot be null.

Parameter name: key

at System.ThrowHelper.ThrowArgumentNullException(Exce ptionArgument argument)

at System.Collections.Generic.Dictionary`2.FindEntry( TKey key)

at PRoConEvents.ProconRulz.SpawnCounts.add(String item_mixed, String team_id, String player_name)

at PRoConEvents.ProconRulz.OnPlayerSpawned(String player_name, Inventory inv)

[19:42:57 65] ProconRulz: 106 rules loaded

 

My rules:

#/* SPAWN RULE, so we get info when BF3 gives it

# On Spawn;AdminSay [%pt%] %p% spawned with [%k%], [%w%]

#/* TEAMKILL RULZ

On TeamKill;Admin

On TeamKill;PlayerCount 2;AdminSay %p% SUICIDAL TEAMKILL #%c% on %v% with %w%;Kill 100

On TeamKill;AdminSay TEAMKILL #%c% by %p% on %v% with %w%

#/* SUICIDE LOG

On Suicide;AdminSay Suicide by [%pt%] [%p%] with [%wk%];PlayerSay %p% Do not suicide to fix your KDR. Let the other team kill you.

#/* SAMPLE KILL RULZ

On Kill;AdminSay Kill [%p%] killed [%v%] with [%wk%] [%w%]

#/* SAMPLE SAY RULZ

On Say;Text protected;Protected;Say [%p%] is protected

On Say;Text protected;Not Protected;Say [%p%] is NOT protected

On Say;Admin;Text xkill;TargetPlayer;Say Confirm %t%;TargetAction Say %t% killed by admin;TargetAction Kill 100

On Say;Admin;Text xkick;TargetPlayer;Say Confirm %t%;TargetAction Say %t% kicked by admin;TargetAction Kick Kicked by admin

On Say;Text xyes;TargetConfirm

#/* ROUND CHANGE

On Round;AdminSay Round change to [%m%] [%mm%]

#/* JOINER/LEAVER LOG

On Join;Admin;AdminSay Joiner [%p%] (min teamsize %n%) (admin)

On Join;Not Admin;AdminSay Joiner [%p%] (min teamsize %n%) (Not admin)

On Leave; AdminSay Leaver [%p%] (min teamsize %n%)

#/* PSS RULZ

On Spawn;Incr %spawns%;PlayerSay [%p%] %kills%:%spawns% k/s

On Kill;Incr %kills%;PlayerSay [%p%] %kills%:%spawns% k/s

On Kill;If %kills% = 10

AdminSay [%p%] KILLS 10 : NOW ONLY HANDGUN KNIVE OR GRENADE !!!

PlayerSay [%p%] KILLS 10 : NOW ONLY HANDGUN KNIVE OR GRENADE !!!

PlayerYell [%p%] KILLS 10 : NOW ONLY HANDGUN KNIVE OR GRENADE !!!

On Kill;If %kills% = 19

AdminSay [%p%] KILLS 19: ONLY ONE LAST KILL !!!

PlayerSay [%p%] KILLS 19: ONLY ONE LAST KILL !!!

PlayerYell [%p%] KILLS 19: ONLY ONE LAST KILL !!!

On Kill;If %kills% = 20

AdminSay [%p%] KILLS 20 : NO MORE KILL OR BE BANNED !!!

PlayerSay [%p%] KILLS 20 : NO MORE KILL OR BE BANNED !!!

PlayerYell [%p%] KILLS 20 : NO MORE KILL OR BE BANNED !!!

On Kill;If %kills% = 21;Incr %twt%;Kick %p% TOO MANY KILLS. MAXIMUM 20 (%twt%)

On Kill;If %kills% / %spawns% > 2;Incr %kdrwarn%

On Kill;If %kills% / %spawns% > 2

Set %kdr% %kills% / %spawns%

AdminSay [%p%] KDR TOO HIGH (>2). FIX IT NOW! %kills%:%spawns% k/s=> kdr : %kdr% (%kdrwarn%)

PlayerSay [%p%] KDR TOO HIGH (>2). FIX IT NOW! %kills%:%spawns% k/s=> kdr : %kdr% (%kdrwarn%)

PlayerYell [%p%] KDR TOO HIGH (>2). FIX IT NOW! %kills%:%spawns% k/s=> kdr : %kdr% (%kdrwarn%)!

#On Kill;If %kills% / %spawns% > 2;If %kdrwarn% > 2;Kick %p% KDR TOO HIGH MAX 2.0 yours: %kills%:%spawns% k/s(%kdrwarn%)

On Kill;Weapon 40mmsg

Incr %mmsg%

PlayerSay [%p%] 40MM IS FORBIDDEN LAST WARNING (%mmsg%)

AdminSay [%p%] 40MM IS FORBIDDEN LAST WARNING (%mmsg%)

PlayerYell [%p%] 40MM IS FORBIDDEN LAST WARNING (%mmsg%)

On Kill;Weapon 40mmsg;If %mmsg% > 1;Kick 40 MM IS FORBIDDEN (%mmsg%)

On Kill;Weapon 40mmgl

Incr %mmgl%

AdminSay [%p%] 40MM IS FORBIDDEN LAST WARNING (%mmgl%)

PlayerSay [%p%] 40MM IS FORBIDDEN LAST WARNING (%mmgl%)

PlayerYell [%p%] 40MM IS FORBIDDEN LAST WARNING (%mmgl%)

On Kill;Weapon 40mmgl;If %mmgl% > 1;Kick 40 MM IS FORBIDDEN (%mmgl%)

On Kill;Weapon 40mmsmk

Incr %mmsmk%

AdminSay [%p%] 40MM IS FORBIDDEN LAST WARNING (%mmsmk%)

PlayerSay [%p%] 40MM IS FORBIDDEN LAST WARNING (%mmsmk%)

PlayerYell [%p%] 40MM IS FORBIDDEN LAST WARNING (%mmsmk%)

On Kill;Weapon 40mmgl;If %mmsmk% > 1;Kick 40 MM IS FORBIDDEN (%mmsmk%)

On Kill;Weapon uav1#bomb

Incr

vb%

AdminSay [%p%] UAV IS FORBIDDEN LAST WARNING (

vb%)

PlayerSay [%p%] UAV IS FORBIDDEN LAST WARNING (

vb%)

PlayerYell [%p%] UAV IS FORBIDDEN LAST WARNING (

vb%)

On Kill;Weapon uav1#bomb;If

vb% > 1;Kick UAV IS FORBIDDEN (

vb%)

On Kill;Weapon uav1#mg

Incr

vm%

AdminSay [%p%] UAV IS FORBIDDEN LAST WARNING (

vm%)

PlayerSay [%p%] UAV IS FORBIDDEN LAST WARNING (

vm%)

PlayerYell [%p%] UAV IS FORBIDDEN LAST WARNING (

vm%)

On Kill;Weapon uav1#mg;If

vm% > 1;Kick UAV IS FORBIDDEN (

vm%)

On Kill;Weapon DTN-4

Incr %dtn%

AdminSay [%p%] USE C4 ONLY ON TANK (%dtn%)

PlayerSay USE C4 ONLY ON TANK (%dtn%)

PlayerYell USE C4 ONLY ON TANK (%dtn%)

#On Kill;Weapon DTN-4;If %dtn% > 1;Kick C4 IS FORBIDDEN (%dtn%)

On Kill;Weapon MRTR-5

Incr %mrtr%

AdminSay [%p%] MORTAR IS FORBIDDEN LAST WARNING (%mrtr%)

PlayerYell [%p%] MORTAR IS FORBIDDEN LAST WARNING (%mrtr%)

PlayerSay [%p%] MORTAR IS FORBIDDEN LAST WARNING (%mrtr%)

On Kill;Weapon MRTR-5;If %mrtr% > 1;Kick MORTAR IS FORBIDDEN (%mrtr%)

On Kill;Weapon M2CG

Incr %mcg%

AdminSay [%p%] USE RPG ONLY ON VEHICLES (%mcg%)

PlayerSay USE RPG ONLY ON VEHICLES (%mcg%)

PlayerYell USE RPG ONLY ON VEHICLES (%mcg%)

#On Kill;Weapon M2CG;If %mcg% > 1;Kick RPG IS FORBIDDEN (%mcg%)

On Kill;Weapon M136

Incr %m136%

AdminSay [%p%] USE RPG ONLY ON VEHICLES (%m136%)

PlayerSay USE RPG ONLY ON VEHICLES (%m136%)

PlayerYell USE RPG ONLY ON VEHICLES (%m136%)

#On Kill;Weapon M136;If %m136% > 1;Kick RPG IS FORBIDDEN (%m136%)

On Kill;Weapon RPG7

Incr %rpg7%

AdminSay [%p%] USE RPG ONLY ON VEHICLES (%rpg7%).

PlayerSay USE RPG ONLY ON VEHICLES (%rpg7%).

PlayerYell USE RPG ONLY ON VEHICLES (%rpg7%).

#On Kill;Weapon RPG7;If %rpg7% > 1;Kick RPG IS FORBIDDEN (%rpg7%)

On Kill;If %kills% > 11;Not Weapon knv-1;Not Weapon HG-2;Not Damage Handgun;Incr %hgn%;Kick %p% has been kicked for not using knive or handgun or grenade after 10 kills (%hgn%)

I never have sen such a mess in proconRulz :P, from a fast peak i already see something like this:

 

#On Kill;Weapon M136;If %m136% > 1;Kick RPG IS FORBIDDEN (%m136%), that should be without the #......

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

Originally Posted by tarreltje*:

 

Hello everybody,

I'm having a strange issue on a On spawn Rules. An acces violation is occuring sometimes (perhaps after a kick) on a on spawn rules:

 

[19:06:56 60] ProconRulz: System.ArgumentNullException: Value cannot be null.

Parameter name: key

at System.ThrowHelper.ThrowArgumentNullException(Exce ptionArgument argument)

at System.Collections.Generic.Dictionary`2.FindEntry( TKey key)

at PRoConEvents.ProconRulz.SpawnCounts.add(String item_mixed, String team_id, String player_name)

at PRoConEvents.ProconRulz.OnPlayerSpawned(String player_name, Inventory inv)

[19:42:57 65] ProconRulz: 106 rules loaded

 

My rules:

#/* SPAWN RULE, so we get info when BF3 gives it

# On Spawn;AdminSay [%pt%] %p% spawned with [%k%], [%w%]

#/* TEAMKILL RULZ

On TeamKill;Admin

On TeamKill;PlayerCount 2;AdminSay %p% SUICIDAL TEAMKILL #%c% on %v% with %w%;Kill 100

On TeamKill;AdminSay TEAMKILL #%c% by %p% on %v% with %w%

#/* SUICIDE LOG

On Suicide;AdminSay Suicide by [%pt%] [%p%] with [%wk%];PlayerSay %p% Do not suicide to fix your KDR. Let the other team kill you.

#/* SAMPLE KILL RULZ

On Kill;AdminSay Kill [%p%] killed [%v%] with [%wk%] [%w%]

#/* SAMPLE SAY RULZ

On Say;Text protected;Protected;Say [%p%] is protected

On Say;Text protected;Not Protected;Say [%p%] is NOT protected

On Say;Admin;Text xkill;TargetPlayer;Say Confirm %t%;TargetAction Say %t% killed by admin;TargetAction Kill 100

On Say;Admin;Text xkick;TargetPlayer;Say Confirm %t%;TargetAction Say %t% kicked by admin;TargetAction Kick Kicked by admin

On Say;Text xyes;TargetConfirm

#/* ROUND CHANGE

On Round;AdminSay Round change to [%m%] [%mm%]

#/* JOINER/LEAVER LOG

On Join;Admin;AdminSay Joiner [%p%] (min teamsize %n%) (admin)

On Join;Not Admin;AdminSay Joiner [%p%] (min teamsize %n%) (Not admin)

On Leave; AdminSay Leaver [%p%] (min teamsize %n%)

#/* PSS RULZ

On Spawn;Incr %spawns%;PlayerSay [%p%] %kills%:%spawns% k/s

On Kill;Incr %kills%;PlayerSay [%p%] %kills%:%spawns% k/s

On Kill;If %kills% = 10

AdminSay [%p%] KILLS 10 : NOW ONLY HANDGUN KNIVE OR GRENADE !!!

PlayerSay [%p%] KILLS 10 : NOW ONLY HANDGUN KNIVE OR GRENADE !!!

PlayerYell [%p%] KILLS 10 : NOW ONLY HANDGUN KNIVE OR GRENADE !!!

On Kill;If %kills% = 19

AdminSay [%p%] KILLS 19: ONLY ONE LAST KILL !!!

PlayerSay [%p%] KILLS 19: ONLY ONE LAST KILL !!!

PlayerYell [%p%] KILLS 19: ONLY ONE LAST KILL !!!

On Kill;If %kills% = 20

AdminSay [%p%] KILLS 20 : NO MORE KILL OR BE BANNED !!!

PlayerSay [%p%] KILLS 20 : NO MORE KILL OR BE BANNED !!!

PlayerYell [%p%] KILLS 20 : NO MORE KILL OR BE BANNED !!!

On Kill;If %kills% = 21;Incr %twt%;Kick %p% TOO MANY KILLS. MAXIMUM 20 (%twt%)

On Kill;If %kills% / %spawns% > 2;Incr %kdrwarn%

On Kill;If %kills% / %spawns% > 2

Set %kdr% %kills% / %spawns%

AdminSay [%p%] KDR TOO HIGH (>2). FIX IT NOW! %kills%:%spawns% k/s=> kdr : %kdr% (%kdrwarn%)

PlayerSay [%p%] KDR TOO HIGH (>2). FIX IT NOW! %kills%:%spawns% k/s=> kdr : %kdr% (%kdrwarn%)

PlayerYell [%p%] KDR TOO HIGH (>2). FIX IT NOW! %kills%:%spawns% k/s=> kdr : %kdr% (%kdrwarn%)!

#On Kill;If %kills% / %spawns% > 2;If %kdrwarn% > 2;Kick %p% KDR TOO HIGH MAX 2.0 yours: %kills%:%spawns% k/s(%kdrwarn%)

On Kill;Weapon 40mmsg

Incr %mmsg%

PlayerSay [%p%] 40MM IS FORBIDDEN LAST WARNING (%mmsg%)

AdminSay [%p%] 40MM IS FORBIDDEN LAST WARNING (%mmsg%)

PlayerYell [%p%] 40MM IS FORBIDDEN LAST WARNING (%mmsg%)

On Kill;Weapon 40mmsg;If %mmsg% > 1;Kick 40 MM IS FORBIDDEN (%mmsg%)

On Kill;Weapon 40mmgl

Incr %mmgl%

AdminSay [%p%] 40MM IS FORBIDDEN LAST WARNING (%mmgl%)

PlayerSay [%p%] 40MM IS FORBIDDEN LAST WARNING (%mmgl%)

PlayerYell [%p%] 40MM IS FORBIDDEN LAST WARNING (%mmgl%)

On Kill;Weapon 40mmgl;If %mmgl% > 1;Kick 40 MM IS FORBIDDEN (%mmgl%)

On Kill;Weapon 40mmsmk

Incr %mmsmk%

AdminSay [%p%] 40MM IS FORBIDDEN LAST WARNING (%mmsmk%)

PlayerSay [%p%] 40MM IS FORBIDDEN LAST WARNING (%mmsmk%)

PlayerYell [%p%] 40MM IS FORBIDDEN LAST WARNING (%mmsmk%)

On Kill;Weapon 40mmgl;If %mmsmk% > 1;Kick 40 MM IS FORBIDDEN (%mmsmk%)

On Kill;Weapon uav1#bomb

Incr

vb%

AdminSay [%p%] UAV IS FORBIDDEN LAST WARNING (

vb%)

PlayerSay [%p%] UAV IS FORBIDDEN LAST WARNING (

vb%)

PlayerYell [%p%] UAV IS FORBIDDEN LAST WARNING (

vb%)

On Kill;Weapon uav1#bomb;If

vb% > 1;Kick UAV IS FORBIDDEN (

vb%)

On Kill;Weapon uav1#mg

Incr

vm%

AdminSay [%p%] UAV IS FORBIDDEN LAST WARNING (

vm%)

PlayerSay [%p%] UAV IS FORBIDDEN LAST WARNING (

vm%)

PlayerYell [%p%] UAV IS FORBIDDEN LAST WARNING (

vm%)

On Kill;Weapon uav1#mg;If

vm% > 1;Kick UAV IS FORBIDDEN (

vm%)

On Kill;Weapon DTN-4

Incr %dtn%

AdminSay [%p%] USE C4 ONLY ON TANK (%dtn%)

PlayerSay USE C4 ONLY ON TANK (%dtn%)

PlayerYell USE C4 ONLY ON TANK (%dtn%)

#On Kill;Weapon DTN-4;If %dtn% > 1;Kick C4 IS FORBIDDEN (%dtn%)

On Kill;Weapon MRTR-5

Incr %mrtr%

AdminSay [%p%] MORTAR IS FORBIDDEN LAST WARNING (%mrtr%)

PlayerYell [%p%] MORTAR IS FORBIDDEN LAST WARNING (%mrtr%)

PlayerSay [%p%] MORTAR IS FORBIDDEN LAST WARNING (%mrtr%)

On Kill;Weapon MRTR-5;If %mrtr% > 1;Kick MORTAR IS FORBIDDEN (%mrtr%)

On Kill;Weapon M2CG

Incr %mcg%

AdminSay [%p%] USE RPG ONLY ON VEHICLES (%mcg%)

PlayerSay USE RPG ONLY ON VEHICLES (%mcg%)

PlayerYell USE RPG ONLY ON VEHICLES (%mcg%)

#On Kill;Weapon M2CG;If %mcg% > 1;Kick RPG IS FORBIDDEN (%mcg%)

On Kill;Weapon M136

Incr %m136%

AdminSay [%p%] USE RPG ONLY ON VEHICLES (%m136%)

PlayerSay USE RPG ONLY ON VEHICLES (%m136%)

PlayerYell USE RPG ONLY ON VEHICLES (%m136%)

#On Kill;Weapon M136;If %m136% > 1;Kick RPG IS FORBIDDEN (%m136%)

On Kill;Weapon RPG7

Incr %rpg7%

AdminSay [%p%] USE RPG ONLY ON VEHICLES (%rpg7%).

PlayerSay USE RPG ONLY ON VEHICLES (%rpg7%).

PlayerYell USE RPG ONLY ON VEHICLES (%rpg7%).

#On Kill;Weapon RPG7;If %rpg7% > 1;Kick RPG IS FORBIDDEN (%rpg7%)

On Kill;If %kills% > 11;Not Weapon knv-1;Not Weapon HG-2;Not Damage Handgun;Incr %hgn%;Kick %p% has been kicked for not using knive or handgun or grenade after 10 kills (%hgn%)

I never have sen such a mess in proconRulz :P, from a fast peak i already see something like this:

 

#On Kill;Weapon M136;If %m136% > 1;Kick RPG IS FORBIDDEN (%m136%), that should be without the #......

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

Originally Posted by bambam*:

 

Hello everybody,

I'm having a strange issue on a On spawn Rules. An acces violation is occuring sometimes (perhaps after a kick) on a on spawn rules:

 

[19:06:56 60] ProconRulz: System.ArgumentNullException: Value cannot be null.

Parameter name: key

at System.ThrowHelper.ThrowArgumentNullException(Exce ptionArgument argument)

at System.Collections.Generic.Dictionary`2.FindEntry( TKey key)

at PRoConEvents.ProconRulz.SpawnCounts.add(String item_mixed, String team_id, String player_name)

at PRoConEvents.ProconRulz.OnPlayerSpawned(String player_name, Inventory inv)

[19:42:57 65] ProconRulz: 106 rules loaded

 

My rules:

...

On Spawn;Incr %spawns%;PlayerSay [%p%] %kills%:%spawns% k/s

...

Have you narrowed the glitch down to this one rule?

 

What game are you using ProconRulz with?

 

Basic technique to fix would be to tweak the rule one condition at a time to see when the error comes/goes.

 

E.g.

On Spawn;Log DEBUG [%p%] spawned with %w% and %k%;Incr %spawns%;Log DEBUG [%p%] %kills%:%spawns% k/s

 

The other important debug step is turn event logging ON in Procon (in the console) and match up the actual game event (in the event log) that triggered the ProconRulz error. It's possible there's something unexpected in that game event (ProconRulz already works around many BF3 bugs, like occasional spawn events with Null playernames but maybe you've found a new issue).

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

Originally Posted by Mithralmir*:

 

Hi,

 

The exception is raised on a "On Spawn" event. I've suppressed all the other rule using "On spawn" so i'm nearly sure that it is on the line :

 

On Spawn;Incr %spawns%;PlayerSay [%p%] %kills%:%spawns% k/s

 

The error says :

 

12:55:12 19] ProconRulz: recoverable exception in OnPlayerSpawn

[12:55:12 19] ProconRulz: System.ArgumentNullException: Value cannot be null.

Parameter name: key

at System.ThrowHelper.ThrowArgumentNullException(Exce ptionArgument argument)

at System.Collections.Generic.Dictionary`2.FindEntry( TKey key)

at PRoConEvents.ProconRulz.SpawnCounts.add(String item_mixed, String team_id, String player_name)

at PRoConEvents.ProconRulz.OnPlayerSpawned(String player_name, Inventory inv)

 

The game is BC2. The rules with # have been commented because they are not used any more.

These rule is working fine at the beginning of the game but the exception occured after some times and not always. It seems that it occurs when a player have been kicked and is rejoigning the game.

I will try to Log to see if it is the "Incr" or the "PlayerSay" that cause the problem...

 

Thank you all of you for your help

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

Originally Posted by bambam*:

 

Hi,

 

The exception is raised on a "On Spawn" event. I've suppressed all the other rule using "On spawn" so i'm nearly sure that it is on the line :

 

On Spawn;Incr %spawns%;PlayerSay [%p%] %kills%:%spawns% k/s

 

The error says :

 

12:55:12 19] ProconRulz: recoverable exception in OnPlayerSpawn

[12:55:12 19] ProconRulz: System.ArgumentNullException: Value cannot be null.

Parameter name: key

at System.ThrowHelper.ThrowArgumentNullException(Exce ptionArgument argument)

at System.Collections.Generic.Dictionary`2.FindEntry( TKey key)

at PRoConEvents.ProconRulz.SpawnCounts.add(String item_mixed, String team_id, String player_name)

at PRoConEvents.ProconRulz.OnPlayerSpawned(String player_name, Inventory inv)

 

The game is BC2. The rules with # have been commented because they are not used any more.

These rule is working fine at the beginning of the game but the exception occured after some times and not always. It seems that it occurs when a player have been kicked and is rejoigning the game.

I will try to Log to see if it is the "Incr" or the "PlayerSay" that cause the problem...

 

Thank you all of you for your help

The game is BC2. hmmm interesting... this game actually sends the 'spawn' data (i.e. kit, weapons) that got spectacularly missed off the BF3 admin events. Three points:

 

1) Because ProconRulz is saying "Recoverable exception.." this means my plugin has spotted the error in the data, recovered from it by skipping the current rule for the current event, and has moved on. So at least the plugin continues to run fine and process further events unaffected. Note that the majority of other plugins remain silent on these exceptions so you never know.

 

2) This error is almost definitely caused by a badly formed "spawn" event packet from the BC2 game server for that particular event. E.g. BC2 (or BF3) can sometimes say "Player spawned" and most Procon plugins simply go WTF? and reset or something. In that particular case ProconRulz has code that detects that particular issue and deals with it. However, I think BC2 in THIS case is doing something else still a bit odd, e.g. "Player Doofus spawned with Kit Recon and Weapon " i.e. there's an error in the data and ProconRulz is trapping and reporting that error - note that in this example it should not be possible for a player to spawn with a weapon but hey, that doesn't stop BC2 from sometimes reporting bullshit data. If you can find the BC2 event data in the Procon EVENT LOG that matches up to the spawn event, we can see exactly what was in the spawn packet and know what to do. If I was to guess, the player's team id is Null (i.e. BC2 says the player is spawning but not on any team, which would be bullshit).

 

3) I've just looked at the exact piece of code in ProconRulz that handles the incoming spawn events and I'd be pretty confident it would be a quick fix to handle whatever this unexpected event is more gracefully, so I can do that if we get the data from the event log. But don't worry about the error message really - ProconRulz is already doing the only reasonable thing with that bad spawn data which is ignoring that rule for that event.

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

Originally Posted by bambam*:

 

Hi,

 

The exception is raised on a "On Spawn" event. I've suppressed all the other rule using "On spawn" so i'm nearly sure that it is on the line :

 

On Spawn;Incr %spawns%;PlayerSay [%p%] %kills%:%spawns% k/s

 

The error says :

 

12:55:12 19] ProconRulz: recoverable exception in OnPlayerSpawn

[12:55:12 19] ProconRulz: System.ArgumentNullException: Value cannot be null.

Parameter name: key

at System.ThrowHelper.ThrowArgumentNullException(Exce ptionArgument argument)

at System.Collections.Generic.Dictionary`2.FindEntry( TKey key)

at PRoConEvents.ProconRulz.SpawnCounts.add(String item_mixed, String team_id, String player_name)

at PRoConEvents.ProconRulz.OnPlayerSpawned(String player_name, Inventory inv)

 

The game is BC2. The rules with # have been commented because they are not used any more.

These rule is working fine at the beginning of the game but the exception occured after some times and not always. It seems that it occurs when a player have been kicked and is rejoigning the game.

I will try to Log to see if it is the "Incr" or the "PlayerSay" that cause the problem...

 

Thank you all of you for your help

The game is BC2. hmmm interesting... this game actually sends the 'spawn' data (i.e. kit, weapons) that got spectacularly missed off the BF3 admin events. Three points:

 

1) Because ProconRulz is saying "Recoverable exception.." this means my plugin has spotted the error in the data, recovered from it by skipping the current rule for the current event, and has moved on. So at least the plugin continues to run fine and process further events unaffected. Note that the majority of other plugins remain silent on these exceptions so you never know.

 

2) This error is almost definitely caused by a badly formed "spawn" event packet from the BC2 game server for that particular event. E.g. BC2 (or BF3) can sometimes say "Player spawned" and most Procon plugins simply go WTF? and reset or something. In that particular case ProconRulz has code that detects that particular issue and deals with it. However, I think BC2 in THIS case is doing something else still a bit odd, e.g. "Player Doofus spawned with Kit Recon and Weapon " i.e. there's an error in the data and ProconRulz is trapping and reporting that error - note that in this example it should not be possible for a player to spawn with a weapon but hey, that doesn't stop BC2 from sometimes reporting bullshit data. If you can find the BC2 event data in the Procon EVENT LOG that matches up to the spawn event, we can see exactly what was in the spawn packet and know what to do. If I was to guess, the player's team id is Null (i.e. BC2 says the player is spawning but not on any team, which would be bullshit).

 

3) I've just looked at the exact piece of code in ProconRulz that handles the incoming spawn events and I'd be pretty confident it would be a quick fix to handle whatever this unexpected event is more gracefully, so I can do that if we get the data from the event log. But don't worry about the error message really - ProconRulz is already doing the only reasonable thing with that bad spawn data which is ignoring that rule for that event.

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

Originally Posted by Mithralmir*:

 

Hi,

 

I fully agree that the exception is correctly trapped and proconrulz still work fine after it occurs.

I only wanted to warn you because it seems strange.

 

Now my first On spawn rule is :

On Spawn;Log %ymd% %hms% %p% spawn

 

When the exception occurs I don't have the debug log in the console. So I don't know what other information can be usefull for you?

I hope this can help.

 

Sorry for my many mistakes but english is not my mother's language...

 

I want to congratulate you for this work : Proconrulz is really a fantastic plugin that gives a tremendous power to fine tweaking gaming server.

 

Edit : By the way you can add BC2 Server "OvO Training camp" Home of the OvO Clan in the list of servers using proconrulz

 

Have a nice day

 

Pierre-Stephane

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

Originally Posted by L2Devlier*:

 

Hi guys, after developing this code for almost a week i've finally successfully tested and debugged it to be operational on my 32 player server.

The code is for a new kind of metro gameplay, Gun Master Metro. Something which the players will have another purpose while in metro besides the blind killing and fragging.

 

So at the beginning of this mode, individuals should use only handguns to get the required number of kills and complete the 'handgun stage'.

Then the individual will be in the next stage, Rifle/Carbine stage. In this stage, a required number of kills must be completed for us to move on. And so on and so for.

 

Upon entering the last stage, which is golden knife stage, the individual will need to get a knife kill amidst all the chaos in metro

And he will win the game for the team.

 

Im opening up the coding for fellow interested admins to try this new game of metro.

Code:

#gun master metro

#modify numbers in this line to vary the required kills
[b]On Spawn;Map MP_Subway;MapMode Conquest;PlayerFirst;Set %_handgun% 5;Set %_assaultrifle% 5;Set %_smglmg% 5;Set %_shotgun% 5;Set %_projectileexplosive% 5;Set %_sniperrifle% 5;Set %_explosive% 3[/b];Set %_offend% 0

On Spawn;Map MP_Subway;MapMode Conquest;PlayerFirst;Set %_handgunc% 1;Set %_assaultriflec% 0;Set %_smglmgc% 0;Set %_shotgunc% 0;Set %_projectileexplosivec% 0;Set %_sniperriflec% 0;Set %_explosivec% 0

On Spawn
#the sequence of stages, and informing players their progress
	If %_handgunc% == 1;PlayerSay %p%: 1 of 8 stage. Handgun. %_handgun% kills left.
	If %_assaultriflec% == 1;PlayerSay %p%: 2 of 8 stage. Rifle. %_assaultrifle% kills left. 
	If %_smglmgc% == 1;PlayerSay %p%: 3 of 8 stage. SMG/LMG. %_smglmg% kills left. 
	If %_shotgunc% == 1;PlayerSay %p%: 4 of 8 stage. Shotgun. %_shotgun% kills left. 
	If %_projectileexplosivec% == 1;PlayerSay %p%: 5 of 8 stage. RPG/M320. %_projectileexplosive% kills left. 
	If %_sniperriflec% == 1;PlayerSay %p%: 6 of 8 stage. Sniper rifle. %_sniperrifle% kills left. 
	If %_explosivec% == 1;PlayerSay %p%: 7 of 8 stage. Grenade/C4. %_explosive% kills left. 
	If %_handgunc% == 2;If %_assaultriflec% == 2;If %_smglmgc% == 2;If %_shotgunc% == 2;If %_projectileexplosivec% == 2;If %_sniperriflec% == 2;If %_explosivec% == 2;Yell 10  %p%: Now at GOLDEN KNIFE stage!!!! Last Kill to win for his team!!!!

On Kill;Map MP_Subway;MapMode Conquest
#the blue codes denote the level is completed and determines the next stage. Easier to rearrange stages
#handgun
	Damage Handgun;If %_handgunc% == 1;Decr %_handgun%;PlayerYell 10 %_handgun% handgun kills until leveling to Rifles!

	Not Damage Handgun;If %_handgunc% == 1;Kill 0;PlayerSay %p% you are on handgun weapon stage!!!;PlayerSay Quick get %_handgun% more handgun kills until leveling;Incr %_offend%;Set %_killreason% gunmasterMetro

	If %_handgun% == 1;PlayerSay Last handgun kill until leveling!

	If %_handgun% < 1;If %_handgunc% == 1;Say %p% has leveled to Rifles/Carbine!;PlayerSay Complete the next stage with %_assaultrifle% Rifles/Carbine kills!;PlayerYell 10 You have leveled to Rifles/Carbines!;Kill 0;Set %_handgunc% 2;Set %_assaultriflec% 1

#rifle/carbine
	Damage AssaultRifle;If %_assaultriflec% == 1;Decr %_assaultrifle%;PlayerYell 10 %_assaultrifle% Rifle/Carbine kills until leveling to smg/lmg!

	Damage SMG;If %_assaultriflec% == 1;Decr %_assaultrifle%;PlayerYell 10 %_assaultrifle% Rifle/Carbine kills until leveling to shotguns!

	Not Damage SMG;Not Damage AssaultRifle;If %_assaultriflec% == 1;Kill 0;PlayerSay %p% you are on rifle weapon stage!!!;PlayerSay Quick get %_assaultrifle% more Rifles/Carbines kills until leveling;Incr %_offend%;Set %_killreason% gunmasterMetro

	If %_assaultrifle% == 1;PlayerSay Last Rifles/Carbines kill until leveling!

	If %_assaultrifle% < 1;If %_assaultriflec% == 1;Say %p% has leveled to Light MG!;PlayerSay Complete the next stage with %_smglmg% Light MG kills!;PlayerYell 10 You have leveled to Light MG!;Kill 0;Set %_assaultriflec% 2;Set %_smglmgc% 1

#LMG
	Damage LMG;If %_smglmgc% == 1;Decr %_smglmg%;PlayerYell 10 %_smglmg% Light MG kills until  leveling to shotguns!

	Not Damage LMG;If %_smglmgc% == 1;Kill 0;PlayerSay %p% you are on Light MG weapon stage!!!;PlayerSay Quick get %_smglmg% more Light MG kills until leveling;Incr %_offend%;Set %_killreason% gunmasterMetro

	If %_smglmg% == 1;PlayerSay Last smg/lmg kill until leveling!

	If %_smglmg% < 1;If %_smglmgc% == 1;Say %p% has leveled to shotguns!;PlayerSay Complete the next stage with %_shotgun% shotgun kills!;PlayerYell 10 You have leveled to shotgun!;Kill 0;Set %_smglmgc% 2;Set %_shotgunc% 1

#shotgun
	Damage Shotgun;If %_shotgunc% == 1;Decr %_shotgun%;PlayerYell 10 %_shotgun% Shotgun kills until leveling to RPG/SMAW/M320!

	Not Damage Shotgun;If %_shotgunc% == 1;Kill 0;PlayerSay %p% you are on Shotgun weapon stage!!!;PlayerSay Quick get %_shotgun% more Shotgun kills until leveling;Incr %_offend%;Set %_killreason% gunmasterMetro

	If %_shotgun% == 1;PlayerSay Last Shotgun kill until leveling!

	If %_shotgun% < 1;If %_shotgunc% == 1;Say %p% has leveled to RPG/SMAW/M320!;PlayerSay Complete the next stage with %_projectileexplosive% RPG/SMAW/M320 kills!;PlayerYell 10 You have leveled to RPG/SMAW/M320!;Kill 0;Set %_shotgunc% 2;Set %_projectileexplosivec% 1

#rpg/m320 (including m320 buck. underslung m320 will not be accepted)
	Damage ProjectileExplosive;If %_projectileexplosivec% == 1;Decr %_projectileexplosive%;PlayerYell 10 %_projectileexplosive% RPG/SMAW/M320 kills until leveling to Sniper Rifles!

	Not Damage ProjectileExplosive;If %_projectileexplosivec% == 1;Kill 0;PlayerSay %p% you are on RPG/SMAW/M320 weapon stage!!!;PlayerSay Quick get %_projectileexplosive% more RPG/SMAW/M320 kills until leveling;Incr %_offend%;Set %_killreason% gunmasterMetro

	If %_projectileexplosive% == 1;PlayerSay Last RPG/SMAW/M320 kill until leveling!

	If %_projectileexplosive% < 1;If %_projectileexplosivec% == 1;Say %p% has leveled to Sniper Rifles!;PlayerSay Complete the next stage with %_sniperrifle% Sniper Rifles kills!;PlayerYell 10 You have leveled to Sniper Rifles!;Kill 0;Set %_projectileexplosivec% 2;Set %_sniperriflec% 1

#sniper rifle
	Damage SniperRifle;If %_sniperriflec% == 1;Decr %_sniperrifle%;PlayerYell 10 %_sniperrifle% Sniper Rifle kills until leveling to Grenade/C4!

	Not Damage SniperRifle;If %_sniperriflec% == 1;Kill 0;PlayerSay %p% you are on Sniper Rifle weapon stage!!!;PlayerSay Quick get %_sniperrifle% more Sniper Rifle kills until leveling;Incr %_offend%;Set %_killreason% gunmasterMetro

	If %_sniperrifle% == 1;PlayerSay Last Sniper Rifle kill until leveling!

	If %_sniperrifle% < 1;If %_sniperriflec% == 1;Say %p% has leveled to Grenade/C4!;PlayerSay Complete the next stage with %_explosive% Grenade/C4 kills!;PlayerYell 10 You have leveled to Grenade/C4!;Kill 0;Set %_sniperriflec% 2;Set %_explosivec% 1

#Grenade/C4
	Damage Explosive;If %_explosivec% == 1;Decr %_explosive%;Yell 10 %p% has %_explosive% Grenade/C4 kills until leveling to GOLDEN KNIFE!

	Not Damage Explosive;If %_explosivec% == 1;Kill 0;PlayerSay %p% you are on Grenade/C4 weapon stage!!!;PlayerSay Quick get %_explosive% more Grenade/C4 kills until leveling to GOLDEN KNIFE;Incr %_offend%;Set %_killreason% gunmasterMetro

	If %_explosive% == 1;Say %p% is on his last Grenade/C4 kill until leveling to GOLDEN KNIFE!;Say %p% is on his last Grenade/C4 kill until leveling to GOLDEN KNIFE!;Say %p% is on his last Grenade/C4 kill until leveling to GOLDEN KNIFE!

	If %_explosive% < 1;If %_explosivec% == 1;Say GOLDEN KNIFE ALERT!;Say GOLDEN KNIFE ALERT!;Say GOLDEN KNIFE ALERT!;Say GOLDEN KNIFE ALERT!;Say GOLDEN KNIFE ALERT!;Yell 10 >>>>>>> %p% has leveled to GOLDEN KNIFE! <<<<<<;PlayerSay %p% GET A MELEE KILL TO WIN THE ROUND FOR YOUR TEAM!;PlayerYell 10 You have leveled to GOLDEN KNIFE!;Kill 0;Set %_explosivec% 2

#Golden knife
	Damage Melee;If %_handgunc% == 2;If %_assaultriflec% == 2;If %_smglmgc% == 2;If %_shotgunc% == 2;If %_projectileexplosivec% == 2;If %_sniperriflec% == 2;If %_explosivec% == 2;Exec mapList.endRound %ptk%

#number of violation before kick
	If %_offend% >= 8;Kick Gun Master Metro;Set %_offend% 0

#info
On Say;Map MP_Subway;MapMode Conquest;Text !rul
	Say GUN MASTER METRO
	Say #1. Start with handgun
	Say #2. Get kills to complete weapon stages
	Say #3. Get last kill on Golden Knife stage to win for your team

On Spawn;Map MP_Subway;MapMode Conquest
	PlayerYell 30 Welcome to GunMaster Metro: Start with handgun, kill you way to instant victory!!! >> !rules << 
	End
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by FLirtY-3D*:

 

on spawn welcome message of this plugin is not working... i am using this code ....

 

#Country Base Welcome

#BASETEXT: Welcome - YOUR TEXT - Please follow our rules

#Countrykeys only in small letters based on ISO3166

# Only latin letters works propper

 

On Spawn;PlayerOnce;If %pcountrykey% == de;Yell 10 WILLKOMMEN %p% - RED EYES ONLY @ AMSTERDAM 420 SERVER - BITTE BEACHTE UNSERE REGELN

On Spawn;PlayerOnce;If %pcountrykey% == nl;Yell 10 Welkom %p% - RED EYES ONLY @ AMSTERDAM 420 SERVERS - check ff onze huisregels,enjoy

On Spawn;PlayerOnce;If %pcountrykey% == fr;Yell 10 BONJOUR %p% -YOUR SERVER TEXT HERE - VEUILLEZ SUIVRE NOS RÈGLES

On Spawn;PlayerOnce;If %pcountrykey% == uk;Yell 10 WELCOME %p% -YOUR SERVER TEXT HERE - PLEASE FOLLOW OUR RULES

On Spawn;PlayerOnce;If %pcountrykey% == us;Yell 10 WELCOME %p% -YOUR SERVER TEXT HERE - PLEASE FOLLOW OUR RULES

On Spawn;PlayerOnce;If %pcountrykey% == ru;Yell 10 Dobro pozhalovat %p% -YOUR SERVER TEXT HERE - pozhaluysta sleduy nashim pravilam

On Spawn;PlayerOnce;If %pcountrykey% == pt;Yell 10 Sangrado %p% -YOUR SERVER TEXT HERE - Por favor anote nosso Regimento

On Spawn;PlayerOnce;If %pcountrykey% == dk;Yell 10 Velkommen %p% -YOUR SERVER TEXT HERE - følg vores regler

On Spawn;PlayerOnce;If %pcountrykey% == it;Yell 10 Benvenuti %p% -YOUR SERVER TEXT HERE - SI PREGA DI SEGUIRE LE NOSTRE REGOLE

On Spawn;PlayerOnce;If %pcountrykey% == no;Yell 10 Velkommen %p% -YOUR SERVER TEXT HERE - KAN DU FØLGE VÅRE REGLER

On Spawn;PlayerOnce;If %pcountrykey% == se;Yell 10 Välkommen %p% -YOUR SERVER TEXT HERE - följ VÅRA REGLER

On Spawn;PlayerOnce;If %pcountrykey% == es;Yell 10 Bienvenido %p% -YOUR SERVER TEXT HERE - por favor siga nuestro reglamento

On Spawn;PlayerOnce;If %pcountrykey% == fi;Yell 10 Suhtaudun myönteisesti %p% -YOUR SERVER TEXT HERE - huomaa työjärjestyksemme

On Spawn;PlayerOnce;If %pcountrykey% == pl;Yell 10 Mile widziane %p% -YOUR SERVER TEXT HERE - PROSIMY O PRZESTRZEGANIE NASZYCH ZASAD

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

Originally Posted by bambam*:

 

on spawn welcome message of this plugin is not working... i am using this code ....

 

#Country Base Welcome

#BASETEXT: Welcome - YOUR TEXT - Please follow our rules

#Countrykeys only in small letters based on ISO3166

# Only latin letters works propper

 

On Spawn;PlayerOnce;If %pcountrykey% == de;Yell 10 WILLKOMMEN %p% - RED EYES ONLY @ AMSTERDAM 420 SERVER - BITTE BEACHTE UNSERE REGELN

Stick a log statement in there and see what you get when you log in, e.g.

On Spawn;Log %p% spawned from %pcountrykey%

 

... I've got a clue what might be going on - %pcountrykey% doesn't get populated until the PunkBuster data for the player finally arrives and this might be after the first time the player spawns. If so you'll see that with the log statement above - at first the country key will be blank or something and after a few spawns it'll get set properly. If so you can improve your Rulz by moving the 'PlayerOnce' AFTER the country condition e.g.

On Spawn;If %pcountrykey% == de;PlayerOnce;Yell 10 WILLKOMMEN %p% - RED EYES ONLY @ AMSTERDAM 420 SERVER - BITTE BEACHTE UNSERE REGELN

Understand? Then the PlayerOnce condition will only block the rule if the country condition has succeeded once - your rulz only ever test the country condition the FIRST time the player spawns...

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

Originally Posted by MadRecruitNick*:

 

not seen this one before... I can NOT think of a way you can use ";" within a condition or action, because it is used FIRST to chop a rule up into separate conditions and actions. The extreme answer would be to hack proconrulz.cs where it uses the ";" to use something else - if you ask I'll tell you... this hack would need redoing on future upgrades.

Thanks a lot for answer, but I will not hack your plugin ;-) Now I use this:

 

On Kill;Weapon Melee;yell o==]::::::::::::> %v% <:::::::::::: wurde von aufgeschlitzt>

 

It's okay, better then always hack your plugin, if there is an update.

 

Another question, is it possible to kick the last serverjoiner?

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

Originally Posted by FLirtY-3D*:

 

I've got a clue what might be going on - %pcountrykey% doesn't get populated until the PunkBuster data for the player finally arrives and this might be after the first time the player spawns. If so you'll see that with the log statement above - at first the country key will be blank or something and after a few spawns it'll get set properly. If so you can improve your Rulz by moving the 'PlayerOnce' AFTER the country condition e.g.

 

On Spawn;If %pcountrykey% == de;PlayerOnce;Yell 10 WILLKOMMEN %p% - RED EYES ONLY @ AMSTERDAM 420 SERVER - BITTE BEACHTE UNSERE REGELN

 

Understand? Then the PlayerOnce condition will only block the rule if the country condition has succeeded once - your rulz only ever test the country condition the FIRST time the player spawns...

thankyou bambam worked great but how can i get it to only yell it to the player on spawn ? yells to whole sever at min ?
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

thankyou bambam worked great but how can i get it to only yell it to the player on spawn ? yells to whole sever at min ?

Substitute "PlayerYell" for "Yell". Read the documentation. :ohmy:
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by FLirtY-3D*:

 

Quote Originally Posted by FLirtY-3D View Post

thankyou bambam worked great but how can i get it to only yell it to the player on spawn ? yells to whole sever at min ?

Substitute "PlayerYell" for "Yell". Read the documentation.

ok i understand now lol ....duh... made it more simple now as the country do not take affect till to late... so changed it to this code... On Spawn;PlayerOnce;PlayerYell 10 WELCOME %p% works fine now..thankyou for help
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by DonPrus*:

 

Greeting. Could you help plz.

I want to do some script:

If player have not many points on my server, I want to kick him from the server for the first teamkill.

If he have more then some, for example 100 000, I want to kick him for 10tn teamkill and so on.

 

Could I count points with the procon?

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

Originally Posted by FLirtY-3D*:

 

Is there a way to stop the ProconRulz chat spaming in procon like below

 

ProconRulz: Joiner [player name] (min teamsize 5) (Not admin)

turn off ...........trace rules......... in plugin settings
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by bambam*:

 

turn off ...........trace rules......... in plugin settings

Also I'm guessing you have a couple of rulz something like:

"On Join;Not Admin;Log Joiner [%p%] (min teamsize %n%) (not admin)"

"On Join;Admin;Log Admin [%p%] (min teamsize %n%) just joined"

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

Originally Posted by dyn*:

 

Also I'm guessing you have a couple of rulz something like:

"On Join;Not Admin;Log Joiner [%p%] (min teamsize %n%) (not admin)"

"On Join;Admin;Log Admin [%p%] (min teamsize %n%) just joined"

I thought that there were a bunch of rulz, like these, that came default ?
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by DonPrus*:

 

Could you help plz?

I need to do smth like a knife announcer.

But I couldn't divide the type of knife kill.

Only: Weapons/Knife/Knife.

Could I make other condition, when enemy takes your dogtag?

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

Originally Posted by shadow2k1*:

 

how can i take this rule and make it count how many times a players tags were taken

example

 

On Kill;Weapon Melee;Yell %p% has taken %v% tags!

On Kill;Weapon Melee;Yell %p% has taken %v% tags again!

On Kill;Weapon Melee;Yell %p% has taken %v% tags 3 times!

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

Originally Posted by ty_ger07*:

 

how can i take this rule and make it count how many times a players tags were taken

example

 

On Kill;Weapon Melee;Yell %p% has taken %v% tags!

On Kill;Weapon Melee;Yell %p% has taken %v% tags again!

On Kill;Weapon Melee;Yell %p% has taken %v% tags 3 times!

You need just one rule, not multiple rules. The "%c%" automatically substitutes the number of times the rule has occurred.

 

On Kill;Weapon Melee;Yell %p% has taken %v% tags %c% times!

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

Originally Posted by C-4-N*:

 

Hi guys , i don't know if it's ever made , but I did a little basic !surrender command for our server .

 

So i thought to share it , and if you have suggestion to get it better , did it !!! :biggrin:

 

Code:


### answer if some call baserape ###
On say;text baserap,baserape;
If %pcountrykey% == fr;playersay Tapez !surrender pour voter la fin du round !;playeryell 10 tapez !surrender pour voter la fin du round !
If %pcountrykey% != fr;playersay Use !surrender to vote end of round !;playeryell 10 Use !surrender to vote end of round !

### reset votes if they don't end round + number of vote needed (6)###
On spawn;serverfirst;
set %ini_team1_abandons% 0
set %ini_team2_abandons% 0
set %ini_abandons% 0
set %ini_number_vote% 6

### RUS surrender ###
On say;team 2;text !surrender,@surrender;
if %ini_abandons_%p%% == 1;playersay %p% Your vote is ever Registred !
if %ini_abandons_%p%% == 0;Incr %ini_team2_abandons%;say RUS !surrender is LAUNCHED [%ini_team2_abandons% / %ini_number_vote%];yell 15 RUS !surrender is LAUNCHED [%ini_team2_abandons% / %ini_number_vote%]
if %ini_abandons_%p%% == 0;Incr %ini_abandons_%p%%;playersay You Have Surrendered !
if %ini_team2_abandons% >= %ini_number_vote%;set %ini_team1_abandons% 0;set %ini_team2_abandons% 0;set %ini_abandons% 0;exec mapList.endRound 1

### USA surrender ###
On say;team 1;text !surrender,@surrender;
if %ini_abandons_%p%% == 1;playersay %p% Your vote is ever Registred !
if %ini_abandons_%p%% == 0;Incr %ini_team1_abandons%;say USA !surrender is LAUNCHED  [%ini_team1_abandons% / %ini_number_vote%];yell 15 USA !surrender is LAUNCHED  [%ini_team1_abandons% / %ini_number_vote%]
if %ini_abandons_%p%% == 0;Incr %ini_abandons_%p%%;playersay You Have Surrendered !
if %ini_team1_abandons% >= %ini_number_vote%;set %ini_team1_abandons% 0;set %ini_team2_abandons% 0;set %ini_abandons% 0;exec mapList.endRound 2
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by shadow2k1*:

 

You need just one rule, not multiple rules. The "%c%" automatically substitutes the number of times the rule has occurred.

 

On Kill;Weapon Melee;Yell %p% has taken %v% tags %c% times!

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

Originally Posted by DonPrus*:

 

Greeting. How I cold make a VIP slot? I need a different rule for some players.

I try to do smth like this:

 

On Kill;Protected;PlayerCount 1; PlayerSay It's your 2/5 kill!

On Kill;Protected; PlayerSay It's your 1/5 kill!

 

On Kill;Not Protected;Both %p% was auto-KILLED for kill %v% with %w%. It's 1 kill! 2 kill = KICK.;Kill;

 

It's really works, but I need to kick them after 5 kills for example. But it's imporsible to kick protected players, since some version.

How could I solve it? Could I use not protected list, but reserved slot? What variable is for reserved slot?

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