GetMaxPlayers

From Multi Theft Auto: Wiki
Revision as of 17:37, 25 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 maximum number of player slots on the server.

Syntax

int getMaxPlayers ()

Example

playermax = GetMaxPlayers ();
serverChat ( "There are currently ", playermax, " player slots in this server." );