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_alive( id ) && !show_own )
{
if( prefs & FL_LIST && spec_ids[id][0] && get_pcvar_num( p_list_enabled ) )
{
set_hudmessage(
get_pcvar_num( p_red ),
get_pcvar_num( p_grn ),
get_pcvar_num( p_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*/
3 /*chan*/
);
show_hudmessage( id, list_string[id], id, "SPECTATING" );
}
}
else