GetPlayerCount

From Multi Theft Auto: Wiki
Revision as of 10:55, 26 March 2006 by Vandalite (talk | contribs)
Jump to navigation Jump to search

Description

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

Syntax

int getPlayerCount ()

Required Arguments

This function has no arguments.

Example

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