Quote:
Originally Posted by Bugsy
Just make sure to set iTimer to 90 each time you call that set_task line.
|
Done.
EDIT: Fixed with the timer numbers proper.
Code:
new iTimer = 90
yourfunc()
{
iTimer = 90
set_task( 1.0, "TaskCount", _, _, _, "a", 90 )
}
public TaskCount()
{
set_hudmessage( 255, 0, 0, -1.0, 0.0, 0, 6.0, 1.0 )
new iNum = floatround( float( iTimer % 60 ) ) // floats are not compatible with the modulo operator
show_hudmessage( 0, "NightCrawlers: %i:%s%i", floatround( ( iTimer / 60.0 ), floatround_floor ), ( 0 <= iNum < 10 ) ? "0" : "", iNum )
iTimer--
}
__________________