Code: Select all
declare Integer PlayerCount = 0;
declare Integer SpectatorCount = 0;
foreach (Player in Players) {
if (Player.Login == CurrentServerLogin) {
continue;
}
if (Player.RequestsSpectate == True) {
SpectatorCount += 1;
}
else {
PlayerCount += 1;
}
log(PlayerCount ^" / "^ SpectatorCount);
}
I have tested it with Canyon and Statium, with the same results.
EDIT: Just tested the Gamemode Cup and Team, with the same result in Stadium.