mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-03-05 04:30:20 +00:00
parent
b99fae619e
commit
b85a8d3f33
1 changed files with 7 additions and 1 deletions
8
Classic/scripts/autoexec/GetTeamCounts.cs
Executable file → Normal file
8
Classic/scripts/autoexec/GetTeamCounts.cs
Executable file → Normal file
|
|
@ -54,7 +54,13 @@ function GetTeamCounts(%game)
|
|||
$AllPlayerCount = $HostGamePlayerCount;
|
||||
|
||||
//Observers
|
||||
$Observers = $HostGamePlayerCount - ($TeamRank[1, count] + $TeamRank[2, count]);
|
||||
$Observers = 0;
|
||||
for(%i = 0; %i < ClientGroup.getCount(); %i++)
|
||||
{
|
||||
%cl = ClientGroup.getObject(%i);
|
||||
if(%cl.team $= 0)
|
||||
$Observers++;
|
||||
}
|
||||
|
||||
//echo("$PlayerCount[0] " @ $HostGamePlayerCount - ($TeamRank[1, count] + $TeamRank[2, count]));
|
||||
//echo("$PlayerCount[1] " @ $TeamRank[1, count]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue