SetMaxPlayers
From Liberty Unleashed Wiki
Changes the maximum players limit of the server.
Syntax
bool SetMaxPlayers( int limit )
Arguments
- limit - The number of players allowed to join you want to set
Example
This example will change the server player limit when a player types '/setlimit 20'
function OnPlayerCommand( id, cmd, text ) { if ( cmd == "setlimit" ) { SetMaxPlayers( text.tointeger() ); } }
Notes
The call OnPlayerCommand was also used in the example. More info about this in the corresponding page.