Raised This Month: $ Target: $400
 0% 

hud message [HELP]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
addicted2sex
Senior Member
Join Date: May 2009
Location: localhost
Old 03-14-2010 , 11:20   Re: hud message [HELP]
Reply With Quote #3

Quote:
Originally Posted by flamin View Post
hi there i have this function and i want that when match start a hudmessage appear in the center top that say Match Live:

PHP Code:
public lo3_start()
{
       
exec_pug_config("yap-lo3.cfg")
       
set_task(get_pcvar_float(pug_cvar_lo3_delay),  "lo3_end")
       
hud_message
}


public 
lo3_end()
{
       
hud_message
       continue_gen_forward
(forward_id)
}

public 
hud_message()
{
        
set_hudmessage(025500.450.1500.0,360.00.00.00)
        
show_hudmessage(0"-- Macth is Live --")  

hi there i have this 3 functions i want my hudmessage stay for all lo3_Start and some more seconds

in hud funct i set him 360 seconds but still seeing the message for like 1 or 2 segs why ? HELP PLEASE!

Here ceases the code without amendments:
Cuz there are only 4 hud channels and if there's another plugin, using hud messages ... here's your answer. So the only way is to create a sync hud object or loop a timer with the hud message. This is an example with loop timer:


PHP Code:
public lo3_start() {
       
exec_pug_config("yap-lo3.cfg")
       
set_task(get_pcvar_float(pug_cvar_lo3_delay),  "lo3_end")
       
hud_message()
       
set_task(3.0"hud_message"951159//Re-showing the hud message in 3 seconds interval
}
public 
lo3_end() {
       
remove_task(951159)
       
continue_gen_forward(forward_id)
}
public 
hud_message() {
        
set_hudmessage(025500.450.1500.0,360.00.00.00)
        
show_hudmessage(0"-- Match is Live --")  

__________________
Let 7he gr0ovE r3Lease y0ur m!nd

Last edited by addicted2sex; 03-14-2010 at 11:22.
addicted2sex 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 08:38.


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