GetPassword
From Liberty Unleashed Wiki
This returns the password needed to join the server.
Syntax
string GetPassword()
Arguments
- None
Example
This command will return the server password when someone types '/serverpass'.
function onPlayerCommand( plr, cmd, text ) { if ( cmd == "serverpass" ) { MessagePlayer( "Server password is: " + GetPassword(), plr ); } return 1; }
Notes
The function MessagePlayer and call onPlayerCommand were used in this example. More info about them can be found in corresponding pages.