Team Limits For CS:S
Not Sure if it Works For CS:GO or TF2
originally asked by - BRDominik (for csgo)
[*]IMPORTANT
You Should Not Use this Plugin with BGF_Warmod or CS:S Warmod By Twelve-60
Both Cvars Will Collide due to Existing Cvars and Works in that plugins.
Sets the maximum players allowed on both teams combined, others will be forced to spectator
Utilizes the warmod.inc by Twelve60
PHP Code:
stock int CS_GetPlayingCount() {
int count;
for (int i = 1; i <= MaxClients; i++) {
if (IsClientInGame(i) && !IsFakeClient(i) && GetClientTeam(i) > 1) {
count++;
}
}
return count;
}
CVARS -
"wm_max_players", Default = "0",
"Sets the maximum players allowed on both teams combined, others will be forced to spectator (0 = unlimited)
Max = 64.0
Min = 0.00
SOURCE - Github