24.08.2016, 12:43
You have to set the timer on repeat on a smaller relevant interval.
And a new variable to count the number of times the timer is being called, as to record the countdown.
SO your "wangbomb" have to be modified with a count check:
(when to destroy timer and stuff)
How to update progress bar:
And you also need to increase the variable count "HTimerCount": (this goes outside of the if-else)
And a new variable to count the number of times the timer is being called, as to record the countdown.
pawn Код:
// new variable
new HTimerCount;
// when declaring timer
HTimerCount = 1;
HTimer[WANG] = SetTimerEx("wangbomb",1000,true,"i",playerid);
(when to destroy timer and stuff)
pawn Код:
if (HTimerCount == 12) //12 seconds
{
}
pawn Код:
else
{
}
pawn Код:
HTimerCount++;

