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.

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