Raised This Month: $51 Target: $400
 12% 

[REQ] Add a Health Box in COD:MW


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Akshat
Senior Member
Join Date: Feb 2013
Location: India, Jaipur.
Old 01-19-2015 , 05:02   [REQ] Add a Health Box in COD:MW
Reply With Quote #1

So, I wanted to add a health box as a HUD message which shows your current HP, I have attached the sma and a screenshot where I want the box.
Attached Images
File Type: jpg rsz_dlphpi=rsz_cod_rats30001.jpg (37.6 KB, 143 views)
Attached Files
File Type: sma Get Plugin or Get Source (cod_mw.sma - 520 views - 52.0 KB)
__________________
Learning Pawn [3% Complete!]
Akshat is offline
Send a message via Skype™ to Akshat
Old 01-19-2015, 07:19
tousif
This message has been deleted by tousif.
Akshat
Senior Member
Join Date: Feb 2013
Location: India, Jaipur.
Old 01-21-2015 , 09:16   Re: [REQ] Add a Health Box in COD:MW
Reply With Quote #2

I only get my own HP correctly for others It's not correct, fix the code please.
__________________
Learning Pawn [3% Complete!]
Akshat is offline
Send a message via Skype™ to Akshat
tousif
AlliedModders Donor
Join Date: Nov 2014
Location: India
Old 01-21-2015 , 09:23   Re: [REQ] Add a Health Box in COD:MW
Reply With Quote #3

Quote:
Originally Posted by Akshat View Post
I only get my own HP correctly for others It's not correct, fix the code please.
Can u show the pic ? so i can knw the error

Last edited by tousif; 01-21-2015 at 09:30.
tousif is offline
Akshat
Senior Member
Join Date: Feb 2013
Location: India, Jaipur.
Old 01-21-2015 , 09:53   Re: [REQ] Add a Health Box in COD:MW
Reply With Quote #4

When am spectating others I get my own last HP (should be of the player am spectating), am talking about that "COD:MW" MOD, you gave me the code to get the Health in the HUD.
__________________
Learning Pawn [3% Complete!]

Last edited by Akshat; 01-21-2015 at 09:53.
Akshat is offline
Send a message via Skype™ to Akshat
tousif
AlliedModders Donor
Join Date: Nov 2014
Location: India
Old 01-22-2015 , 00:28   Re: [REQ] Add a Health Box in COD:MW
Reply With Quote #5

Just add this instead og get_user_health i though u need ur hp
PHP Code:
get_user_healthpevclientpev_iuser2 ) ); 

Last edited by tousif; 01-22-2015 at 00:29.
tousif 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 02:41.


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