This commit is contained in:
ChocoTaco1 2021-04-13 12:19:02 -04:00
parent 66fc9947fd
commit f8c48f817f

8
Classic/scripts/autoexec/GetTeamCounts.cs Normal file → Executable file
View file

@ -54,13 +54,7 @@ function GetTeamCounts(%game)
$AllPlayerCount = $HostGamePlayerCount;
//Observers
$Observers = 0;
for(%i = 0; %i < ClientGroup.getCount(); %i++)
{
%cl = ClientGroup.getObject(%i);
if(%cl.team $= 0)
$Observers++;
}
$Observers = $HostGamePlayerCount - ($TeamRank[1, count] + $TeamRank[2, count]);
//echo("$PlayerCount[0] " @ $HostGamePlayerCount - ($TeamRank[1, count] + $TeamRank[2, count]));
//echo("$PlayerCount[1] " @ $TeamRank[1, count]);