Quote:
Originally Posted by JusTGo
remove the task and ClearSync only at client death.
PHP Code:
#define HUD_TIME 6.0
public OnItemDeployPost(ent) { new id = get_pdata_cbase(ent, 41, 4)
g_curKills[id] = get_weapon_kills(id); set_hudmessage(34, 139, 34, 0.02, 0.89, 0, .holdtime = HUD_TIME); ShowSyncHudMsg(id, g_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.