/countdown cmd?
#4

Not tested test and tell me if it worked
pawn Код:
new timec;

CMD:countdown(playerid, params[])
{
if(sscanf(params, "i", timec)) return SendClientMessage( playerid, -1, "/countdown [time]" );
if((timec < 1) || (timec > 20)) return SendClientMessage(playerid, -1, "Time 20!");
TimerCont = SetTimer("DTime", 1000, true);
return 1;
}

public DTime()
{
    if(timec == 0)
    {
        KillTimer(TimerCont);
        GameTextForAll("~r~Go Go Go", 1000, 6);
        return 1;
    }
    format(String, sizeof(String), "~g~%d", timec);
    GameTextForAll(String, 1000, 6);
    timec--;
    return 1;
}
Reply


Messages In This Thread
/countdown cmd? - by PAF - 25.01.2014, 12:41
Re: /countdown cmd? - by gtascripterultimate - 26.01.2014, 15:46
Re: /countdown cmd? - by Abagail - 26.01.2014, 15:48
Re: /countdown cmd? - by lHesoyaml - 26.01.2014, 16:07

Forum Jump:


Users browsing this thread: 2 Guest(s)