Raised This Month: $ Target: $400
 0% 

Question


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
marquezs
Member
Join Date: Jun 2010
Old 08-17-2010 , 16:37   Question
Reply With Quote #1

Can I do this?

Code:
set_user_health(id, 900 + (2 * (g_HealthLevel[id] * Health_PerLevel)))
or this

Code:
set_user_health(id, 2 * (g_HealthLevel[id] * Health_PerLevel) - 100)
It isn't working...

How may I do this?
marquezs is offline
platzpatrone
Veteran Member
Join Date: Apr 2007
Location: Germany
Old 08-17-2010 , 16:39   Re: Question
Reply With Quote #2

u have to use:

get_user_health first to get the actual health left

then set it with the actual + your value
platzpatrone is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 08-17-2010 , 19:26   Re: Question
Reply With Quote #3

marquezs: What doesn't work about it? I think most mods have a problem displaying health above 255 on the HUD because it is received as a byte (max value of 255), even though the actual health can be higher.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 08-18-2010 , 14:43   Re: Question
Reply With Quote #4

I think he´s not asking about if it can be shown, rather if the
Code:
900 + (2 * (g_HealthLevel[id] * Health_PerLevel))
part will work
__________________
Quote:
#define true ((rand() % 2)? true: false) //Happy debugging suckers
mottzi is offline
Send a message via MSN to mottzi
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 21:54.


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