GetMaxPlayers: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 4: Line 4:


==Syntax==
==Syntax==
int getMaxPlayers ()
<syntaxhighlight lang="lua">int getMaxPlayers ()</syntaxhighlight>


==Required Arguments==
==Required Arguments==
Line 10: Line 10:


==Example==
==Example==
playermax = [[GetMaxPlayers]] ()
<syntaxhighlight lang="lua">playermax = GetMaxPlayers ()
[[serverChat]] ( "There are currently ", playermax, " player slots in this server." )
serverChat ( "There are currently ", playermax, " player slots in this server." )</syntaxhighlight>

Revision as of 03:14, 20 May 2006

Description

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

Syntax

int getMaxPlayers ()

Required Arguments

This function has no arguments.

Example

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