function onPlayerCommand( player, cmd, text ){ if( cmd == "setpass" ){ if( !text ) return PrivMessage( player, "Use /setpass to disable or /setpass to enable it."); else { if( GetArgValue( text ) == false ) SetPassword(""); else SetPassword( text ); } } }