View Single Post
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 04-09-2010 , 07:48   Re: How to make hudmessage not go away?
Reply With Quote #4

The solution is simple. When it's about to "go away" display it again.

The simplest way to code that is to use set_task.
PHP Code:
public start_displaying(){
    
set_task(1.0"display_msg"2356__"b"
    
//function display_msg will be called every second
}

public 
display_msg(){
    
//this function will display hud message that lasts 1 second every time it's called
    
set_hudmessage(02550, -1.00.8806.01.0)
    
show_hudmessage(iPlayer"Kills: %i"userKills[iPlayer])

There is something better than set_task described here, but it's harder to use.
__________________
Impossible is Nothing
Sylwester is offline