mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-01-19 16:14:44 +00:00
15 lines
768 B
C#
15 lines
768 B
C#
$AntiCloakPlayerCount = 6; // amount of players needed on server for CloakPack to be selectable
|
|
|
|
//Activates when default Inventory for player is set so player cant select it thru hotkeys or select it thru the gui.
|
|
function ActivateAntiCloak ()
|
|
{
|
|
//echo("TotalTeamPlayerCount " @ $TotalTeamPlayerCount);
|
|
//echo("AntiCloakPlayerCount " @ $AntiCloakPlayerCount);
|
|
|
|
if(!$Host::TournamentMode && $TotalTeamPlayerCount < $AntiCloakPlayerCount)
|
|
//If server is in Tourny mode or if the server population isnt higher than the AntiCloakPlayerCount the CloakPack is not selectable.
|
|
$InvBanList[CTF, "CloakingPack"] = true;
|
|
else
|
|
//If AntiCloakPlayerCount is lower than server population, CloakPack is enabled and Selectable.
|
|
$InvBanList[CTF, "CloakingPack"] = false;
|
|
} |