AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Hud Message question. (https://forums.alliedmods.net/showthread.php?t=76551)

Salin 08-26-2008 14:52

Hud Message question.
 
I`ve tried to make some permanent texts that were showed only to the hltv. Being a client on a servere, everything was fine, it looked like it was there all the time. If i was connected to the hltv, i could saw the "holdtime" of the text. If i put it 0.5 it fade it out then reapper, so basically it was like a casino text that blinked over and over again. How can i make it so it won`t blink?

Here are the set_hudmessage params

Code:

set_hudmessage(0, 223, 223, 0.02, 0.34, 0, 0.0, 0.0, 0.01, 1.01, 2)
format(text, 255, "Test")
show_hudmessage(0, text)


anakin_cstrike 08-26-2008 16:11

Re: Hud Message question.
 
Hmmm...something like this :
PHP Code:

public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR);
    
set_task(2.0,"show",_,_,_,"b");
}
public 
show()
{
    new 
players[32],num,index,i;
    
get_players(players,num);
    for(
0;num;i++)
    {
        
index players[i];
        if(!
is_user_hltv(index))
            continue;
        
set_hudmessage(255255255, -1.00.1006.012.0)
        
show_hudmessage(index"message")
    }



Emp` 08-26-2008 19:13

Re: Hud Message question.
 
You should also look at HudSyncs

CreateHudSyncObj
ShowSyncHudMsg


All times are GMT -4. The time now is 03:11.

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