View Single Post
Author Message
iclassdon
AlliedModders Donor
Join Date: May 2006
Old 12-18-2019 , 22:09   Delay hudmessage from displaying
Reply With Quote #1

How could I delay this hudmessage for lets say 1 or 2 seconds from displaying? I'm running this plugin on deathmatch and when I die the spectator hudmessage appears for 1 second until I respawn again. The original plugin page is listed below.

https://forums.alliedmods.net/showthread.php?p=484967

PHP Code:
    if( is_user_aliveid ) && !show_own )
  {
        if( 
prefs FL_LIST && spec_ids[id][0] && get_pcvar_nump_list_enabled ) )
        {
            
set_hudmessage(
        
get_pcvar_nump_red ),
        
get_pcvar_nump_grn ),
        
get_pcvar_nump_blu ),
        -
0.80/*x*/
        
0.14/*y*/
        
0/*fx*/
        
0.0/*fx time*/
        
1.1/*hold time*/
        
0.1/*fade in*/
        
0.1/*fade out*/
        
/*chan*/
            
);
            
show_hudmessageidlist_string[id], id"SPECTATING" );
        }
    }
    else 

Last edited by iclassdon; 12-18-2019 at 22:09.
iclassdon is offline
Send a message via MSN to iclassdon