GetPlayerCount
From Onset Developer Wiki
Description
Gets the count of the online players.
Syntax
GetPlayerCount()
Parameters
- This function has no parameters.
Return Value
- Count of players.
Example
AddCommand("players", function(playerid)
AddPlayerChat(playerid, "Players online: "..GetPlayerCount())
end)