GetMaxPlayers

From Multi Theft Auto: Wiki
Revision as of 11:03, 14 August 2006 by EAi (talk | contribs)
Jump to navigation Jump to search

This function returns the maximum number of player slots on the server.

Syntax

int getMaxPlayers ()

Returns

Returns the maximum number of players allowed on the server.

Example

This example gets the maximum number of players for the server and outputs it as part of a message in the chat box.

playermax = getMaxPlayers ()
outputChatBox ( "There are currently " .. playermax .. " player slots in this server." )

See Also