GetPlayerCount

From Multi Theft Auto: Wiki
Revision as of 16:48, 24 March 2006 by JonChappell (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Description

This function returns the number of players currently connected to the server.

Syntax

getPlayerCount ( )

Example

playercount = getPlayerCount ();
serverChat ( "There are currently ", playercount, " players playing in the server" );