24.08.2012, 02:30
is there any command to change the server password on runtime?
dcmd_lockserver(playerid,params[])
{
new string[156];
if(AccInfo[playerid][Level] >= 4 || IsPlayerAdmin(playerid))
{
if(ServerInfo[Locked] == 0)
{
if(!strlen(params)) return
SendClientMessage(playerid, white, "Usage: /lockserver [Password]") &&
SendClientMessage(playerid, COLOR_SININE, "Command: Will server lock with specified Password");
strmid(ServerInfo[Password], params[0], 0, strlen(params[0]), 128);
format(string, 128, "Server Password: %s ", params);
return ShowPlayerDialog(playerid, DIALOG_TYPE_SERVLOCK, DIALOG_STYLE_MSGBOX, "Lock/Unlock Server", string, "Yes", "No");
}
else return SendClientMessage(playerid,red,"ERROR: Server is Locked!");
}
else return ErrorMessages(playerid, 1);
}
This forum requires that you wait 120 seconds between posts. Please try again in 42 seconds.
/rcon rcon_password [PASSWORD] - Change the rcon's password
Negative. He stated the 'server's password' ~ Which I've already listed above.
|