Hi,
Why do some HUD messages fade away? In my case this code creates a HUD and you can only see it for a few seconds, such as:
'Round starts in:
15 seconds'
'Round starts in:
14 seconds'
*fades away*
'Round starts in:
1 second'
PHP Code:
public OnNewRound( )
{
g_iTime = get_pcvar_num( g_iCvar );
set_task( 1.0, "OnTaskCountDown", .flags = "a", .repeat = g_iTime );
}
public OnTaskCountDown( )
{
set_hudmessage( 0, 255, 0, 0.35, 0.35, 0, 0.0, 1.0 )
ShowSyncHudMsg( 0, g_iSyncHud, "Round starts in %d second%s", g_iTime--, ( g_iTime > 1 ) ? "s" : "" );
if( g_iTime <= 0 )
{
// un-needed code
}
}
Also, can a HUD from a different plugin overwrite another HUD in another plugin?
__________________