Raised This Month: $ Target: $400
 0% 

Solved [HELP] Player Aim At Entity


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DarthMan
Veteran Member
Join Date: Aug 2011
Old 03-09-2017 , 15:31   Re: [HELP] Player Aim At Entity
Reply With Quote #1

xd it works, I just had to put it no ClientPrethink
DarthMan is offline
DarthMan
Veteran Member
Join Date: Aug 2011
Old 03-10-2017 , 02:15   Re: [HELP] Player Aim At Entity
Reply With Quote #2

My final request, how to make it show the hp of the entity that I am currently looking at?

Code:
new ent, ent2, body
new entcount, entlist[32]
new panel
while (((ent = find_ent_by_tname(ent, "target_map")) !=0) && (ent2=find_ent_by_tname(ent2, "glass_votemap")) !=0)
{
	entcount = find_sphere_class(ent, "player", 50.0, entlist, sizeof(entlist))
	//if (entcount > 0) client_print(0, print_chat, "Found %d players at panel %d.", entcount, panel + 1)
	for(new player_index; player_index < entcount; player_index++)
	{
		if ((is_user_alive(id)) && get_user_aiming(id,ent,body,50)!=0)
		{
			set_hudmessage(g_hud_colour[0], g_hud_colour[1], g_hud_colour[2], -1.0, -1.0, 0, 0.0, 2.0, 0.0, 0.0, 2)
			show_hudmessage(entlist[player_index],"%s | %d%",g_mapnames[g_mapselection[panel]],pev(ent2,pev_health)/20)
		}
	}	
	panel++
}
DarthMan is offline
DarthMan
Veteran Member
Join Date: Aug 2011
Old 03-10-2017 , 14:24   Re: [HELP] Player Aim At Entity
Reply With Quote #3

Please clsoe the topic.
DarthMan 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 17:46.


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