GetMaxPlayers
From Liberty Unleashed Wiki
This returns the maximum ammount of players allowed in the server.
Syntax
int GetMaxPlayers()
Arguments
- None
Example
This example will return the max players when a player types '/maxplayers'.
function OnPlayerCommand( id, cmd, text ) { if ( cmd == "maxplayers" ) { MessagePlayer( "The maximum ammount of players allowed on this server is " + GetMaxPlayers(), id ); } }
Notes
The function MessagePlayer and call onPlayerCommand were used in in this example. More info about them in corresponding pages.