Jump to content

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


ColColonCleaner

Recommended Posts

Originally Posted by gillibong*:

 

Hello guys!

 

I want to add to proconrulz plugin a first spwan welcome message and i dont know how:sad:

 

i want it to be showed only to the player that joined and to appear as a yell massage

 

Thanks for the help guys @burockk

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

Originally Posted by gillibong*:

 

Hello guys!

 

I want to add to proconrulz plugin a first spwan welcome message and i dont know how

 

i want it to be showed only to the player that joined and to appear as a yell massage

 

Thanks for the help guys @burockk

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

Originally Posted by BuRockK*:

 

Hello guys!

 

I want to add to proconrulz plugin a first spwan welcome message and i dont know how

 

i want it to be showed only to the player that joined and to appear as a yell massage

 

Thanks for the help guys @burockk

Heres your code:

 

Code:

On Spawn;PlayerFirst;PlayerYell 8 [b]Your Message Here[/b]
Add this code to ProconRulz>Plugin Settings>Rules
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ColColonCleaner*:

 

Thank you!!!!!

 

one question. how can i do that the yell message will appear for 15 seconds ?

 

Thanks!!!

 

@burockk

Yikes. A 15 second spawn yell message is much much too long. People will either end up turning off admin yells completely on their game client or just getting mad at your server for blocking their screen for so long.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by AlcaGamerZ*:

 

hi burockk sorry for the delay , i'm quite busy lately . anyway here is the screenshot u asked ? . The Ign armxperson is not an admin or vip, and he said it doesn't show anything . more , i disabled other plugin and values just for me not to confuse which one is the proconrulz message in the plugin console . here it is

 

Shotgun

Screenshot_34.png

 

SniperScreenshot_35.png

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

Originally Posted by BuRockK*:

 

Im not sure where the problem is.

 

But it seems like its returning "False" because the command entered is not the players second time? wth? i did not understand this error proconrulz is sending to plugin console. Perhaps a developer can help you out on this.

 

I hope you didnt delete something wrong by mistake when Dete96 told you to change the text output for players:

 

TeamSay SHOTGUN-LIMIT: Shotguns are limited on MAP LOCKER

 

has nothing to do with the limit. It just is a text the team gets when a player of that team typed "!shotgun".

Just change it to whatever you want. Maybe just: "TeamSay SHOTGUN-LIMIT: Shotguns are limited!"

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

Originally Posted by AlcaGamerZ*:

 

Im not sure where the problem is.

 

But it seems like its returning "False" because the command entered is not the players second time? wth? i did not understand this error proconrulz is sending to plugin console. Perhaps a developer can help you out on this.

 

I hope you didnt delete something wrong by mistake when Dete96 told you to change the text output for players:

i have no idea , maybe these screenshots might help you out . Anyway just incase i reupload new code (which i copied your code) . and try it again .

 

one

Screenshot_37.png

two

Screenshot_38.png

three

Screenshot_39.png

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

Originally Posted by BuRockK*:

 

First screenshot: Player is "Protected".

Second screenshot: Doesnt show anything related to the limiting rules.

Third screenshot: Player seems to pass all conditions and limiting rules should work with him. Test the commands with him.

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

Originally Posted by BuRockK*:

 

Guys, tell me please, can I somehow to make on each new round deleting and writing names from reservedslotslist.txt to %ini_vars_reserved%?

It is possible for ProconRulz to execute server commands with "Exec "

 

Check the latest updated version of server administration protocol pdf for available rcon commands:

showthread....st-Server-Docs*

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

Originally Posted by Hodor*:

 

It is possible for ProconRulz to execute server commands with "Exec "

 

Check the latest updated version of server administration protocol pdf for available rcon commands:

showthread....st-Server-Docs*

Yes i know that. What i do wrong or where is my mistake?

Code:

On RoundStart;Exec reservedSlotsList.list %ini_vars_reserved%
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by BuRockK*:

 

Yes i know that. What i do wrong or where is my mistake?

Code:

On RoundStart;Exec reservedSlotsList.list %ini_vars_reserved%
If you look at the pdf file you will see theres no rcon command such as reservedSlotsList.list

 

if you cant see any rcon command in the pdf file that deletes/copies/adds to reservedslotslist file, then it means its not possible.

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

Originally Posted by Chilace*:

 

Guys, tell me please, can I somehow to make on each new round deleting and writing names from reservedslotslist.txt to %ini_vars_reserved%?

Try this:

 

Code:

On Round;Set %ini_vars_reserved% %reserved_slot_players%
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by AlcaGamerZ*:

 

First screenshot: Player is "Protected".

Second screenshot: Doesnt show anything related to the limiting rules.

Third screenshot: Player seems to pass all conditions and limiting rules should work with him. Test the commands with him.

Alright i have run another test with the player like before . Alcagamerz is me which is an admin , Nazryen is only normal player . here is the result

 

oh ya , the player also said , when he did !sniper and !shotgun , it's the same nothing appears in the chat box . just like i mention before

 

One

Screenshot_50.png

 

two

Screenshot_51.png

 

three

Screenshot_52.png

 

four

Screenshot_53.png

 

five

Screenshot_54.png

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

Originally Posted by BuRockK*:

 

Alright i have run another test with the player like before . Alcagamerz is me which is an admin , Nazryen is only normal player . here is the result

 

oh ya , the player also said , when he did !sniper and !shotgun , it's the same nothing appears in the chat box . just like i mention before

 

One

Screenshot_50.png

 

two

Screenshot_51.png

 

three

Screenshot_52.png

 

four

Screenshot_53.png

 

five

Screenshot_54.png

4th screenshot is the same as 5th one. But it will probably show what i saw in earlier screenshots you posted, he will pass conditions of the limit but no text will execute. At this point i dont know what else could be going wrong.

 

For one last check, disable all of your plugins in Procon except "ProconRulz" and "In-Game Admin" plugins. Then try the limit commands again with a non VIP or Admin player account. If it still dont work, perhaps someone else who might know the problem can help you further on this.

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

Originally Posted by RAZOR_HD*:

 

Hi does anyone no of this plugin.

 

https://www.youtube.com/watch_v=9FD5gYvnwiY

 

its a pistol only server but if you get over 100 kills with any pistols.5 shield bash kills.1 repair torch kill it allows you to use all weapons.ive been told it can be used for this plugin ProconRulz.thankyou

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

Originally Posted by BuRockK*:

 

yes, you can. heres a good script..

 

fixed the code so warning yell msgs appear after player is auto-killed on using restricted weapon (not tested):

 

Code:

# ColonelSeven's Pistol and Melee for Battlefield 4 v0.5
# Information Shouts
On Spawn;PlayerFirst;PlayerYell %p%, this server is Pistol and Melee only (Defib,Repair,Knife,Pistol)!;PlayerSay %p%, type !weapons and !commands in chat for more info!
On Say;Text !allowed,!weapons;PlayerSay ::: ALLOWED: FLASHBANG,DEFIBRILLATOR,REPAIR TOOL,KNIFE,PISTOLS;PlayerSay ::: TAKE NOTE: Shorty 12G is classified as a shotgun;PlayerSay ::: TAKE NOTE: ALL Explosives are instant kick!
On Say;Text !commands;PlayerSay ::: COMMANDS: !weapons - !allowed

# Player Total Kicks and Bans check
On Join;If %ini_kickban_tbans[%p%]% == 3;TempBan 86400 %p%, you've been temp. banned 3 times. Ban for 24 hours.;Set %ini_kickban_tbans[%p%]% 0
On Join;If %ini_kickban_kicks[%p%]% == 15;TempBan 86400 %p%, you've been kicked 15 times. Ban for 24 hours.;Set %ini_kickban_kicks[%p%]% 0

# Original by bambam - Modified by ColonelSeven
# Explosives check first (flashbang excl. just in case)
On Kill;Not Weapon U_Flashbang;Damage Explosive;Log ^2EXPLOSIVE: ^1%p% ^0was KICKED for using a ^1%w%;Incr %ini_kickban_kicks[%p%]%;Say %p% was KICKED for using a %w%;Kick %p% Melee and Pistols only! You used a %w%.
On Kill;Not Weapon U_Flashbang;Damage ProjectileExplosive;Log ^2EXPLOSIVE: ^1%p% ^0was KICKED for using a ^1%w%;Incr %ini_kickban_kicks[%p%]%;Say %p% was KICKED for using a %w% ;Kick %p% Melee and Pistols only! You used a %w%.
# Weapons check second
On Kill;Not Weapon U_Flashbang;Not Weapon U_Defib; Not Weapon U_Repairtool;Not Weapon Melee;Not Damage Handgun;PlayerCount 3;Log ^1%p% ^0was BANNED for using a ^1%w%;Incr %ini_kickban_tbans[%p%]%;Say %p% was BANNED (15m) for using a %w%;TempBan 900 %p% (15min)  Melee and Pistols only! You used a %w%.
On Kill;Not Weapon U_Flashbang;Not Weapon U_Defib; Not Weapon U_Repairtool;Not Weapon Melee;Not Damage Handgun;PlayerCount 2;Log ^1%p% ^0was KICKED for using a ^1%w%;Incr %ini_kickban_kicks[%p%]%;Say %p% was KICKED for using a %w% ;Kick %p% Melee and Pistols only! You used a %w%.
On Kill;Not Weapon U_Flashbang;Not Weapon U_Defib; Not Weapon U_Repairtool;Not Weapon Melee;Not Damage Handgun;PlayerCount 1;Log ^1%p% ^0has ^2%c%/2 ^0offenses (^1%w%^0);Kill 100;Set %warnyell% 2;Say ::: WARNING: %p%, warning %c%/2 for using a %w%;PlayerSay %p%, Melee and Pistols only! You used a %w% (%c%/2);PlayerYell %p%, Melee and Pistols only! You used a %w% (%c%/2)
On Kill;Not Weapon U_Flashbang;Not Weapon U_Defib; Not Weapon U_Repairtool;Not Weapon Melee;Not Damage Handgun;Log ^1%p% ^0has ^2%c%/2 ^0offenses (^1%w%^0);Kill 100;Set %warnyell% 1;Say ::: WARNING: %p%, warning %c%/2 for using a %w%;PlayerSay %p%, Melee and Pistols only! You used a %w% (%c%/2);PlayerYell %p%, Melee and Pistols only! You used a %w% (%c%/2)

# Warning Yell On Spawn (after offense 1 and 2)
On Spawn;If %warnyell% == 2;Log Yell^2 2/2 ^0given to ^1%p%;PlayerYell %p%, you've 2/2 offenses! Next will be a KICK!;Set %warnyell% 0
On Spawn;If %warnyell% == 1;Log Yell^2 1/2 ^0given to ^1%p%;PlayerYell %p%, you've 1/2 offenses! Pistols and Melee only!;Set %warnyell% 0

# Kill Announcer
On Kill;Weapon Melee;Say *** %p% grabbed and stabbed %v%!!!
On Kill;If %wk% contains Defib;Say *** %p% zapped %v% with the Defib!!!
On Kill;If %wk% contains Repair;Say *** %p% killed %v% with the Repair Tool!!!
On Kill;If %wk% contains Flashbang;Say *** %p% killed %v% with a FLASHBANG!!!

# FIRSTBLOOD
On Kill;ServerFirst;Say *** %p% has FIRST BLOOD by killing %v% with a %w%
This script only limits using other weapons except pistols,defib,knife,repair tool and flashbang

 

 

Source:

myrcon.net/.../proconrulz-battlefield-4-pistols-and-melee-script

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

Originally Posted by AlcaGamerZ*:

 

4th screenshot is the same as 5th one. But it will probably show what i saw in earlier screenshots you posted, he will pass conditions of the limit but no text will execute. At this point i dont know what else could be going wrong.

 

For one last check, disable all of your plugins in Procon except "ProconRulz" and "In-Game Admin" plugins. Then try the limit commands again with a non VIP or Admin player account. If it still dont work, perhaps someone else who might know the problem can help you further on this.

hi , i'm sorry for late . been busy a little . anyway here it is . i disabled and remove my privilage and become a normal player and test it on my own with my own account . still the same , it doesn't show anything in the game but in the plugin console , it give respond , if this can't be done and cant do anything . can you re-code it back to just normal shotgunlimit and sniperlimit ? without vip exception . if this the vip exception can be work it would be great tho

 

screenshot 1

Screenshot_69.png

 

screenshot 2

Screenshot_70.png

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

Originally Posted by BuRockK*:

 

hi , i'm sorry for late . been busy a little . anyway here it is . i disabled and remove my privilage and become a normal player and test it on my own with my own account . still the same , it doesn't show anything in the game but in the plugin console , it give respond , if this can't be done and cant do anything . can you re-code it back to just normal shotgunlimit and sniperlimit ? without vip exception . if this the vip exception can be work it would be great tho

 

screenshot 1

Screenshot_69.png

 

screenshot 2

Screenshot_70.png

Here are the weapon limit rules without the VIP exclution (still wont work in GunMaster mode):

 

Shotgun Limit

Code:

# Shotgun Limit (2 pro Team)    ##########################
# IMPORTANT: HERE YOU CAN SET THE # OF SHOTGUN SLOT EACH TEAM:        #######
On Spawn;Not MapMode GunMaster;PlayerFirst; Set %shotgunlimit% 3
On Say;Not MapMode GunMaster;PlayerFirst; Set %shotgunlimit% 3

# KILL CHECK - RESERVE SHOTGUN-SLOT AFTER SHOTGUN KILL - NO FREE SLOT THAN KILL + MESSAGE        #######
On Kill;Damage Shotgun;Not MapMode GunMaster;
    If %server_global_shotguns[%ptk%]% >= %shotgunlimit%; If %server_global_playershotgunstatus[%p%][%ptk%]% != 1; TeamSay SHOTGUN-LIMIT: %p% was KILLED by shotgun limit (max %shotgunlimit% shotguns each team). Type !shotgun; PlayerYell KILLED by shotgun limit; Kill 100
    If %server_global_shotguns[%ptk%]% < %shotgunlimit%; If %server_global_playershotgunstatus[%p%][%ptk%]% != 1; Set %server_global_playershotgunstatus[%p%][%ptk%]% 1; Incr %server_global_shotguns[%ptk%]%; TeamSay SHOTGUN-LIMIT: %p% have a shotgun slot (%server_global_shotguns[%ptk%]%/%shotgunlimit%); PlayerSay SHOTGUN-LIMIT: Allowed weapons: Shotgun, Pistol, Nades, Knife; PlayerYell YOU HAVE A SHOTGUN SLOT

# MAKE SHOTGUN-SLOT FREE AFTER NO SHOTGUN KILL - (allowed kills with shotgun slot: Shotgun, Pistole, Nades, Knife, Vehicles...)        #######
On Kill;Not MapMode GunMaster;Not Damage Shotgun;Not Damage Explosive;Not Damage Handgun;Not Damage Melee;Not Damage VehicleWater;Not Damage VehicleAir;Not Damage VehicleStationary;Not Damage VehiclePersonal;Not Damage VehicleTransport;Not Damage VehicleLight;Not Damage VehicleHeavy; Not Weapon U_M67,U_Grenade_RGO,U_V40,U_M34,DamageArea,SoldierCollision,Death,RoadKill,VehicleUpsideDown,Suicide,U_BallisticShield,U_SUAV; If %server_global_playershotgunstatus[%p%][%ptk%]% == 1; Set %server_global_playershotgunstatus[%p%][%ptk%]% 0; Decr %server_global_shotguns[%ptk%]%; TeamSay SHOTGUN-LIMIT: %p% gave up his shotgun slot (%server_global_shotguns[%ptk%]%/%shotgunlimit%); Log DEBUG SHOTGUN-LIMIT: Player %p% killed %v% with WeaponID %wk% (lost shotgun slot); PlayerYell You lost your shotgun slot
On Leave;Not MapMode GunMaster; If %server_global_playershotgunstatus[%p%][%ptk%]% == 1; Set %server_global_playershotgunstatus[%p%][%ptk%]% 0; Decr %server_global_shotguns[%ptk%]%; TeamSay SHOTGUN-LIMIT: %p% gave up his shotgun slot (%server_global_shotguns[%ptk%]%/%shotgunlimit%)

# SERVER LEAVE + TEAM SWITCH CHECK        #######
On Spawn;Not MapMode GunMaster;
    if %ptk% != 0; if %server_global_playershotgunstatus[%p%][0]% == 1; Set %server_global_playershotgunstatus[%p%][0]% 0; PlayerSay SHOTGUN-LIMIT: You lost your shotgun slot (Team-Switch); PlayerYell You lost your shotgun slot
    if %ptk% != 1; if %server_global_playershotgunstatus[%p%][1]% == 1; Set %server_global_playershotgunstatus[%p%][1]% 0; PlayerSay SHOTGUN-LIMIT: You lost your shotgun slot (Team-Switch); PlayerYell You lost your shotgun slot
    if %ptk% != 2; if %server_global_playershotgunstatus[%p%][2]% == 1; Set %server_global_playershotgunstatus[%p%][2]% 0; PlayerSay SHOTGUN-LIMIT: You lost your shotgun slot (Team-Switch); PlayerYell You lost your shotgun slot
    if %ptk% != 3; if %server_global_playershotgunstatus[%p%][3]% == 1; Set %server_global_playershotgunstatus[%p%][3]% 0; PlayerSay SHOTGUN-LIMIT: You lost your shotgun slot (Team-Switch); PlayerYell You lost your shotgun slot
On Leave;Not MapMode GunMaster; If %server_global_playershotgunstatus[%p%][%ptk%]% == 1; Set %server_global_playershotgunstatus[%p%][%ptk%]% 0; Decr %server_global_shotguns[%ptk%]%; TeamSay SHOTGUN-LIMIT: %p% gave up his shotgun slot (%server_global_shotguns[%ptk%]%/%shotgunlimit%)

# !shotgun IN-GAME-CHAT COMMAND        #######
On Say;Text !shotgun;Not MapMode GunMaster; TeamSay SHOTGUN-LIMIT: Shotguns are limited on MAP LOCKER.; TeamSay SHOTGUN-LIMIT: Currently: %server_global_shotguns[%ptk%]% of %shotgunlimit% for your team; If %server_global_playershotgunstatus[%p%][%ptk%]% == 1; PlayerSay SHOTGUN-LIMIT: You have a shotgun slot! Allowed weapons: Shotgun, Pistol, Nades, Knife
Sniper/DMR limit

Code:

##### SNIPER LIMIT #####

# SET THE MAX # OF SNIPERS HERE:
On Kill;Not MapMode GunMaster;ServerFirst;Set %server_sniperlimit% 3
On Say;Not MapMode GunMaster;ServerFirst;Set %server_sniperlimit% 3

# SNIPER LOG MESSAGES
On Spawn;Not MapMode GunMaster; If %server_sl_sniper[%p%]% == 1;Log Sniper %pt% %p% re-spawned. %server_sl_total[%ptk%]% snipers on team %ptk%
On Kill;Not MapMode GunMaster; If %server_sl_sniper[%v%]% == 1;Log Sniper %vtk% %v% killed. %server_sl_total[%vtk%]% snipers on team %vtk%

# SNIPER KILL CHECKS either over limit (so kill), existing sniper (do nothing), new sniper (reserve slot)
On Kill;Not MapMode GunMaster;Damage SniperRifle;
If %server_sl_total[%ptk%]% >= %server_sniperlimit%;if %server_sl_sniper[%p%]% == 0;PlayerYell %p% killed by SNIPER/DMR LIMIT max %server_sniperlimit%;Log Sniper Limit max %server_sniperlimit% snipers each team !!! (now Kill %p%);Kill
If %server_sl_sniper[%p%]% == 1;Log %ptk% %p% still a sniper, %server_sl_total[%ptk%]% snipers on team %ptk%
If %server_sl_sniper[%p%]% == 0;Incr %server_sl_total[%ptk%]%;Set %server_sl_sniper[%p%]% 1;Set %server_sl_x% %server_sl_total[%ptk%]%;Set %server_sl_snipername[%ptk%][%server_sl_x%]% %p%;teamsay %p% have a sniper/DMR slot !!! (%server_sl_total[%ptk%]%/%server_sniperlimit%);Log %ptk% %p% is new sniper, %server_sl_total[%ptk%]%/%server_sniperlimit% snipers on team %ptk%

# FREE UP SNIPER SLOT IF SNIPER HAS NON-SNIPER KILL OR SNIPER LEAVES 
On Kill;Not MapMode GunMaster;Not Damage SniperRifle;Not Damage Handgun;Not Damage Melee;Not Damage DMR;Not Damage Explosive;If %server_sl_sniper[%p%]% == 1;Set %server_sl_sniper[%p%]% 0;Decr %server_sl_total[%ptk%]%;TeamSay %p% gave up his sniper/DMR slot!!!(%server_sl_total[%ptk%]%/%server_sniperlimit%);Log Ex-sniper %p% used %d% %wk%, %server_sl_total[%ptk%]% snipers on team %ptk%
On Leave;Not MapMode GunMaster; If %server_sl_sniper[%p%]% == 1;Set %server_sl_sniper[%p%]% 0;Decr %server_sl_total[%ptk%]%;TeamSay %p% gave up his SNIPER/DMR slot !!!(%server_sl_total[%ptk%]%/%server_sniperlimit%);Log Sniper %pt% %p% left server. %server_sl_total[%ptk%]% snipers on team %ptk%

On Say;Text !&;Not MapMode GunMaster
PlayerSay Sniper limit: %server_sl_total[%ptk%]%/%server_sniperlimit%.
If %server_sl_total[%ptk%]% == 0;PlayerSay 0/%server_sniperlimit% SNIPERS on team %pt%
If %server_sl_total[%ptk%]% > 0;PlayerSay %pt% SNIPER[1/%server_sniperlimit%] is %server_sl_snipername[%ptk%][1]%
If %server_sl_total[%ptk%]% > 1;PlayerSay %pt% SNIPER[2/%server_sniperlimit%] is %server_sl_snipername[%ptk%][2]%
If %server_sl_total[%ptk%]% > 2;PlayerSay %pt% SNIPER[3/%server_sniperlimit%] is %server_sl_snipername[%ptk%][3]%
If %server_sl_total[%ptk%]% > 3;PlayerSay %pt% SNIPER[4/%server_sniperlimit%] is %server_sl_snipername[%ptk%][4]%

On Say;Text !*;Not MapMode GunMaster;
PlayerSay Sniper limit: %server_sl_total[%ptk%]%/%server_sniperlimit%.
If %server_sl_total[%ptk%]% == 0;PlayerSay 0/%server_sniperlimit% SNIPERS on team %pt%
If %server_sl_total[%ptk%]% > 0;PlayerSay %pt% SNIPER[1/%server_sniperlimit%] is %server_sl_snipername[%ptk%][1]%
If %server_sl_total[%ptk%]% > 1;PlayerSay %pt% SNIPER[2/%server_sniperlimit%] is %server_sl_snipername[%ptk%][2]%
If %server_sl_total[%ptk%]% > 2;PlayerSay %pt% SNIPER[3/%server_sniperlimit%] is %server_sl_snipername[%ptk%][3]%
If %server_sl_total[%ptk%]% > 3;PlayerSay %pt% SNIPER[4/%server_sniperlimit%] is %server_sl_snipername[%ptk%][4]%

On Say;Text !sniper,!s;Not MapMode GunMaster;
    PlayerSay SNIPERS: Team 1: %server_sl_total[1]%/%server_sniperlimit%, Team 2: %server_sl_total[2]%/%server_sniperlimit%
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by AlcaGamerZ*:

 

Here are the weapon limit rules without the VIP exclution (still wont work in GunMaster mode):

 

Shotgun Limit

Code:

# Shotgun Limit (2 pro Team)    ##########################
# IMPORTANT: HERE YOU CAN SET THE # OF SHOTGUN SLOT EACH TEAM:        #######
On Spawn;Not MapMode GunMaster;PlayerFirst; Set %shotgunlimit% 3
On Say;Not MapMode GunMaster;PlayerFirst; Set %shotgunlimit% 3

# KILL CHECK - RESERVE SHOTGUN-SLOT AFTER SHOTGUN KILL - NO FREE SLOT THAN KILL + MESSAGE        #######
On Kill;Damage Shotgun;Not MapMode GunMaster;
    If %server_global_shotguns[%ptk%]% >= %shotgunlimit%; If %server_global_playershotgunstatus[%p%][%ptk%]% != 1; TeamSay SHOTGUN-LIMIT: %p% was KILLED by shotgun limit (max %shotgunlimit% shotguns each team). Type !shotgun; PlayerYell KILLED by shotgun limit; Kill 100
    If %server_global_shotguns[%ptk%]% < %shotgunlimit%; If %server_global_playershotgunstatus[%p%][%ptk%]% != 1; Set %server_global_playershotgunstatus[%p%][%ptk%]% 1; Incr %server_global_shotguns[%ptk%]%; TeamSay SHOTGUN-LIMIT: %p% have a shotgun slot (%server_global_shotguns[%ptk%]%/%shotgunlimit%); PlayerSay SHOTGUN-LIMIT: Allowed weapons: Shotgun, Pistol, Nades, Knife; PlayerYell YOU HAVE A SHOTGUN SLOT

# MAKE SHOTGUN-SLOT FREE AFTER NO SHOTGUN KILL - (allowed kills with shotgun slot: Shotgun, Pistole, Nades, Knife, Vehicles...)        #######
On Kill;Not MapMode GunMaster;Not Damage Shotgun;Not Damage Explosive;Not Damage Handgun;Not Damage Melee;Not Damage VehicleWater;Not Damage VehicleAir;Not Damage VehicleStationary;Not Damage VehiclePersonal;Not Damage VehicleTransport;Not Damage VehicleLight;Not Damage VehicleHeavy; Not Weapon U_M67,U_Grenade_RGO,U_V40,U_M34,DamageArea,SoldierCollision,Death,RoadKill,VehicleUpsideDown,Suicide,U_BallisticShield,U_SUAV; If %server_global_playershotgunstatus[%p%][%ptk%]% == 1; Set %server_global_playershotgunstatus[%p%][%ptk%]% 0; Decr %server_global_shotguns[%ptk%]%; TeamSay SHOTGUN-LIMIT: %p% gave up his shotgun slot (%server_global_shotguns[%ptk%]%/%shotgunlimit%); Log DEBUG SHOTGUN-LIMIT: Player %p% killed %v% with WeaponID %wk% (lost shotgun slot); PlayerYell You lost your shotgun slot
On Leave;Not MapMode GunMaster; If %server_global_playershotgunstatus[%p%][%ptk%]% == 1; Set %server_global_playershotgunstatus[%p%][%ptk%]% 0; Decr %server_global_shotguns[%ptk%]%; TeamSay SHOTGUN-LIMIT: %p% gave up his shotgun slot (%server_global_shotguns[%ptk%]%/%shotgunlimit%)

# SERVER LEAVE + TEAM SWITCH CHECK        #######
On Spawn;Not MapMode GunMaster;
    if %ptk% != 0; if %server_global_playershotgunstatus[%p%][0]% == 1; Set %server_global_playershotgunstatus[%p%][0]% 0; PlayerSay SHOTGUN-LIMIT: You lost your shotgun slot (Team-Switch); PlayerYell You lost your shotgun slot
    if %ptk% != 1; if %server_global_playershotgunstatus[%p%][1]% == 1; Set %server_global_playershotgunstatus[%p%][1]% 0; PlayerSay SHOTGUN-LIMIT: You lost your shotgun slot (Team-Switch); PlayerYell You lost your shotgun slot
    if %ptk% != 2; if %server_global_playershotgunstatus[%p%][2]% == 1; Set %server_global_playershotgunstatus[%p%][2]% 0; PlayerSay SHOTGUN-LIMIT: You lost your shotgun slot (Team-Switch); PlayerYell You lost your shotgun slot
    if %ptk% != 3; if %server_global_playershotgunstatus[%p%][3]% == 1; Set %server_global_playershotgunstatus[%p%][3]% 0; PlayerSay SHOTGUN-LIMIT: You lost your shotgun slot (Team-Switch); PlayerYell You lost your shotgun slot
On Leave;Not MapMode GunMaster; If %server_global_playershotgunstatus[%p%][%ptk%]% == 1; Set %server_global_playershotgunstatus[%p%][%ptk%]% 0; Decr %server_global_shotguns[%ptk%]%; TeamSay SHOTGUN-LIMIT: %p% gave up his shotgun slot (%server_global_shotguns[%ptk%]%/%shotgunlimit%)

# !shotgun IN-GAME-CHAT COMMAND        #######
On Say;Text !shotgun;Not MapMode GunMaster; TeamSay SHOTGUN-LIMIT: Shotguns are limited on MAP LOCKER.; TeamSay SHOTGUN-LIMIT: Currently: %server_global_shotguns[%ptk%]% of %shotgunlimit% for your team; If %server_global_playershotgunstatus[%p%][%ptk%]% == 1; PlayerSay SHOTGUN-LIMIT: You have a shotgun slot! Allowed weapons: Shotgun, Pistol, Nades, Knife
Sniper/DMR limit

Code:

##### SNIPER LIMIT #####

# SET THE MAX # OF SNIPERS HERE:
On Kill;Not MapMode GunMaster;ServerFirst;Set %server_sniperlimit% 3
On Say;Not MapMode GunMaster;ServerFirst;Set %server_sniperlimit% 3

# SNIPER LOG MESSAGES
On Spawn;Not MapMode GunMaster; If %server_sl_sniper[%p%]% == 1;Log Sniper %pt% %p% re-spawned. %server_sl_total[%ptk%]% snipers on team %ptk%
On Kill;Not MapMode GunMaster; If %server_sl_sniper[%v%]% == 1;Log Sniper %vtk% %v% killed. %server_sl_total[%vtk%]% snipers on team %vtk%

# SNIPER KILL CHECKS either over limit (so kill), existing sniper (do nothing), new sniper (reserve slot)
On Kill;Not MapMode GunMaster;Damage SniperRifle;
If %server_sl_total[%ptk%]% >= %server_sniperlimit%;if %server_sl_sniper[%p%]% == 0;PlayerYell %p% killed by SNIPER/DMR LIMIT max %server_sniperlimit%;Log Sniper Limit max %server_sniperlimit% snipers each team !!! (now Kill %p%);Kill
If %server_sl_sniper[%p%]% == 1;Log %ptk% %p% still a sniper, %server_sl_total[%ptk%]% snipers on team %ptk%
If %server_sl_sniper[%p%]% == 0;Incr %server_sl_total[%ptk%]%;Set %server_sl_sniper[%p%]% 1;Set %server_sl_x% %server_sl_total[%ptk%]%;Set %server_sl_snipername[%ptk%][%server_sl_x%]% %p%;teamsay %p% have a sniper/DMR slot !!! (%server_sl_total[%ptk%]%/%server_sniperlimit%);Log %ptk% %p% is new sniper, %server_sl_total[%ptk%]%/%server_sniperlimit% snipers on team %ptk%

# FREE UP SNIPER SLOT IF SNIPER HAS NON-SNIPER KILL OR SNIPER LEAVES 
On Kill;Not MapMode GunMaster;Not Damage SniperRifle;Not Damage Handgun;Not Damage Melee;Not Damage DMR;Not Damage Explosive;If %server_sl_sniper[%p%]% == 1;Set %server_sl_sniper[%p%]% 0;Decr %server_sl_total[%ptk%]%;TeamSay %p% gave up his sniper/DMR slot!!!(%server_sl_total[%ptk%]%/%server_sniperlimit%);Log Ex-sniper %p% used %d% %wk%, %server_sl_total[%ptk%]% snipers on team %ptk%
On Leave;Not MapMode GunMaster; If %server_sl_sniper[%p%]% == 1;Set %server_sl_sniper[%p%]% 0;Decr %server_sl_total[%ptk%]%;TeamSay %p% gave up his SNIPER/DMR slot !!!(%server_sl_total[%ptk%]%/%server_sniperlimit%);Log Sniper %pt% %p% left server. %server_sl_total[%ptk%]% snipers on team %ptk%

On Say;Text !&;Not MapMode GunMaster
PlayerSay Sniper limit: %server_sl_total[%ptk%]%/%server_sniperlimit%.
If %server_sl_total[%ptk%]% == 0;PlayerSay 0/%server_sniperlimit% SNIPERS on team %pt%
If %server_sl_total[%ptk%]% > 0;PlayerSay %pt% SNIPER[1/%server_sniperlimit%] is %server_sl_snipername[%ptk%][1]%
If %server_sl_total[%ptk%]% > 1;PlayerSay %pt% SNIPER[2/%server_sniperlimit%] is %server_sl_snipername[%ptk%][2]%
If %server_sl_total[%ptk%]% > 2;PlayerSay %pt% SNIPER[3/%server_sniperlimit%] is %server_sl_snipername[%ptk%][3]%
If %server_sl_total[%ptk%]% > 3;PlayerSay %pt% SNIPER[4/%server_sniperlimit%] is %server_sl_snipername[%ptk%][4]%

On Say;Text !*;Not MapMode GunMaster;
PlayerSay Sniper limit: %server_sl_total[%ptk%]%/%server_sniperlimit%.
If %server_sl_total[%ptk%]% == 0;PlayerSay 0/%server_sniperlimit% SNIPERS on team %pt%
If %server_sl_total[%ptk%]% > 0;PlayerSay %pt% SNIPER[1/%server_sniperlimit%] is %server_sl_snipername[%ptk%][1]%
If %server_sl_total[%ptk%]% > 1;PlayerSay %pt% SNIPER[2/%server_sniperlimit%] is %server_sl_snipername[%ptk%][2]%
If %server_sl_total[%ptk%]% > 2;PlayerSay %pt% SNIPER[3/%server_sniperlimit%] is %server_sl_snipername[%ptk%][3]%
If %server_sl_total[%ptk%]% > 3;PlayerSay %pt% SNIPER[4/%server_sniperlimit%] is %server_sl_snipername[%ptk%][4]%

On Say;Text !sniper,!s;Not MapMode GunMaster;
    PlayerSay SNIPERS: Team 1: %server_sl_total[1]%/%server_sniperlimit%, Team 2: %server_sl_total[2]%/%server_sniperlimit%
that's mean the code are a failure ?
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by gillibong*:

 

Hello guys!

 

I need help :\

 

i want insert a a command to proconruls to show a message every 5 minutes on the chat wimndow

 

example:

 

Join us On TeasmSpeak3 94.250.223.8:15069

 

I want it to show every 5 minutes

 

Is it possible ? and if yes can someone give me the Command for it?

 

Thanks!!!!

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

Originally Posted by ty_ger07*:

 

Hello guys!

 

I need help :\

 

i want insert a a command to proconruls to show a message every 5 minutes on the chat wimndow

 

example:

 

Join us On TeasmSpeak3 94.250.223.8:15069

 

I want it to show every 5 minutes

 

Is it possible ? and if yes can someone give me the Command for it?

 

Thanks!!!!

No, it is not possible with ProconRulz. ProconRulz cannot schedule tasks.

 

You should add it to your pbsv.cfg file on your game server as a punkbuster task.

 

Using your game server's file manager, add this line to the bottom of pbsv.cfg, save the file, and restart your game server.

Code:

pb_sv_task 10 300 admin.yell "Join us On TeasmSpeak3 94.250.223.8:15069" 5 all
It will add a punkbuster task to yell the message to every player for 5 seconds starting 10 seconds after the server starts and repeating every 5 minutes.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by gillibong*:

 

No, it is not possible with ProconRulz. ProconRulz cannot schedule tasks.

 

You should add it to your pbsv.cfg file on your game server as a punkbuster task.

 

Using your game server's file manager, add this line to the bottom of pbsv.cfg, save the file, and restart your game server.

Code:

pb_sv_task 10 300 admin.yell "Join us On TeasmSpeak3 94.250.223.8:15069" 5 all
It will add a punkbuster task to yell the message to every player for 5 seconds starting 10 seconds after the server starts and repeating every 5 minutes.
and if i want to disable it? how i am doing it?
* 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.