18.05.2020, 15:55
Hello i created my /unlockserver Command
is this Correct?
is this Correct?
Code:
CMD:unlockserver(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] == 99999)
{
new string[128],name[50];
GetPlayerName(playerid,name,sizeof(name));
// if(ServerLocked)
{
// ServerLocked = false;
SendRconCommand("password 0");
SendRconCommand("hostname Neterval Roleplay ");
format(string, sizeof(string), "{FF0000}ADMCMD:{FF6347}Server Director %s unlocked the server.",name);
SendClientMessageToAll(COLOR_WHITE, string);
}
}
else return SendClientMessage(playerid, COLOR_RED, " You are not authorized to use this Command!");
return 1;
}

