Skip to content

GetPlayers

Everyone who passed the handshake, in join order.

GetPlayers()

table - a list of pids, {} on an empty server

for _, pid in ipairs(GetPlayers()) do
SendClientMessage(pid, COLOUR_YELLOW, "The round starts in ten seconds.")
end

GetPlayerCount · IsPlayerInWorld · GetMaxPlayers · the Players group of the index