SetServerPassword: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 29: | Line 29: | ||
==See Also== | ==See Also== | ||
<!-- Change FunctionArea to the area that this function is in on the main function list page, e.g. Server, Player, Vehicle etc --> | <!-- Change FunctionArea to the area that this function is in on the main function list page, e.g. Server, Player, Vehicle etc --> | ||
{{ | {{Server functions}} | ||
[[Category:Needs_Example]] <!-- leave this until the example is completed. --> | [[Category:Needs_Example]] <!-- leave this until the example is completed. --> |
Revision as of 16:56, 14 December 2007
This function changes the password required to join the server to the given string.
Syntax
bool setServerPassword ( string thePassword )
Required Arguments
- thePassword: The new server password you want. Pass nil or an empty string to remove the password.
Returns
Returns true if the password was successfully changed or removed, false or nil otherwize.
Example
This example does...
--TODO mooo