05.05.2016, 05:46
I would like to make a countdown gametext/textdraw idk how it works,Countdown from 15 to 0 in the middle of screen,I will rep.With a checkpoint,if player moves from checkpoint,countdown canceled.
public counter()
{
count--;
switch(count)
{
case 0:
{
GameTextForAll("r~Go go go!", 1110, 5);
KillTimer(counter);
}
case 1: GameTextForAll("~ r~2~w~ seconds.", 1110, 5);
case 2: GameTextForAll(" ~r~3~w~ seconds.", 1110, 5);
}
new count;
CMD:count(playerid, params[])
{
count = 3;
counter = SetTimer("counter", 1000, true);
return 1;
}