Quote:
Originally Posted by OciXCrom
Show the full function. You don't need to check both connected and alive. The "is_user_alive" function also checks if the user is connected.
|
Code:
public hud(taskid, iTargetID)
{
new id = taskid - t1d
static szHud[128]
if(is_user_connected(id) && is_user_alive(id){
formatex(szHud, charsmax(szHud), "^n[Health: %d]^n[Armor: %d]",
get_user_health(id), get_user_armor(id))
set_hudmessage(155, 55, 55, HUD_STATS_X, HUD_STATS_Y, 0, 6.0, 1.1, 0.0, 0.0, -1)
ShowSyncHudMsg(id, g_iSync, szHud)
here is the one when user is alive