Squirrel/Server/Functions/Server/SetPassword
From Liberty Unleashed Wiki
(Difference between revisions)
m (Squirrel/Functions/Server/SetPassword moved to Squirrel/Server/Functions/Server/SetPassword: Separating from clientside scripts) |
|||
Line 1: | Line 1: | ||
− | + | {{Squirrel/Title|SetPassword}} | |
This will change the password required to connect the server. | This will change the password required to connect the server. | ||
Revision as of 10:12, 11 October 2010
This will change the password required to connect the server.
Syntax
bool SetPassword( string pass )
Arguments
- pass - The new password needed to join the server
Example
This command will change the server password when a player types '/setpass ubersecret'.
function OnPlayerCommand( id, cmd, text ) { if ( cmd == "setpass" ) { SetPassword( text ); } }
Notes
The call OnPlayerCommand was also used in the example. More info about this in the corresponding page.