Raised This Month: $ Target: $400
 0% 

How to get a entity(NPC) health?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 08-10-2011 , 05:55   Re: How to get a entity(NPC) health?
Reply With Quote #3

Your not supposed to bump your thread unless its been longer than 2 weeks.

Hud Message:
PHP Code:
set_hudmessage255255255);
show_hudmessage0"Entity health is %i"floatroundentity_get_floatentEV_FL_health ) ) ); 
If you want to change the position and effects then use the rest of the parametres.

Chat Message:
PHP Code:
client_print0print_chat"Entity health is %i"floatroundentity_get_floatentEV_FL_health ) ) ); 
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.

Last edited by hornet; 08-10-2011 at 06:51. Reason: Left out a parameter
hornet is offline
 



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 03:29.


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