#7

Quote:
Originally Posted by Romel
Посмотреть сообщение
I wouldn't do your way Logitech, i know there is another way to save the stats instead kicking all the players.
because my command /kickall has anti-kick-higher administrator
Try this

pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
if(!strcmp(cmdtext, "/gmx", true))
    {
        if (PlayerInfo[playerid][pAdmin] >= 1338)
        {
        GameTextForPlayer(i, "SERVER RESTARTING IN: ~n~~r~ 15 ~w~ SECONDS", 2500, 3);
/*
Save your shits here
*/

        SendClientMessage(playerid, COLOR_GREY," Saving Files - Restarting in 15 SECONDS");
        SetTimerEx("GMXSave", 10000, false, "i", playerid);
        }
        else return SendClientMessage(playerid, COLOR_GREY,"Bitch Please, only Aira may access this command");
        return 1;
    }
pawn Код:
forward GMXSave(playerid);
public GMXSave(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        GameTextForPlayer(i, "SERVER RESTARTING IN: ~n~~r~ FIVE ~w~ SECONDS", 2500, 3);
        SetTimerEx("GMXSave2", 6000, false, "i", playerid);
    }
    return 1;
}

forward GMXSave2(playerid);
public GMXSave2(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        GameTextForPlayer(i, "~g~SERVER RESTARTING", 2500, 3);
        SendRconCommand("gmx");
    }
    return 1;
}
Reply


Messages In This Thread
GMX - by JaKe Elite - 27.05.2012, 05:55
Re: GMX - by Aira - 27.05.2012, 06:11
Re: GMX - by JaKe Elite - 27.05.2012, 06:15
Re: GMX - by Face9000 - 27.05.2012, 06:16
Re: GMX - by JaKe Elite - 27.05.2012, 06:18
Re: GMX - by Face9000 - 27.05.2012, 06:20
Re: GMX - by Aira - 27.05.2012, 06:20
Re: GMX - by Face9000 - 27.05.2012, 06:23
Re: GMX - by JaKe Elite - 27.05.2012, 06:23
Re: GMX - by Aira - 27.05.2012, 06:34

Forum Jump:


Users browsing this thread: 1 Guest(s)