why can't this work ??
PHP Code:
new i_cooldown_time[ 33 ] = 0
public wooot( id )
{
i_cooldown_time[ id ] = floatround( Cooldown )
set_task( 1.0, "ShowHUD", id, _, _, "a", i_cooldown_time[ id ] )
}
public ShowHUD( id )
{
if ( is_user_alive( id ) )
{
i_cooldown_time[ id ] = i_cooldown_time[ id ] - 1;
set_hudmessage( 200, 100, 0, 0.75, 0.92, 0, 1.0, 1.1, 0.0, 0.0, -1 )
show_hudmessage( id, "Woot Cooldown: %d", i_cooldown_time[ id ] )
}
else
{
remove_task( id )
}
}
It doesn't show the HUD message.
__________________