привет, при добавлении лимита на дробовики и ввода команды пишется как на скрине
вот код:
#SHOTGUNS LIMITS
# Введите здесь разрешенное кол-во слотов для дробовиков:
On Kill;ServerFirst;Set %server_shotgunlimit% 1
On Say;ServerFirst;Set %server_shotgunlimit% 1
# SHOTGUN LOG MESSAGES
On Spawn;If %server_sl_shotgun[%p%]% == 1;Log Shotgun %pt% %p% re-spawned. %server_sl_total[%ptk%]% shotguns on team %ptk%
On Kill;If %server_sl_shotgun[%v%]% == 1;Log SHotgun %vtk% %v% killed. %server_sl_total[%vtk%]% shotguns on team %vtk%
# SHOTGUN KILL CHECKS either over limit (so kill), existing shotgun (do nothing), new shotgun (reserve slot)
On Kill;Damage Shotgun;
If %server_sl_total[%ptk%]% >= %server_shotgunlimit%;if %server_sl_shotgun[%p%]% == 0;PlayerSay -;PlayerSay - %p% killed by SHOTGUN LIMIT. Max: %server_shotgunlimit%;PlayerSay -;Log Shotgun Limit max %server_shotgunlimit% SHOTGUNS each team (now Kill %p%);Kill
If %server_sl_shotgun[%p%]% == 1;Log %ptk% %p% still a shotgun, %server_sl_total[%ptk%]% shotguns on team %ptk%
If %server_sl_shotgun[%p%]% == 0;Incr %server_sl_total[%ptk%]%;Set %server_sl_shotgun[%p%]% 1;Set %server_sl_x% %server_sl_total[%ptk%]%;Set %server_sl_shotgunname[%ptk%][%server_sl_x%]% %p%;PlayerSay -;PlayerSay - YOU HAVE A SHOTGUNS SLOT!!! %server_sl_total[%ptk%]%/%server_shotgunlimit%;PlayerSay -;Log %ptk% %p% is new shotgun, %server_sl_total[%ptk%]%/%server_shotgunlimit% shotgun on team %ptk%
# FREE UP SHOTGUN SLOT IF SHOTGUN HAS NON-SHOTGUN KILL OR SHOTGUN LEAVES
On Kill;Not Damage Shotgun;Not Damage Handgun;Not Damage Melee;If %server_sl_shotgun[%p%]% == 1;Set %server_sl_shotgun[%p%]% 0;Decr %server_sl_total[%ptk%]%;TeamSay -;TeamSay - %p% gave up his SHOTGUN slot!!!;TeamSay -;Log Ex-shotgun %p% used %d% %wk%, %server_sl_total[%ptk%]% shotgun on team %ptk%
On Leave;If %server_sl_shotgun[%p%]% == 1;Set %server_sl_shotgun[%p%]% 0;Decr %server_sl_total[%ptk%]%;TeamSay -;TeamSay - %p% gave up his SHOTGUN slot!!!;TeamSay -;Log Shotgun %pt% %p% left server. %server_sl_total[%ptk%]% shotgun on team %ptk%
# !shotgun / !shotguns INFO MESSAGES
On Say;Text !shotgun;
PlayerSay Shotgun limit: %server_sl_total[%ptk%]%/%server_shotgunlimit%. Reserve slot with shotgun kill, lose it with non shotgun kill.
If %server_sl_total[%ptk%]% == 0;PlayerSay 0/%server_shotgunlimit% SHOTGUNS on team %pt%
If %server_sl_total[%ptk%]% > 0;PlayerSay %pt% SHOTGUN[1/%server_shotgunlimit%] is %server_sl_shotgunname[%ptk%][1]%
If %server_sl_total[%ptk%]% > 1;PlayerSay %pt% SHOTGUN[2/%server_shotgunlimit%] is %server_sl_shotgunname[%ptk%][2]%
If %server_sl_total[%ptk%]% > 2;PlayerSay %pt% SHOTGUN[3/%server_shotgunlimit%] is %server_sl_shotgunname[%ptk%][3]%
If %server_sl_total[%ptk%]% > 3;PlayerSay %pt% SHOTGUN[4/%server_shotgunlimit%] is %server_sl_shotgunname[%ptk%][4]%
On Say;Text !shotguns;
PlayerSay SHOTGUNS: Team 1: %server_sl_total[1]%/%server_shotgunlimit%, Team 2: %server_sl_total[2]%/%server_shotgunlimit%