From Liberty Unleashed Wiki
Revision as of 18:33, 15 January 2012 by SugarD
Changes the port your server will be running on.
- bool SetPort( int port )
- port - This is the port you want the server to be running on
This example will change the server port when a player types '/setport 5192'.
- function OnPlayerCommand( id, cmd, text )
- if ( cmd == "setport" )
- SetPort( text.tointeger() );
The call onPlayerCommand was also used in the example. More info about this in the corresponding page.