whats The problem with this? D:?
#1

Код:
    if (strcmp(cmd, "/restart", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if (PlayerInfo[playerid][pAdmin] < 10)
            {
                SendClientMessage(playerid, COLOR_GREY, "   You are not an lvl 10 Admin !");
                return 1;
            }
            OOCOff(COLOR_OOC,"[OOC] Icecream-Bot: Server Is Restarting, Remember to /putgun and Stay Connected.");
            CountDownTimer = SetTimer("CountDown", 10000, false);
        }
        return 1;
    }
Код:
forward CountDown();
public CountDown()
{
     CountDownVar--; //Thanks for the fix.
     new str[128];
     if(CountDownVar == 0)
     {
            KillTimer(CountDownTimer);
            GameModeExit();
            CountDownVar = 4; //Edit thanks to Hiddos...i was sleepy :S

     }
     else
     {
           format(str, sizeof(str), "Count Down To Restart: %d", CountDownTimer);
           GameTextForAll(str, 1000, 1);

     }
     return 1;
}
Reply


Messages In This Thread
whats The problem with this? D:? - by traxrex - 12.09.2010, 00:46
Re: whats The problem with this? D:? - by Toni - 12.09.2010, 00:50
Re: whats The problem with this? D:? - by CuervO - 12.09.2010, 06:20

Forum Jump:


Users browsing this thread: 1 Guest(s)