Skip to content

GetMaxPlayers

How many players the server holds ([server] max_players).

Player ids run from 0 to GetMaxPlayers() - 1.

GetMaxPlayers()

number - the slot count

for pid = 0, GetMaxPlayers() - 1 do
if IsPlayerConnected(pid) then SendClientMessage(pid, COLOUR_SERVER, "Round over") end
end

GetPlayers · GetPlayerCount · the Server and timers group of the index