Quote:
Originally Posted by flamin
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(0, 255, 0, 0.45, 0.15, 0, 0.0,360.0, 0.0, 0.0, 0) 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(0, 255, 0, 0.45, 0.15, 0, 0.0,360.0, 0.0, 0.0, 0)
show_hudmessage(0, "-- Match is Live --")
}
__________________