Raised This Month: $ Target: $400
 0% 

Solved HUD Fading & Overwriting


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 06-29-2018 , 12:55   HUD Fading & Overwriting
Reply With Quote #1

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_numg_iCvar );
    
set_task1.0"OnTaskCountDown", .flags "a", .repeat g_iTime );
}

public 
OnTaskCountDown( )
{
    
set_hudmessage025500.350.3500.01.0 )
    
ShowSyncHudMsg0g_iSyncHud"Round starts in %d second%s"g_iTime--, ( g_iTime ) ? "s" "" );
    
    if( 
g_iTime <= )
    {
            
// un-needed code
    
}

Also, can a HUD from a different plugin overwrite another HUD in another plugin?
__________________

Last edited by edon1337; 07-17-2018 at 08:31.
edon1337 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:47.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode