Raised This Month: $ Target: $400
 0% 

Dynamic Data HudMessage


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
siriusmd99
Veteran Member
Join Date: Oct 2013
Location: Republic of Moldova
Old 07-21-2017 , 10:44   Re: Dynamic Data HudMessage
Reply With Quote #1

I did that but every time i change weapon it looks like clearsync doesnt work and hud is overlapping . It's green and if i switch the weapons fast then hud message starts to become white and ugly.
It looks like previous message didn't dissapear and new one is overlaping it.
tried fadeout 0.0 - no result. It's not logic, i don't understand how the hell such thing can happen.

PHP Code:
#define HUD_TIME 6.0

public plugin_init()
{
    
set_task(HUD_TIME"HudDisplay", .flags"b")
}

public 
OnItemDeployPost(ent)
{
    new 
id get_pdata_cbase(ent414
   

    
ClearSyncHud(id,g_NewSyncObj)
   
        
g_curKills[id] = get_weapon_kills(id);
        
set_hudmessage(34139340.020.890, .holdtime =  HUD_TIME);
        
ShowSyncHudMsg(idg_NewSyncObj"Current Kills: %d"g_curKills[id]);
    
}

public 
HudDisplay()
{
    new 
iPlayers[32]
    new 
iNumid;
    
get_players(iPlayersiNum"a")
    for (new 
iiNumi++)
    {
        
id iPlayers[i];
        
        
ClearSyncHud(id,g_NewSyncObj)

        
set_hudmessage(34139340.020.8900.0, .holdtime =  HUD_TIME);
        
ShowSyncHudMsg(idg_NewSyncObj"Current Kills: %d"g_curKills[id]);
    }


Last edited by siriusmd99; 07-21-2017 at 10:48.
siriusmd99 is offline
Reply



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 22:56.


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