GetMaxPlayers
How many players the server holds ([server] max_players).
Player ids run from 0 to GetMaxPlayers() - 1.
Syntax
Section titled “Syntax”GetMaxPlayers()Returns
Section titled “Returns”number - the slot count
Example
Section titled “Example”for pid = 0, GetMaxPlayers() - 1 do if IsPlayerConnected(pid) then SendClientMessage(pid, COLOUR_SERVER, "Round over") endendSee also
Section titled “See also”GetPlayers · GetPlayerCount · the Server and timers group of the index
