Raised This Month: $ Target: $400
 0% 

Solved [HELP] Spectating host


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
elmedin
Senior Member
Join Date: Nov 2013
Location: Bruh
Old 04-20-2020 , 17:08   Re: [HELP] Spectating host
Reply With Quote #1

Quote:
Originally Posted by OciXCrom View Post
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
elmedin 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 00:56.


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