GetMaxPlayers
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
- getMaxPlayers
- getServerConfigSetting
- getServerHttpPort
- getServerName
- getServerPassword
- getServerPort
- isGlitchEnabled
- setGlitchEnabled
- setMaxPlayers
- setServerConfigSetting
- setServerPassword
- shutdown