Quote:
Originally Posted by One
if ( is_user_alive( id ) )
{
set_task( 1.0, "ShowHUD")
}
public ShowHUD( id )
{
set_hudmessage( 200,200, 200, 0.75, 0.92, 0, 1.0, 1.1, 0.0, 0.0, -1 )
show_hudmessage( id, "Rampage cooldown: %d", get_pcvar_num( Cooldown ) )
}
|
Sorry it didn't show the hudmessage forever. only once.
I try this :
PHP Code:
set_task( 1.0, "ShowHUD", id, _, _, "a", get_pcvar_num( Cooldown ) )
public ShowHUD( id )
{
if ( is_user_alive( id ) )
{
set_hudmessage( 200, 200, 200, 0.75, 0.92, 0, 1.0, 1.1, 0.0, 0.0, -1 )
show_hudmessage( id, "Rampage cooldown: %d", get_pcvar_num( Cooldown) )
}
else
{
remove_task( id )
}
}
It work. but the hudmessage cooldown show 35. How can i make it decrease like 5,4,3,2,1 ??
I also try this :
PHP Code:
show_hudmessage( id, "Rampage cooldown: %f\d", get_pcvar_num( Cooldown ) - ( get_gametime( ) - g_cooldown[ id ] ) )
The hudmessage show alot of digt like 1512321511 ??
How can i make the set task forever ?
How can i make the digt less like 35,34,32,31 ??
__________________