Jump to content

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


ColColonCleaner

Recommended Posts

Originally Posted by K4OS_TV*:

 

Hi Guys, This is regarding my Operation Locker No Explosive Server. I can't seem to get the ban working. I have instant kick on explosives ... but I cannot get the ban working (whether temp or perm)

 

This is the script I am using at the moment. (AEK 320 HE for example)

 

# On Kill;Weapon U_AEK971_M320_HE;PlayerCount 0;Say %p% was just banned for using Explosives, learn to shoot soldier;Ban %p% for using AEK-971 M320 HE.

On Kill;Weapon U_AEK971_M320_HE;PlayerCount 0;Log %p% kicked for using explosive devices or weapons;Kick %p% for using AEK-971 M320 HE.

On Kill;Weapon U_AEK971_M320_HE;PlayerSay %p% no explosive weapons! you will be kicked then banned if you continue!;Kill 100

 

Also do you know whether you will at some later date be updating the plugin so it will be able to differentiate the mortar from the mounted .50 Cal at 'C'. I keep the 'Death' script in so people can't use the UCAV and the Mortar .. but it is kicking the people killing on the stationary .50 cal in the 'C' base tower. I have the spambot and description stating not to use the .50 Cal .. but some people just don't understand why.

 

Thank in advance and keep up the great work :-)

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

Originally Posted by ty_ger07*:

 

Thank you for Reply

I am trying kick the player(even admin and whitelist) if player kill over 45 each game

I am not sure but I think if you choose to protect users in your plugin settings, it is a global override which can't be overruled in a rule. Bambam?
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by bambam*:

 

Thank you for Reply

I am trying kick the player(even admin and whitelist) if player kill over 45 each game

As ty_ger says, probably all you need to do is turn OFF the 'protect these players from kick or kill' plugin setting...

 

If you want to bypass the usual ProconRulz protection for Kick or Ban for only some rulz, the trick is to use "Exec admin.kickPlayer..." action instead of just "Kick"

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

Originally Posted by bambam*:

 

Hi Guys, This is regarding my Operation Locker No Explosive Server. I can't seem to get the ban working. I have instant kick on explosives ... but I cannot get the ban working (whether temp or perm)

 

This is the script I am using at the moment. (AEK 320 HE for example)

 

# On Kill;Weapon U_AEK971_M320_HE;PlayerCount 0;Say %p% was just banned for using Explosives, learn to shoot soldier;Ban %p% for using AEK-971 M320 HE.

On Kill;Weapon U_AEK971_M320_HE;PlayerCount 0;Log %p% kicked for using explosive devices or weapons;Kick %p% for using AEK-971 M320 HE.

On Kill;Weapon U_AEK971_M320_HE;PlayerSay %p% no explosive weapons! you will be kicked then banned if you continue!;Kill 100

I assume that "#" in front of your Ban rule is a later edit to comment that rule out?

 

The "PlayerCount 0" conditions are completely redundant, but harmless.

 

Check the user affected wasn't 'protected' i.e. an admin or on the reserved slot list.

 

Can you confirm the "%p% was banned..." chat messages DO appear?

 

If so check the Procon console log (turn logging on in Procon settings) and see if the admin.ban command was actually issued by ProconRulz - if so maybe the server is rejecting it for some reason.

 

To test more easily, add a quick rule:

 

On Say;Admin;!test;TargetPlayer;Say test %t%;TargetPlayer Ban testing

 

Of course you have to sacrifice a player... but so long as you're online you can unban straight away...

 

Also do you know whether you will at some later date be updating the plugin so it will be able to differentiate the mortar from the mounted .50 Cal at 'C'. I keep the 'Death' script in so people can't use the UCAV and the Mortar .. but it is kicking the people killing on the stationary .50 cal in the 'C' base tower. I have the spambot and description stating not to use the .50 Cal .. but some people just don't understand why.

 

Thank in advance and keep up the great work :-)

This issue is nothing to do with Procon, ProconRulz, or any other plugin. DICE/BF3/BF4 sends a weapon code of "Death" when each of those kills occur, and you can only work with the data you actually get... I'm not aware of any commitment from DICE to fix the weapon reporting for those weapons but we live in hope. The problem has existed since BF3 though. Weapon reporting in BF4 HAS improved for the underslung weapons (like shotgun, nades) - in BF3 these were reported exactly as if they were assault rifle kills.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by K4OS_TV*:

 

I assume that "#" in front of your Ban rule is a later edit to comment that rule out?

Yes sorry, that was a noob error on my behalf :-)

 

The "PlayerCount 0" conditions are completely redundant, but harmless.

I used the 0 for an instant kill and kick. But have since change it when a friend helped me with a tempban code.

 

We have been tweaking it and now have it running well with one warning and then a 5 hour ban if same explosive used again.

 

This is the code we went with;

 

On Kill;Weapon U_AEK971_M320_HE;PlayerCount 1;Say %p% was just banned for using Explosives;TempBan 18000 Banning %p% for 5 hours for using AEK-971 M320 HE.

On Kill;Weapon U_AEK971_M320_HE;PlayerCount 1;Log %p% Killed for using explosive devices or weapons;Kill Killing %p% for using AEK-971 M320 HE.

On Kill;Weapon U_AEK971_M320_HE;PlayerSay %p% no explosive weapons! One and only warning, next time you'll get a 5 hour ban!;Kill 100

 

This issue is nothing to do with Procon, ProconRulz, or any other plugin. DICE/BF3/BF4 sends a weapon code of "Death" when each of those kills occur, and you can only work with the data you actually get... I'm not aware of any commitment from DICE to fix the weapon reporting for those weapons but we live in hope. The problem has existed since BF3 though. Weapon reporting in BF4 HAS improved for the underslung weapons (like shotgun, nades) - in BF3 these were reported exactly as if they were assault rifle kills.

Sorry for the mix up. Well I won't hold my breath on that one as they were aware of people avoiding kicks and bans by using underslung I doubt they will fix the Mortar thing until BF5 LOL :-)

 

It is a shame to have to make the choice of either banning Mortars and sacrificing the .50 Cal at C or allow the .50 Cal and then have players exploit this and spam Mortars (Which we all know they will do if given the chance). I did go with disallowing Mortars in the end.

 

I am glad they fixed the underslung thing though. Mortars are one thing but when the server is filled with players 320 underslunging and then other players do it because they see nothing happens when they do ... then it just ruins the whole server really. So great to see that part fixed.

 

Thank-you for the quick and indepth reply. Keep up the great work mate.

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

Originally Posted by bambam*:

 

Hi guys... Just want to find out, when proconrulz ban players only their EA ID is showing , no name... How can this be changed so you can see the names of the players who is banned?

"Banning by name" would be the wrong way to do it because the twats that get banned tend to be the same twats that play under several player names (check metabans.com....). So the ProconRulz 'Ban' action defaults to "ban by EA_ID".

 

Couple of options:

 

1) use 'PBBan' instead of Ban. This bans on PB_ID but also includes player name.

 

2) Use 'Ban' but the trick is to include the banned player name in the ban message so it will appear in the ban file, e.g.

 

On Say;Admin;Text !ban;TargetPlayer;TargetAction Ban %t% banned by %p%;PlayerSay %t% banned

 

A caution is be careful where/when you EDIT the banlist.txt file, i.e. to unban somebody - you can get conflicts using Procon and/or server tools where the copies used in the tools get out of sync.

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

Originally Posted by bambam*:

 

damn... wat about camping maybe?

nice try but nope... for BF3/BF4 DICE took out the location info that used to be provided in BFBC2, so now you have no idea of the players location so you can't tell if they've moved in the past half hour or not....
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Hutchew*:

 

nice try but nope... for BF3/BF4 DICE took out the location info that used to be provided in BFBC2, so now you have no idea of the players location so you can't tell if they've moved in the past half hour or not....

Yet one more fail to add to the ever growing list.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by SamTyler*:

 

Got sometimes this:

[20:30:46 59] ProconRulz: recoverable exception in OnPlayerSpawn

[20:30:46 59] ProconRulz: System.ArgumentNullException: Value cannot be null.

Parameter name: key

at System.ThrowHelper.ThrowArgumentNullException(Exce ptionArgument argument)

at System.Collections.Generic.Dictionary2.FindEntry(T Key key)

at System.Collections.Generic.Dictionary2.ContainsKey (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)

 

PRoCon v1.4.1.3 at backend, 1.4.1.3 at layerserver, ProconRulz 44g3 but happens also with

ProCon v1.4.1.3 as backend without layerserver and ProconRulz 44g3

 

sure not a really problem but to often to ignore...

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

Originally Posted by bambam*:

 

Got sometimes this:

[20:30:46 59] ProconRulz: recoverable exception in OnPlayerSpawn

[20:30:46 59] ProconRulz: System.ArgumentNullException: Value cannot be null.

Parameter name: key

at System.ThrowHelper.ThrowArgumentNullException(Exce ptionArgument argument)

at System.Collections.Generic.Dictionary2.FindEntry(T Key key)

at System.Collections.Generic.Dictionary2.ContainsKey (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)

 

PRoCon v1.4.1.3 at backend, 1.4.1.3 at layerserver, ProconRulz 44g3 but happens also with

ProCon v1.4.1.3 as backend without layerserver and ProconRulz 44g3

 

sure not a really problem but to often to ignore...

Thanks - I think it's harmless but I will look into it (ProconRulz has various catches for 'unexpected' server events that do come from BF3 (like Bambam killed Pebbles with NULL) - but it looks like there's a new one from BF4 (maybe it's "Player NULL spawned" or something like that). The exception looks nerdy but it's actually just trying to say an event looked wierd so ProconRulz skipped it - it will be useful to know what happened tho. My money is on BF4 said a player with a null name spawned, which is bollocks, but if we confirm that's the case I'll have ProconRulz just quietly ignore that and not trigger rulz processing for that meaningless event. It's better to have these traps in place so we catch a real bug if it occurs.

 

What would REALLY help would be the "OnSpawn" event from the CONSOLE LOG that matches any of these exceptions in the PLUGIN LOG. It should be something like "[20:30:46] player.onSpawn bambam 1"

 

Thanks again for providing the detailed trace.

 

Bambam

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

Originally Posted by jong7007*:

 

Thank you for help guys~

now i have other problem....

i have only knife and pistol server however ppl doing Roadkill for more K/D~ how can i kick them when player do Roadkill?

 

On Kill;Weapon Death;PlayerCount 1;Say %p% kicked for vehicle kills;Kick kicked for vehicle kill

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

Originally Posted by virusdead*:

 

I want it to be that maps operation locker only helps

 

On Kill;Weapon U_AEK971_M320_HE;PlayerCount 1;Say %p% was just banned for using Explosives;TempBan 18000 Banning %p% for 5 hours for using AEK-971 M320 HE.

On Kill;Weapon U_AEK971_M320_HE;PlayerCount 1;Log %p% Killed for using explosive devices or weapons;Kill Killing %p% for using AEK-971 M320 HE.

On Kill;Weapon U_AEK971_M320_HE;PlayerSay %p% no explosive weapons! One and only warning, next time you'll get a 5 hour ban!;Kill 100

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

Originally Posted by SamTyler*:

 

@bambam

 

Its running in BFBC2-mode - catching exception is always a good idea like in PL/SQL I used to do ;-)

 

sorry no console log because GSP hasnt activated - try to catch running here at the backend today...

 

Thanks

Sam

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

Originally Posted by C-4-N*:

 

Thank you for help guys~

now i have other problem....

i have only knife and pistol server however ppl doing Roadkill for more K/D~ how can i kick them when player do Roadkill?

 

On Kill;Weapon Death;PlayerCount 1;Say %p% kicked for vehicle kills;Kick kicked for vehicle kill

Hi , i don't try roadkill detection yet , we have that in BF4

 

Code:

Description | Weapon | key | Damage Kit
Ecrasé | RoadKill | None | None
i think you can have the line

On kill;if %wk% contains roadkill;Say %p% kicked for roadkill;Kick Kicked for roadkill

 

try detect,register it in "ini file" if you want [...]procon > configs > your IP.ini (will be create, if not yet, once a roadkill will be detected)

On kill;if %wk% contains roadkill;incr %ini_roadkill_%p%%

 

let us know if worked :smile:

 

regards

 

 

ps : if killer get out of vehicle before collison he won't be detected :/

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

Originally Posted by C-4-N*:

 

I want it to be that maps operation locker only helps

Hi virusdead

MP_Prison is the name of locker, try that

 

On Kill;Map MP_Prison;Weapon U_AEK971_M320_HE;PlayerCount 1;Say %p% was just banned for using Explosives;TempBan 18000 Banning %p% for 5 hours for using AEK-971 M320 HE.

On Kill;Map MP_Prison;Weapon U_AEK971_M320_HE;PlayerCount 1;Log %p% Killed for using explosive devices or weapons;Kill Killing %p% for using AEK-971 M320 HE.

On Kill;Map MP_Prison;Weapon U_AEK971_M320_HE;PlayerSay %p% no explosive weapons! One and only warning, next time you'll get a 5 hour ban!;Kill 100

 

ps : you have kick and tempban for same number of kill^^

i think you have to change for playercount 2 or more , on tempban line

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

Originally Posted by SamTyler*:

 

Thanks - I think it's harmless but I will look into it (ProconRulz has various catches for 'unexpected' server events that do come from BF3 (like Bambam killed Pebbles with NULL) - but it looks like there's a new one from BF4 (maybe it's "Player NULL spawned" or something like that). The exception looks nerdy but it's actually just trying to say an event looked wierd so ProconRulz skipped it - it will be useful to know what happened tho. My money is on BF4 said a player with a null name spawned, which is bollocks, but if we confirm that's the case I'll have ProconRulz just quietly ignore that and not trigger rulz processing for that meaningless event. It's better to have these traps in place so we catch a real bug if it occurs.

 

What would REALLY help would be the "OnSpawn" event from the CONSOLE LOG that matches any of these exceptions in the PLUGIN LOG. It should be something like "[20:30:46] player.onSpawn bambam 1"

 

Thanks again for providing the detailed trace.

 

Bambam

here we go now with output from console log...

 

[12:42:03 53] ProconRulz: recoverable exception in OnPlayerSpawn

[12:42:03 53] ProconRulz: System.ArgumentNullException: Der Wert darf nicht NULL sein.

Parametername: key

bei System.ThrowHelper.ThrowArgumentNullException(Exce ptionArgument argument)

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

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

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

 

[12:42:02] player.onSpawn Maria_190 Demolition RPG7 TRCR-357 AKS74u sp_smg_r sp_bodarm sp_vdamage

[12:42:02] OK

[12:42:03] player.onSpawn lakroll Demolition M136 M1911 UMP sp_shotgun_s sp_buldmplus sp_vehmosens

[12:42:03] OK

 

[13:01:00 95] ProconRulz: recoverable exception in OnPlayerSpawn

[13:01:00 95] ProconRulz: System.ArgumentNullException: Der Wert darf nicht NULL sein.

Parametername: key

bei System.ThrowHelper.ThrowArgumentNullException(Exce ptionArgument argument)

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

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

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

 

[13:00:59] player.onSpawn Mr. Vengeance95 Demolition M2CG M9 AKS74u sp_ammsupp sp_assault_a sp_coaxmg

[13:00:59] OK

[13:00:59] player.onSpawn zak641 Demolition RPG7 MP443 SCAR sp_assault_s sp_buldmplus sp_coaxmg

[13:00:59] OK

[13:01:00] player.onSpawn Salluste Demolition M136 MP412 SCAR sp_shotgun_s sp_buldmplus sp_coaxmg

[13:01:00] OK

[13:01:01] player.onSpawn kampfkeks537 Support DEFIB M1911 M1A1 Thompson sp_sprint sp_buldmplus sp_vehmosens

[13:01:01] OK

 

 

 

in addition - BFBC2-Mode is active

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

Originally Posted by jong7007*:

 

Hi , i don't try roadkill detection yet , we have that in BF4

 

Code:

Description | Weapon | key | Damage Kit
Ecrasé | RoadKill | None | None
i think you can have the line

On kill;if %wk% contains roadkill;Say %p% kicked for roadkill;Kick Kicked for roadkill

 

try detect,register it in "ini file" if you want [...]procon > configs > your IP.ini (will be create, if not yet, once a roadkill will be detected)

On kill;if %wk% contains roadkill;incr %ini_roadkill_%p%%

 

let us know if worked :smile:

 

regards

 

 

ps : if killer get out of vehicle before collison he won't be detected :/

+

Thank You~~~~~

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

Originally Posted by rbtmarshall*:

 

Just wanted to drop in and say thanks for this plugin, my short stint as a game admin is over starting today. I figured that I would share my proconrulz script with the community to use and improve on.

 

the base script ran good, and I had plans to develop it further, but was constantly needing to give my attention to trying to populate servers after gamecrashes and ddos. It made no sense at all for me to continue, and if DDOS is the way some people play this ranking game, I do not want to follow that unethical route to compete.

 

anyhow, here it is. a base script for you to run your own =PISTOLS ONLY= server

showthread....starter-script*

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

Originally Posted by virusdead*:

 

Hi virusdead

MP_Prison is the name of locker, try that

 

On Kill;Map MP_Prison;Weapon U_AEK971_M320_HE;PlayerCount 1;Say %p% was just banned for using Explosives;TempBan 18000 Banning %p% for 5 hours for using AEK-971 M320 HE.

On Kill;Map MP_Prison;Weapon U_AEK971_M320_HE;PlayerCount 1;Log %p% Killed for using explosive devices or weapons;Kill Killing %p% for using AEK-971 M320 HE.

On Kill;Map MP_Prison;Weapon U_AEK971_M320_HE;PlayerSay %p% no explosive weapons! One and only warning, next time you'll get a 5 hour ban!;Kill 100

 

ps : you have kick and tempban for same number of kill^^

i think you have to change for playercount 2 or more , on tempban line

 

On Kill;Map MP_Prison;Weapon U_AEK971_M320_HE;PlayerCount 2;Say %p% was just banned for using Explosives;TempBan 18000 Banning %p% for 5 hours for using AEK-971 M320 HE.

On Kill;Map MP_Prison;Weapon U_AEK971_M320_HE;PlayerCount 1;Log %p% Killed for using explosive devices or weapons;Kill Killing %p% for using AEK-971 M320 HE.

On Kill;Map MP_Prison;Weapon U_AEK971_M320_HE;PlayerSay %p% no explosive weapons! One and only warning, next time you'll get a 5 hour ban!;Kill 100

Adding maps that does not work
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by C-4-N*:

 

Adding maps that does not work

It is , i try that on locker

 

on say;map mp_prison;text !map;playersay %m% %mm%

 

message appear , i try on an other map and i have not the msg , so detection of the map is working

 

try it

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

Originally Posted by L2Devlier*:

 

Hi guys,

As the 2 years old server i've been admin on will be closing down very soon, i'd like to release some of the more useful codes (or ideas for you) my server that had run without a hitch. Let me know if you ran into trouble with any of the codes, TEST THEM FIRST because i edited them for public posting.

 

1. Kill for server wide grenade overuse/spam

Rate checker maybe a viable alternative

Code:

On Spawn;ServerFirst;Set %server_grenadecount% 0;Set %server_notgrenade% 0
On Kill;Weapon M67
	If %server_grenadecount% >= 3;Kill 800;PlayerSay Too much Grenade Spam on server;Yell 10 TOO MUCH GRENADE SPAM ON SERVER;PlayerYell 30 Too much grenade spam on server;Set %_killreason% nadespam;Continue
	Incr %server_grenadecount%;Set %server_notgrenade% 0
On Kill;Weapon Weapons/Gadgets/C4/C4
	If %server_grenadecount% >= 3;Kill 800;PlayerSay Too much Grenade / C4 Spam on server;Yell 10 TOO MUCH GRENADE SPAM ON SERVER;PlayerYell 30 Too much grenade / C4 spam on server;Set %_killreason% nadespam;Continue
	Incr %server_grenadecount%;Set %server_notgrenade% 0
On Kill;Not Weapon M67;Not Weapon Weapons/Gadgets/C4/C4
	Incr %server_notgrenade%
	If %server_notgrenade% == 2;Set %server_grenadecount% 0
2. Map specific server settings

my server runs all original maps using default settings. But on metro it will become a 800 tickets metro and then return normal on other maps

edit red parameters to modify intended ticket count percentage-to-default

not used as it clashes with my "No 60 seconds round wait" modification

Code:

On Round
	Map MP_Subway;MapMode Conquest;Exec vars.serverName "ALL WEAPONS 800TIX 32P METRO [VOTED !RULES]";Exec vars.gameModeCounter 229
	Map MP_Subway;MapMode Rush;Exec vars.serverName "[MyB/LAV] Easy Frag Malaysia-Singapore-World [Original Maps]";Exec vars.gameModeCounter 100
	Not Map MP_Subway;Exec vars.serverName "[MyB/LAV] Easy Frag Malaysia-Singapore-World [Original Maps]";Exec vars.gameModeCounter 100
On Spawn
	Map MP_Subway;MapMode Conquest;If %tc% <= 6;If %team_score% < 750;If %team_score% != 0;log 1;Exec mapList.restartRound
	MapMode Rush;If %ptk% != 2;If %tc% <= 6;If %team_score% > 100;If %team_score% != 0;log 2;Exec mapList.restartRound
	Not Map MP_Subway;MapMode Conquest;If %tc% <= 6;If %team_score% > 351;If %team_score% != 0;log 3;Exec mapList.restartRound
3. Metro Player Voted Weapon Bans/Knife,Pistol Only mode

edit red parameters to modify votes required

edit If %p% == admin;Set %server? lines to allow admins run the ban without voting

Code:

On Spawn
	PlayerFirst;Set %server_banreq% 3;Set %server_knifereq% 3;Set %server_pisreq% 3
	If %server_rpgvote% >= %server_banreq%;If %server_r3vote% < %server_banreq% 3;PlayerSay %p% ## PLAYER VOTED: RPG/SMAW ban in effect
	If %server_320vote% >= %server_banreq%;PlayerSay %p% ## PLAYER VOTED: M320 ban in effect
	If %server_nnadevote% >= %server_banreq%;PlayerSay %p% ## PLAYER VOTED: Grenade ban in effect
	If %server_r3vote% >= %server_banreq%;If %server_rpgvote% < %server_banreq% 3;PlayerSay %p% ## PLAYER VOTED: RPG/SMAW/M320 ban in effect
	If %server_m16aekvote% >= %server_knifereq%;PlayerSay %p% ## PLAYER VOTED: Knife/Defilb/Repair Only
	If %server_shotgunvote% >= %server_pisreq%;PlayerSay %p% ## PLAYER VOTED: Pistols Only
	If %server_claymorevote% >= %server_banreq%;PlayerSay %p% ## PLAYER VOTED: Claymore ban in effect


On Say;Text !NOCLAYMORE;Map MP_Subway
	ServerFirst;Set %server_claymorevote% 0
	If %p% == admin;Set %server_claymorevote% 2
	PlayerFirst;Incr %server_claymorevote%;Say %p% voted for NO CLAYMORE. %server_claymorevote%/%server_banreq% votes
	Not PlayerFirst;PlayerSay ** You have already voted **
	If %server_claymorevote% >= %server_banreq%;Say PLAYER VOTED: CLAYMORE banned from now by vote!!!

On Say;Text !PISTOL;Map MP_Subway
	ServerFirst;Set %server_shotgunvote% 0
	If %p% == admin;Set %server_shotgunvote% 2
	PlayerFirst;Incr %server_shotgunvote%;Say %p% voted for PISTOL ONLY. %server_shotgunvote%/%server_pisreq% votes
	Not PlayerFirst;PlayerSay ** You have already voted **
	If %server_shotgunvote% >= %server_pisreq%;Set %server_m16aekvote% 0;Say PLAYER VOTED: PISTOL ONLY from now by vote!!!

On Say;Text !KNIFE;Map MP_Subway
	ServerFirst;Set %server_m16aekvote% 0
	If %p% == admin;Set %server_m16aekvote% 2
	PlayerFirst;Incr %server_m16aekvote%;Say %p% voted for KNIFE ONLY. %server_m16aekvote%/%server_knifereq% votes
	Not PlayerFirst;PlayerSay ** You have already voted **
	If %server_m16aekvote% >= %server_knifereq%;Set %server_shotgunvote% 0;Say PLAYER VOTED: KNIFE ONLY from now by vote!!!

On Say;Text !NOROCKET;Map MP_Subway
	ServerFirst;Set %server_rpgvote% 0
	If %p% == admin;Set %server_rpgvote% 2
	PlayerFirst;Incr %server_rpgvote%;Say %p% voted for NO RPG/SMAW. %server_rpgvote%/%server_banreq% votes
	Not PlayerFirst;PlayerSay ** You have already voted **
	If %server_rpgvote% >= %server_banreq%;Say PLAYER VOTED: RPG/SMAW banned from now by vote!!!

On Say;Text !NOM32;Map MP_Subway
	ServerFirst;Set %server_320vote% 0
	If %p% == admin;Set %server_320vote% 2
	PlayerFirst;Incr %server_320vote%;Say %p% voted for NO M320. %server_320vote%/%server_banreq% votes
	Not PlayerFirst;PlayerSay ** You have already voted **
	If %server_320vote% >= %server_banreq%;Say PLAYER VOTED: M320 banned from now by vote!!!

On Say;Text !NORPGM320;Map MP_Subway
	ServerFirst;Set %server_r3vote% 0
	If %p% == admin;Set %server_r3vote% 2
	PlayerFirst;Incr %server_r3vote%;Say %p% voted for NO RPG & M320. %server_r3vote%/%server_banreq% votes
	Not PlayerFirst;PlayerSay ** You have already voted **
	If %server_r3vote% >= %server_banreq%;Say PLAYER VOTED: RPG & M320 banned from now by vote!!!

On Say;Text !NOGRENADE;Map MP_Subway
	ServerFirst;Set %server_nnadevote% 0
	If %p% == admin;Set %server_nnadevote% 2
	PlayerFirst;Incr %server_nnadevote%;Say %p% voted for NO GRENADE. %server_nnadevote%/%server_banreq% votes
	Not PlayerFirst;PlayerSay ** You have already voted **
	If %server_nnadevote% >= %server_banreq%;Say PLAYER VOTED: GRENADE banned from now by vote!!!

On Say;Text !NOC4;Map MP_Subway
	ServerFirst;Set %server_c4vote% 0
	If %p% == admin;Set %server_c4vote% 2
	PlayerFirst;Incr %server_c4vote%;Say %p% voted for NO C4. %server_c4vote%/%server_banreq% 3 votes
	Not PlayerFirst;PlayerSay ** You have already voted **
	If %server_c4vote% >= %server_banreq% 3;Say PLAYER VOTED: C4 banned from now by vote!!!

On Kill
	If %server_claymorevote% >= %server_banreq%;Weapon Weapons/Gadgets/Claymore/Claymore;PlayerCount 2;Kick PLAYER VOTED: Ban Claymore
	If %server_claymorevote% >= 3;Weapon Weapons/Gadgets/Claymore/Claymore;Kill 0;Say %p% PLAYER VOTED: Ban Claymore;Say %p% PLAYER VOTED: Ban Claymore;PlayerSay %p% PLAYER VOTED: Ban Claymore;PlayerYell 10 %p% PLAYER VOTED: Ban Claymore

	If %server_shotgunvote% >= %server_pisreq%;Not Damage Handgun;PlayerCount 2;Kick PLAYER VOTED: Pistol Only
	If %server_shotgunvote% >= %server_pisreq%;Not Damage Handgun;Kill 0;Say %p% PLAYER VOTED: Pistols Only;Say %p% PLAYER VOTED: Pistols Only;PlayerSay %p% PLAYER VOTED: Pistols Only;PlayerYell 10 %p% PLAYER VOTED: Pistols Only

	If %server_m16aekvote% >= %server_knifereq%;Not Damage Melee;PlayerCount 2;Kick PLAYER VOTED: Knife/Defilb/Repair Only
	If %server_m16aekvote% >= %server_knifereq%;Not Damage Melee;Kill 0;Say %p% PLAYER VOTED: Knife/Defilb/Repair Only;Say %p% PLAYER VOTED: Knife/Defilb/Repair Only;PlayerSay %p% PLAYER VOTED: Knife/Defilb/Repair Only;PlayerYell 10 %p% PLAYER VOTED: Knife/Defilb/Repair Only

	If %server_rpgvote% >= %server_banreq%;Weapon RPG-7;PlayerCount 2;Kick PLAYER VOTED: Ban RPG/SMAW
	If %server_rpgvote% >= %server_banreq%;Weapon SMAW;PlayerCount 2;Kick PLAYER VOTED: Ban RPG/SMAW
	If %server_rpgvote% >= %server_banreq%;Weapon RPG-7;Kill 0;Say %p% PLAYER VOTED: Ban RPG/SMAW;Say %p% PLAYER VOTED: Ban RPG/SMAW;PlayerSay %p% PLAYER VOTED: Ban RPG/SMAW;PlayerYell 10 %p% PLAYER VOTED: Ban RPG/SMAW
	If %server_rpgvote% >= %server_banreq%;Weapon SMAW;Kill 0;Say %p% PLAYER VOTED: Ban RPG/SMAW;Say %p% PLAYER VOTED: Ban RPG/SMAW;PlayerSay %p% PLAYER VOTED: Ban RPG/SMAW;PlayerYell 10 %p% PLAYER VOTED: Ban RPG/SMAW

	If %server_320vote% >= %server_banreq%;Weapon M320;PlayerCount 2;Kick PLAYER VOTED: Ban M320
	If %server_320vote% >= %server_banreq%;Weapon M320;Kill 0;Say %p% PLAYER VOTED: Ban M320;Say %p% PLAYER VOTED: Ban M320;PlayerSay %p% PLAYER VOTED: Ban M320;PlayerYell 10 %p% PLAYER VOTED: Ban M320

	If %server_r3vote% >= %server_banreq%;Damage ProjectileExplosive;PlayerCount 2;Kick PLAYER VOTED: Ban RPG/SMAW/M320
	If %server_r3vote% >= %server_banreq%;Damage ProjectileExplosive;Kill 0;Say %p% PLAYER VOTED: Ban RPG/SMAW/M320;Say %p% PLAYER VOTED: Ban RPG/SMAW/M320;PlayerSay %p% PLAYER VOTED: Ban RPG/SMAW/M320;PlayerYell 10 %p% PLAYER VOTED: Ban RPG/SMAW/M320

	If %server_nnadevote% >= %server_banreq%;Weapon M67;PlayerCount 2;Kick PLAYER VOTED: Ban GRENADE
	If %server_nnadevote% >= %server_banreq%;Weapon M67;Kill 0;Say %p% PLAYER VOTED: Ban GRENADE;Say %p% PLAYER VOTED: Ban GRENADE;PlayerSay %p% PLAYER VOTED: Ban GRENADE;PlayerYell 10 %p% PLAYER VOTED: Ban GRENADE

	If %server_c4vote% >= %server_banreq%;Weapon Weapons/Gadgets/C4/C4;PlayerCount 2;Kick PLAYER VOTED: Ban C4
	If %server_c4vote% >= %server_banreq%;Weapon Weapons/Gadgets/C4/C4;Kill 0;Say %p% PLAYER VOTED: Ban C4;Say %p% PLAYER VOTED: Ban C4;PlayerSay %p% PLAYER VOTED: Ban C4;PlayerYell 10 %p% PLAYER VOTED: Ban C4

On Say;Map MP_Subway;Text !rule5
	Say ## Want more weapon ban options_
	Say ## Opinion on weapon ban System_
	Say ## Give us your idea at fb.me/lavserver
	End

On Say;Map MP_Subway;Text !rule4
	Say ## !noCLAYMORE - Ban Claymores
	Say ## !KNIFE - Knife Only
	Say ## Vote for weapon bans. More at !rule5
	End

On Say;Map MP_Subway;Text !rule3
	Say ## !noC4 - Ban C4
	Say ## !PISTOL - Pistols Only
	Say ## Vote for weapon bans. More at !rule4
	End

On Say;Map MP_Subway;Text !rule2
	Say ## !noROCKET - Ban RPG
	Say ## !noM320 - Ban M320
	Say ## Vote for weapon bans. More at !rule3
	End

On Say;Map MP_Subway;Text !rul
	Say ## !noRPGM320 - Ban RPG & M320
	Say ## !noGrenade - Ban M67 Grenade
	Say ## Vote for weapon bans. More at !rule2
	End

On Spawn;Map MP_Subway;If %c% <= 5
	PlayerSay ## VOTE for weapon rules. %server_banreq% VOTES ONLY!
	PlayerSay ## !rules ~ !rule4 (Type !KNIFE for Knife Only)
4. Population Quota for each countries (version 2)

Edit the red parameters to modify the quota; set immunity country (duplicate condition to set multiple)

Code:

On Leave;If %_spawned% == 1;Decr %server_[%pcountrykey%]%;Log %server_[%pcountrykey%]% %pcountry% players remain;Set %_spawned% 0

On Spawn;PlayerFirst;Incr %server_[%pcountrykey%]%;Log %p% [%pcountry%/%server_[%pcountrykey%]%];Set %_spawned% 1
On Spawn;If %server_[%pcountrykey%]% > 12;If %pcountrykey% != xx;Kick We limit players from any countries to 12 (%pcountry%/%server_[%pcountrykey%]%);Say Population Limit for [%pcountry%/12] Reached, %p% kicked.
These codes might seems unoriginal. In fact yes, i've only modified some existing application by adding spices to sweeten them up for my purpose. Of my time in battlefield 3 i hasn't seen any other servers within my region running any customised codes like these so it might be nice if my server offers something new, unique.

 

There was other codes which i produced like myrcon.net/...proconrulz-v44j1-weapon-limits-and-other-event-triggered-admin-actions#entry12755 that isn't used because the purpose didn't get popular within the local players.

 

in all my coding experience with proconrulz had been a fulfilling and enjoyable one, letting lose my imaginations and realising them through planning, coding, and brain racking hot-troubleshooting.

 

Thanks bambam and everyone here for creating and maintaining such a powerful plugin for admins to customise our servers! without proconrulz BF3 would had been much limited.

 

*I had removed the 60 second wait in-between rounds*

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

Originally Posted by Bo0m3R*:

 

Hi guys,

 

Is it possible to create a rule to disable mines?

Specifically the M2 Slam, if not possible at least all the mines...

If yes, could anyone show me how to do it please?

 

Thanks a lot, cheers.

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