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

How do I get the player's maxhealth live?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HeadphoneSiki
New Member
Join Date: Aug 2017
Old 08-20-2017 , 01:19   How do I get the player's maxhealth live?
Reply With Quote #1

I'm trying to modify Oshizu's maxhealth plugin for 'Setting' maxhealth.
And on first set, it worked fine [Using first setting at down below] but on a second set it resulted weird maxhealth.
I tried multiple things like:
MaxHealth argument - GetEntProp(client, Prop_Data, "m_iMaxHealth") [It results weird maxhealth]
MaxHealth argument - GetEntProp(client, Prop_Send, "m_iMaxHealth") [It didn't work at all, thus I realized m_iMaxHealth was datatype entity]

How do I get player's maxhealth, live from the server?
HeadphoneSiki is offline
BraveFox
AlliedModders Donor
Join Date: May 2015
Location: Israel
Old 08-20-2017 , 18:44   Re: How do I get the player's maxhealth live?
Reply With Quote #2

Use SDKHook and hook player's max health.
OnMaxHealth
__________________
Contact Me:
Steam: NoyB
Discord: Noy#9999
Taking Private Requests
BraveFox 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 15:03.


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