13.02.2010, 07:34
Oh you want to show the timer the countdown for their timer, i see.
Timers can't be directly shown, they work in the background, so you have to make a textdraw, and have another timer per second.
I don't know textdraws that well, so I would wait for thekiller to explain that, he knows textdraws better than i do.
Something like:
Timers can't be directly shown, they work in the background, so you have to make a textdraw, and have another timer per second.
I don't know textdraws that well, so I would wait for thekiller to explain that, he knows textdraws better than i do.
Something like:
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
//your textdraw stuff
new mytimer = SetTimerEx("updateTextDraw",1000, true, "d", textdrawid)
mytimers[playerid] = SetTimerEX("yourfunction",30000,false,"dd", countdowntimer, countdowntextdraw );
return 1;
}
forward updateTextDraw(textdrawid);
public updateTextDraw(textdrawid)
{
//update textdraw stuff(aka minus one second)
}
forward yourfunction(timerid, textdrawid);
public yourfunction(timerid, textdrawid)
{
KillTimer(timerid);
//destroy textdraw
}

