GetPlayerCount

From Onset Developer Wiki
Revision as of 17:03, 17 November 2019 by 28days (talk | contribs)
GetPlayerCount

Type: Function
Context: Server & Client
Introduced: v1.0

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)

See also