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 , 11:38   Re: Dynamic Data HudMessage
Reply With Quote #1

Quote:
Originally Posted by JusTGo View Post
remove the task and ClearSync only at client death.

PHP Code:
#define HUD_TIME 6.0

public OnItemDeployPost(ent)
{
    new 
id get_pdata_cbase(ent414
   

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

Doesn't work anyway.
+ i can't remove task because if player doesnt change weapon then hud will dissapear after 6 seconds.

I managed to make a global task and loop all players every 0.5 seconds but i think it's not efficient and even if i do this way then hud will blink akward and it's anoying.

Last edited by siriusmd99; 07-21-2017 at 11:41.
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