/Unlockserver Command Correct?
#1

Hello i created my /unlockserver Command

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;
}
Reply


Messages In This Thread
/Unlockserver Command Correct? - by RainW - 18.05.2020, 15:55
Re: /Unlockserver Command Correct? - by XStormiest - 18.05.2020, 17:05
Re: /Unlockserver Command Correct? - by EternalDirection - 21.05.2020, 13:42

Forum Jump:


Users browsing this thread: 1 Guest(s)