Jump to content

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


ColColonCleaner

Recommended Posts

Originally Posted by Brodatv*:

 

Some of vehicles are listed with cartain name like LAV25 or Gameplay/Vehicles/LAV25/LAV25, but rulz below should do it. Try it, maybe it will be working:

 

Damage VehicleTransport

Damage VehicleLight

Damage VehicleHeavy

Damage VehicleAir

Damage VehicleWater

 

Remember to have BF4.def updated

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

Originally Posted by m4gnet*:

 

Hi!

Somebody tell me? Why the third counter Dogtags does not display the result? shown: 0 0

 

(PlayerSay ~m4gnet~) o==),::::::> DOGTAGS HUNTER'S <::::::>

(PlayerSay ~m4gnet~) [1st] AutoCraft 2654-Dogtags [2nd] Vampir47 2371-Dogtags [3rd] 0 0-Dogtags

 

Like all written logical. But_!!!

________________________________________________? _________________________________________?

 

On Kill;Incr %ini_kills_kills[%p%]%

On Kill;Weapon knv-1;Incr %ini_knives_knives[%p%]%

 

On Kill;

If %ini_kills_kills[%p%]% > %ini_server_killsfirst%;Set %ini_server_killsfirst% %ini_kills_kills[%p%]%;Set %ini_server_playerfirst% %p%

If %ini_kills_kills[%p%]% %ini_server_killssecond%;Set %ini_server_killssecond% %ini_kills_kills[%p%]%;Set %ini_server_playersecond% %p%

If %ini_kills_kills[%p%]% %ini_server_killsthird%;Set %ini_server_killsthird% %ini_kills_kills[%p%]%;Set %ini_server_playerthird% %p%

If %ini_kills_kills[%p%]% %ini_server_killsfourth%;Set %ini_server_killsfourth% %ini_kills_kills[%p%]%;Set %ini_server_playerfourth% %p%

If %ini_kills_kills[%p%]% > %ini_server_mostkills%;Set %ini_server_mostkills% %ini_kills_kills[%p%]%;Set %ini_server_mostkillsplayer% %p%

 

if %ini_server_playersecond% == %ini_server_playerfirst%;Set %ini_server_playersecond% %ini_server_playerthird%;Set %ini_server_killssecond% %ini_server_killsthird%

if %ini_server_playerthird% == %ini_server_playersecond%;Set %ini_server_playerthird% %ini_server_playerfourth%;Set %ini_server_killsthird% %ini_server_killsfourth%

 

On Kill;

If %ini_knives_knives[%p%]% > %ini_server_knivesfirst%;Set %ini_server_knivesfirst% %ini_knives_knives[%p%]%;Set %ini_server_knivesplayerfirst% %p%

If %ini_knives_knives[%p%]% %ini_server_knivessecond%;Set %ini_server_knivessecond% %ini_knives_knives[%p%]%;Set %ini_server_knivesplayersecond% %p%

If %ini_knives_knives[%p%]% %ini_server_knivessthird%;Set %ini_server_knivesthird% %ini_knives_knives[%p%]%;Set %ini_server_knivesplayerthird% %p%

If %ini_knives_knives[%p%]% %ini_server_knivesfourth%;Set %ini_server_knivesfourth% %ini_knives_knives[%p%]%;Set %ini_server_knivesplayerfourth% %p%

If %ini_knives_knives[%p%]% > %ini_server_mostknives%;Set %ini_server_mostknives% %ini_knives_knives[%p%]%;Set %ini_server_mostknivesplayer% %p%

 

if %ini_server_knivesplayersecond% == %ini_server_knivesplayerfirst%;Set %ini_server_knivesplayersecond% %ini_server_knivesplayerthird%;Set %ini_server_knivessecond% %ini_server_knivesthird%

if %ini_server_knivesplayerthird% == %ini_server_knivesplayersecond%;Set %ini_server_knivesplayerthird% %ini_server_knivesplayerfourth%;Set %ini_server_knivesthird% %ini_server_knivesfourth%

 

#TRIGGER FOR SHOWING SERVERS BEST 3 PLAYERS

On Say;Text !best

PlayerSay ~~~~~~~~~~ History of 3 Players Max Kills ~~~~~~~~~~

PlayerSay [1st] %ini_server_playerfirst% %ini_server_killsfirst%-Kills [2nd] %ini_server_playersecond% %ini_server_killssecond%-Kills [3rd] %ini_server_playerthird% %ini_server_killsthird%-Kills

 

On Say;Text !dogtags

PlayerSay o==),::::::> DOGTAGS HUNTER'S <::::::>

PlayerSay [1st] %ini_server_knivesplayerfirst% %ini_server_knivesfirst%-Dogtags [2nd] %ini_server_knivesplayersecond% %ini_server_knivessecond%-Dogtags [3rd] %ini_server_knivesplayerthird% %ini_server_knivesthird%-Dogtags

 

Max Kills - works fine.

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

Originally Posted by 397Seth*:

 

Hi,

 

I switched to another procon server and reconfigured the plug-ins.

I know that proconrulz comes with preconfigured messages. I have them disabled but I still get the message:

[ADMIN] type !rules for Server Rules

 

Where can I disable that. It spammes every 30 seconds and it's driving me nuts :sad:

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

Originally Posted by ty_ger07*:

 

Did you disable and re-enable ProconRulz or restart the Procon layer server after you deleted/emptied the ProconRulz text files? Changes to the ProconRulz text files don't do anything until ProconRulz is disabled and re-enabled or Procon layer is restarted.

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

Originally Posted by m4gnet*:

 

Hi LjMjollnir! Maybe you know the solution?

 

On Kill;Incr %ini_kills_kills[%p%]%

On Kill;Weapon knv-1;Incr %ini_knives_knives[%p%]%

 

On Kill;

If %ini_kills_kills[%p%]% > %ini_server_killsfirst%;Set %ini_server_killsfirst% %ini_kills_kills[%p%]%;Set %ini_server_playerfirst% %p%

If %ini_kills_kills[%p%]% %ini_server_killssecond%;Set %ini_server_killssecond% %ini_kills_kills[%p%]%;Set %ini_server_playersecond% %p%

If %ini_kills_kills[%p%]% %ini_server_killsthird%;Set %ini_server_killsthird% %ini_kills_kills[%p%]%;Set %ini_server_playerthird% %p%

If %ini_kills_kills[%p%]% %ini_server_killsfourth%;Set %ini_server_killsfourth% %ini_kills_kills[%p%]%;Set %ini_server_playerfourth% %p%

If %ini_kills_kills[%p%]% > %ini_server_mostkills%;Set %ini_server_mostkills% %ini_kills_kills[%p%]%;Set %ini_server_mostkillsplayer% %p%

 

if %ini_server_playersecond% == %ini_server_playerfirst%;Set %ini_server_playersecond% %ini_server_playerthird%;Set %ini_server_killssecond% %ini_server_killsthird%

if %ini_server_playerthird% == %ini_server_playersecond%;Set %ini_server_playerthird% %ini_server_playerfourth%;Set %ini_server_killsthird% %ini_server_killsfourth%

 

On Kill;

If %ini_knives_knives[%p%]% > %ini_server_knivesfirst%;Set %ini_server_knivesfirst% %ini_knives_knives[%p%]%;Set %ini_server_knivesplayerfirst% %p%

If %ini_knives_knives[%p%]% %ini_server_knivessecond%;Set %ini_server_knivessecond% %ini_knives_knives[%p%]%;Set %ini_server_knivesplayersecond% %p%

If %ini_knives_knives[%p%]% %ini_server_knivessthird%;Set %ini_server_knivesthird% %ini_knives_knives[%p%]%;Set %ini_server_knivesplayerthird% %p%

If %ini_knives_knives[%p%]% %ini_server_knivesfourth%;Set %ini_server_knivesfourth% %ini_knives_knives[%p%]%;Set %ini_server_knivesplayerfourth% %p%

If %ini_knives_knives[%p%]% > %ini_server_mostknives%;Set %ini_server_mostknives% %ini_knives_knives[%p%]%;Set %ini_server_mostknivesplayer% %p%

 

if %ini_server_knivesplayersecond% == %ini_server_knivesplayerfirst%;Set %ini_server_knivesplayersecond% %ini_server_knivesplayerthird%;Set %ini_server_knivessecond% %ini_server_knivesthird%

if %ini_server_knivesplayerthird% == %ini_server_knivesplayersecond%;Set %ini_server_knivesplayerthird% %ini_server_knivesplayerfourth%;Set %ini_server_knivesthird% %ini_server_knivesfourth%

 

#TRIGGER FOR SHOWING SERVERS BEST 3 PLAYERS

On Say;Text !best

PlayerSay ~~~~~~~~~~ History of 3 Best Players ~~~~~~~~~~

PlayerSay [1st] %ini_server_playerfirst% %ini_server_killsfirst%-Kills [2nd] %ini_server_playersecond% %ini_server_killssecond%-Kills [3rd] %ini_server_playerthird% %ini_server_killsthird%-Kills

 

On Say;Text !knife;PlayerSay %p% has %ini_knives_knives[%p%]% Knife Kills

On Say;Text !dogtags

PlayerSay o==),::::::> DOGTAGS HUNTER'S <::::::>

PlayerSay [1st] %ini_server_knivesplayerfirst% %ini_server_knivesfirst%-Dogtags [2nd] %ini_server_knivesplayersecond% %ini_server_knivessecond%-Dogtags [3rd] %ini_server_knivesplayerthird% %ini_server_knivesthird%-Dogtags

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

Originally Posted by LjMjollnir*:

 

@m4gnet

 

Ill have a look at it tomorrow if i get a chance.. on another note when posting code can you put it in [ code][ /code] blocks next time.. makes it alot easier to read :P (remove the spaces in the code tags...)

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

Originally Posted by EliteSniperForce*:

 

Hi,

 

Why "On Kill;Weapon Glock18;Log %p% kicked;Kick %p% No G18

Kick G17 players too....

And how change that? : (

 

Thx

We have same problem in our server.

Pls help.

Thank you. :smile:

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

Originally Posted by trans-am*:

 

@AgentHawk: you can try this

 

1st & 2nd kill on Explosives - Slay player - warning (playerSay & playerYell) given to player

3rd kill on Explosives - Kick

4th kill on Explosives - 30mins ban

Excluded: Flashbang kill.

 

Code:

# INFORMATION ON FIRST SPAWN
On Spawn;PlayerFirst;PlayerSay EXPLOSIVES ARE NOT ALLOWED;PlayerYell EXPLOSIVES ARE NOT ALLOWED

# KILL AND KICK RULES
On Kill;Not Weapon U_Flashbang;Damage Explosive,ProjectileExplosive;PlayerCount 3;Log %p% was BANNED for using a %w%;Say BANNED: %p% for using a %w%;TempBan 1800 %p%, No EXPLOSIVES! (30m ban)! You used a %w%.
On Kill;Not Weapon U_Flashbang;Damage Explosive,ProjectileExplosive;PlayerCount 2;Log %p% was KICKED for using a %w%;Say KICKED: %p% for using a %w%;Kick %p%, No EXPLOSIVES! You used a %w%.
On Kill;Not Weapon U_Flashbang;Damage Explosive,ProjectileExplosive;PlayerCount 1;Log %p% has %c%/2 offenses (%w%);Set %warnyell% 2;Say WARNING: %p%, warning %c%/2 for using a %w%;PlayerSay WARNING: %p%, warning %c%/2 for using a %w%;Kill 100
On Kill;Not Weapon U_Flashbang;Damage Explosive,ProjectileExplosive;Log %p% has %c% offenses (%w%);Set %warnyell% 1;Say WARNING: %p%, warning %c%/2 for using a %w%;PlayerSay WARNING: %p%, warning %c%/2 for using a %w%;Kill 100

# WARNING YELL ON SPAWN
On Spawn;If %warnyell% == 1;Log :Explosive: warning yell 1/2 given to %p%;PlayerYell %p%, you've 1/2 offenses!No EXPLOSIVES!;PlayerSay %p%, you've 1/2 offenses!No EXPLOSIVES!;Set %warnyell% 0
On Spawn;If %warnyell% == 2;Log :Explosive: warning yell 2/2 given to %p%;PlayerYell %p%, you've 2/2 offenses!No EXPLOSIVES! NEXT WILL BE A KICK;PlayerSay %p%, you've 2/2 offenses!No EXPLOSIVES! NEXT WILL BE A KICK;Set %warnyell% 0
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by LjMjollnir*:

 

@m4gnet

 

My god that logic broke my brain... and that is a problem :P... firstly the way you are updating the information you actually lose important data every time someone takes a spot on the leaderboard ... it does get recovered if the player that lost its data gets a kill.. but its horrible bad code... there is no real easy way to write what you are after without massive IF chains in proconrulz and right at the moment i am in no mental state to attempt it... nor do i even have a server to test with right now 8(..

 

but you need to check for things such as

playerkills > firstkills.. if player == first player if so update that players stats

playerkills > firstkills.. if player != first player; if player == second player.. SWAP first player and second player stats

playerkills > firstkills.. if player != first player; if player == thirdplayer Swap Second with third.. then swap second with first (rare but it is possible for the 3rd placer to skip to second place on tied kills for example)

then you need to do similar checks for the second player (while also checking to make sure you didnt already change it the first series)

playerkills > secondkills .. if player == second player.. update stats

playerkills > secondkills .. if player != second player if player= third player.. SWAP stats

then lastly you need to check the third player (if nothing changed in the first 2 sets)

if playerkills > thirdplayer .. if player == thirdplayer .. update stats

if playerkills > thirdplayer .. if player != thirdplayer .. set new player as third spot

 

I didnt get around to checking why you dont have information on the 3rd dogtager.. but its possibly related to the above problem.. i seen the logic issues in both sets of code.. and with it showing 0's it just means there is no data in those variables.

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

Originally Posted by JR_Skryllex*:

 

Hello everyone, I'm not very good with the log of procon.

I would like to set up my server (24 slots in operation locker) are knife, pistol and defib (no shorty)

 

no assault weapon, no sniper weapon, no support weapon and no mechanical weapon.

but only handgun for these classes.

 

2 warnings, and at the third ---> player kick!!

 

Someone can paste the full log?

 

thank you

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

Originally Posted by BUG*:

 

I've done some looking around for something to kill a player if they use a weapon with lock-on function, and on 2nd time temporary ban him. So far with code below i atleast know it will kill the player, but havnt had chance to try if it will actually ban on 2nd kill, you think it will work?

Code:

# NO FIM-92 STINGER
On Kill;Weapon U_FIM92;PlayerCount 1;Log %p% Temporary banned 24h for using FGM-92 STINGER;TempBan 86400 %p% FGM-184 JAVELIN
On Kill;Weapon U_FIM92;PlayerSay %p% FGM-92 STINGER not allowed, next time ban will be issued.;Kill 100
Also some weapons dont have their own lock-on function like the SRAW, but can lock-on with help of gadgets, is it possible to track if someone is killed with help of SOFLAM or PLD, and have the rules react like in code above?
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by LjMjollnir*:

 

Also some weapons dont have their own lock-on function like the SRAW, but can lock-on with help of gadgets, is it possible to track if someone is killed with help of SOFLAM or PLD, and have the rules react like in code above?

Nope. well could be a way via checking scores n such.. but very unreliable... and not worth the effort.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by BUG*:

 

Ok, thx LjMjollnir. Suspected it wasnt possible.

 

Anotheer question, trying to make a welcome message then a player joins the server. Tried with using the "vars.serverMessage" in startup.txt but wont display for me.

 

Better luck with ProconRulz, but not been able to work with "On Join" but working then i use "On Spawn" but sometimes it looks like its been showing several times, not 100% on that. Also it don't seem to activate chat window so a player wont see it unless he activates chat self, also seem to keep chat visible all time. Cant be sure all above is related to that rule, but any suggestion welcome.

 

Code:

On Spawn;PlayerOnce;PlayerSay Welcome to the server %p%. Type !rules to read them.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by LjMjollnir*:

 

@Bug.. vars.serverMessage was working on my server i had also set vars.serverDescription aswell..

 

That rule looks fine to me... you could try PlayerYell instead of the Say to display it as a yell for the first time they log in

 

The reason it doesnt work with On Join is because the player doesnt actually exist on the server at that point in time :ohmy: rather silly.. but yeah it triggers that rule as a play hits the connect button to join your server and as such they are often in loading screens and not actually in the server as such.

 

you have no control over the players chat window.. so if you really have to get a message across Yell is the only option.. tho dont use it too often it pisses people off sometimes :ohmy: and you can only have 1 Yell per player up at a time (any following Yells will immediately overwrite the Yell and wont be seen)

on a side note.. Yell doesnt work on dead people.. so dont use it then...

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

Originally Posted by Madatme2*:

 

OK this is probably a noob question, but searching brings up so many results I thought it would be easier to ask.

I use the following code to yell a welcome message to the player as they spawn.

 

Code:

On Spawn;PlayerOnce;PlayerYell 5 Welcome to our server %p%! Commands available are !rules & !snipers
This works perfectly. No problems.

However I wanted to use colour or bold text in the message to make bits stand out like the commands.

 

I tried this to turn the commands red

Code:

On Spawn;PlayerOnce;PlayerYell 5 Welcome to our server %p%! Commands available are ^8!rules ^0& ^8!snipers
However all the player sees is those characters rather than colours, so "Welcome to our server Player! Commands available are ^8!rules ^0& ^8!snipers"

 

Wanted to do something similar with the !rules messages as well in the chat.

 

Is this possible ?

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

Originally Posted by m4gnet*:

 

my code started with the line

Code:

On Join;Not Rate 2 30;admin;Say Admin - %p% is joining the server.;set %ini_joining_[%p%]% 1
On Join;Not Rate 2 30;Not Admin;Say a new player is joining -  %p%;set %ini_joining_[%p%]% 1
make sure you put it all in there.

 

ahhh i see you copied from the second example and i forgot to add those lines...

Hi LjMjollnir!!!

My version BFBC2;

 

On Join;Not Admin;Incr %ini_joining?[%p%]%

On Join;ServerFirst;Not Admin;If %ini_joining?[%p%]% == 1;Say a new player is joining - %p%

 

:P

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

Originally Posted by LjMjollnir*:

 

Hi LjMjollnir!!!

My version BFBC2;

 

On Join;Not Admin;Incr %ini_joining?[%p%]%

On Join;ServerFirst;Not Admin;If %ini_joining?[%p%]% == 1;Say a new player is joining - %p%

 

:P

No no... that can fail :ohmy:

 

specifically the line

Code:

On Join;Not Admin;Incr %ini_joining_[%p%]%
What that does is just increase the variable each time... so when it gets to the second line it might not be == 1 :ohmy: for example

joining == 0 , Player attempts to join for the first time joining == 1, Connection fails, Player attempts to rejoin, joining == 2 etc etc..

 

make sure you Set it to 1 then clear after they join.. otherwise it will only ever show the once (sometimes never)

Also that set of code was for counting the number of times someone has joined... you have removed all the useful stuff...

if all you want to do is announce a player is joining you could just use

 

Code:

On Join;Not Admin;Say a new player is joining %p%
On Join;Admin;Say Admin %p% is joining
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by trans-am*:

 

@ usermac:

 

1st & 2nd kill on Explosives - Slay player - warning (playerSay & playerYell) given to player

3rd kill on Explosives - Kick

4th kill on Explosives - 30mins ban

Expect for this: Flashbang kill.

 

If you wanna include Flashbang, remove the code in red.

 

Code:

# INFORMATION ON FIRST SPAWN
On Spawn;PlayerFirst;PlayerSay EXPLOSIVES ARE NOT ALLOWED;PlayerYell EXPLOSIVES ARE NOT ALLOWED

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

# WARNING YELL ON SPAWN
On Spawn;If %warnyell% == 1;Log :Explosive: warning yell 1/2 given to %p%;PlayerYell %p%, you've 1/2 offenses!No EXPLOSIVES!;PlayerSay %p%, you've 1/2 offenses!No EXPLOSIVES!;Set %warnyell% 0
On Spawn;If %warnyell% == 2;Log :Explosive: warning yell 2/2 given to %p%;PlayerYell %p%, you've 2/2 offenses!No EXPLOSIVES! NEXT WILL BE A KICK;PlayerSay %p%, you've 2/2 offenses!No EXPLOSIVES! NEXT WILL BE A KICK;Set %warnyell% 0
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by m4gnet*:

 

LjMjollnir

So the fact of the matter is that a new player joins only once. Repeat old players? the server does not advertise it. It is logical.

 

# Join/Leave Announcer

On Join;Not Admin;Yell 3000 %p% joined...

On Leave;Yell 3000 %p% left...

 

On Join;Not Admin;Incr %ini_joining?[%p%]%

On Join;ServerFirst;Not Admin;If %ini_joining?[%p%]% == 1;Yell 5000 A New Player is Joining - %p%

 

On Join;Set %server_friends% ~m4gnet~

On Spawn;If %server_friends% contains %p%;

On Spawn;PlayerOnce;If %p% == ~m4gnet~;Yell 5000 Owner %p% joined the Server!

 

:smile: I have everything working perfectly (BFBC2).

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

Originally Posted by trans-am*:

 

@ JR_Skryllex

1st & 2nd kill - Slay player - warning (playerSay & playerYell) given to player

3rd kill - Kick

4th kill - 30mins ban

 

Code:

# INFORMATION ON FIRST SPAWN
On Spawn;PlayerFirst;PlayerSay Knife,Pistol & Defib ONLY!!;PlayerYell Knife,Pistol & Defib ONLY!!

# KILL AND KICK RULES
On Kill;Map MP_Prison;Not Damage Handgun;Not Weapon Melee,U_Defib,U_Repairtool,U_M93R,U_Glock18;PlayerCount 3;Log %p% was BANNED for using a %w%;Say BANNED: %p% for using a %w%;TempBan 1800 %p%, Knife,Pistol & Defib ONLY! (30m ban)! You used a %w%.
On Kill;Map MP_Prison;Not Damage Handgun;Not Weapon Melee,U_Defib,U_Repairtool,U_M93R,U_Glock18;PlayerCount 2;Log %p% was KICKED for using a %w%;Say KICKED: %p% for using a %w%;Kick %p%, Knife,Pistol & Defib ONLY! You used a %w%. 
On Kill;Map MP_Prison;Not Damage Handgun;Not Weapon Melee,U_Defib,U_Repairtool,U_M93R,U_Glock18;PlayerCount 1;Log %p% has %c%/2 offenses (%w%);Set %warnyell% 2;Say WARNING: %p%, warning %c%/2 for using a %w%;PlayerSay WARNING: %p%, warning %c%/2 for using a %w%;Kill 100
On Kill;Map MP_Prison;Not Damage Handgun;Not Weapon Melee,U_Defib,U_Repairtool,U_M93R,U_Glock18;Log %p% has %c% offenses (%w%);Set %warnyell% 1;Say WARNING: %p%, warning %c%/2 for using a %w%;PlayerSay WARNING: %p%, warning %c%/2 for using a %w%;Kill 100

# WARNING YELL ON SPAWN
On Spawn;If %warnyell% == 1;Log :Explosive: warning yell 1/2 given to %p%;PlayerYell %p%, you've 1/2 offenses!Knife,Pistol & Defib ONLY!;PlayerSay %p%, you've 1/2 offenses!Knife,Pistol & Defib ONLY!;Set %warnyell% 0
On Spawn;If %warnyell% == 2;Log :Explosive: warning yell 2/2 given to %p%;PlayerYell %p%, you've 2/2 offenses!Knife,Pistol & Defib ONLY! NEXT WILL BE A KICK;PlayerSay %p%, you've 2/2 offenses!Knife,Pistol & Defib ONLY! NEXT WILL BE A KICK;Set %warnyell% 0
**************************************************

 

Please take note:

1) This code have not been tested

2) Repair tool is include, remove the code in red if you want to exclude it

3) I remember that some pistol kill are not counted as pistol but doesn't remember which are those pistols

 

**************************************************

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

Originally Posted by chipeater01*:

 

Hi Trans-am

This is on behalf of Usermac - I put that code in but was getting following error.

 

"22:34:18 58] ProconRulz: System.NullReferenceException: Object reference not set to an instance of an object.

at PRoConEvents.ProconRulz.check_condition(ParsedRule rule, ConditionClass c, Int32 player_team_id, String player_name, Inventory inv, Kill k, String msg, Dictionary`2& keywords)"

 

Any idea why?

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

Originally Posted by LjMjollnir*:

 

@m4gnet

I guess if you only want to Say hey a new player has joined once and only ever once then that is correct...

 

Code:

On Join;Set %server_friends% ~m4gnet~
On Spawn;If %server_friends% contains %p%;
On Spawn;PlayerOnce;If %p% == ~m4gnet~;Yell 5000 Owner %p% joined the Server!
^^^ could be much shorter...

Code:

On Spawn;PlayerOnce;If %p% == ~m4gnet~;Yell 5000 Owner %p% joined the Server!
Line 1 of the Code (unless you are using %server_friends% someplace else) is rather pointless

also it assigns that Variable EVERY TIME a person joins.. since its a constant you could ignore the variable and just hard code your name in (unless you are adding to it later.. but then still it gets over written each time someone joins so im assuming it doesnt)

Better use would be using On Init instead of On Join (variable gets setup once per round)

 

Line 2

Code:

On Spawn;If %server_friends% contains %p%;
Has no action.. line ends with a ; (terminates the follow on effect of rules)... This line does absolutely nothing. and even if it didnt end with a ; the next line has a trigger so therefore the rule still does not follow on :ohmy:...

basically all this line does is do.. Someone Spawned.. is the person that Spawned the same person as the name contained in %server_friends%.. if not Do nothing.. if yes.. do nothing...

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

Originally Posted by _lecro_*:

 

Hi guys ,

 

We have been told by one player tonight that CS5(new sniper from Dragon tooth DLC) is not on sniper rifles list and he could use it without getting killed when not having sniper slot,

how can this be rectified ?

 

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.