SetMaxPlayers
From Liberty Unleashed Wiki
This function changes the maximum player limit of the server.
Syntax
bool SetMaxPlayers( int limit )
Arguments
- limit - The number of players allowed to join
Example
This example will change the server player limit when a player types '/setlimit 20'
function onPlayerCommand( plr, cmd, text ) { if ( cmd == "setlimit" ) { SetMaxPlayers( text.tointeger() ); } return 1; }
Notes
The call onPlayerCommand was also used in the example. More info about it can be found in the corresponding page.