Rcon gmx vs exit
#8

My code for GMX is
Code:
if(strcmp(cmd, "/restart", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
            if (PlayerInfo[playerid][pAdmin] >= 1330)
			{
                format(string, sizeof(string), " An Admin has issued a server restart, this will take place in 10 seconds, please relog.", sendername);
				SendClientMessageToAll(COLOR_LIGHTBLUE, string);
				format(string, sizeof(string), "** Warning: Not logging could cause you to spawn in random locations!", sendername);
				SendClientMessageToAll(COLOR_YELLOW, string);
                RestartTime = SetTimer("Restart", 10000, 0);
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD1, "   You are not authorized to use that command !");
			}
		}
		return 1;
Reply


Messages In This Thread
Rcon gmx vs exit - by GaGlets(R) - 22.04.2011, 02:01
Re: Rcon gmx vs exit - by Miguel - 22.04.2011, 03:13
AW: Rcon gmx vs exit - by Meta - 22.04.2011, 05:10
Re: Rcon gmx vs exit - by Ash. - 22.04.2011, 09:50
Re: Rcon gmx vs exit - by GaGlets(R) - 22.04.2011, 11:37
Re: Rcon gmx vs exit - by Ash. - 22.04.2011, 22:27
Re: Rcon gmx vs exit - by Miguel - 23.04.2011, 00:41
Re: Rcon gmx vs exit - by dannyk0ed - 23.04.2011, 01:02
Re: Rcon gmx vs exit - by GaGlets(R) - 23.04.2011, 01:18
Re: Rcon gmx vs exit - by SaW_[VrTx] - 09.05.2011, 16:45

Forum Jump:


Users browsing this thread: 2 Guest(s)