How To make a gametextforall countdown?
#2

pawn Код:
new count;

if(strcmp("/count", cmdtext, 6) == 0)
{
    count = SetTimer("Count", 1000, false);
    SendClientMessageToAll(COLOR_GREEN,"Countdown started");
    return 1;
}

forward Count();
public Count()
{
    new counter = 3, string[10];
    counter--;
    format(string, sizeof(string),"~g~%d", counter);
    GameTextForAll(1000, 3);
    if(counter == 0)
    {
        GameTextForAll(3000, 3, "~g~Gooooo!!!");
        KillTimer(count);
    }
    return 1;
}
Reply


Messages In This Thread
How To make a gametextforall countdown? - by lSCARl - 13.08.2010, 18:11
Re: How To make a gametextforall countdown? - by Claude - 13.08.2010, 19:28

Forum Jump:


Users browsing this thread: 1 Guest(s)