GetMaxPlayers: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 12: | Line 12: | ||
<syntaxhighlight lang="lua">playermax = GetMaxPlayers () | <syntaxhighlight lang="lua">playermax = GetMaxPlayers () | ||
outputChatBox ( "There are currently ", playermax, " player slots in this server." )</syntaxhighlight> | outputChatBox ( "There are currently ", playermax, " player slots in this server." )</syntaxhighlight> | ||
==See Also== | |||
{{Player Functions}} |
Revision as of 20:19, 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 () outputChatBox ( "There are currently ", playermax, " player slots in this server." )