Server Closes When GMX
#2

have you tried creating a timer with no repeat? try that that might work.

try this kind of method if this works.

pawn Код:
dcmd_restart(playerid,params[])
{
    #pragma unused params
    if(PlayerInfo[playerid][AdminLevel] >= 10)
    {
        foreach(Player,i)
        {
            if(IsPlayerConnected(i))
            {
                SavePlayer(i);
            }
        }
        SetTimer("ServerGMX",2000,0);//2 seconds with no repeat
        GameTextForAll("Server is restarting - Please Wait.",30000,5);
        return 1;
    }
    else
    {
        SendClientMessage(playerid, COLOR_RED, NO_PERM);
    }
    return 1;
}

forward ServerGMX();
public ServerGMX()
{
    SendRconCommand("gmx");
    return 1;
}
Reply


Messages In This Thread
Server Closes When GMX - by Admigo - 17.03.2013, 13:38
Re: Server Closes When GMX - by Patrick - 17.03.2013, 13:40
Re: Server Closes When GMX - by Admigo - 17.03.2013, 13:50

Forum Jump:


Users browsing this thread: 1 Guest(s)