Float problem with Ham_TakeDamage
Alright, I am still not that friendly with floats. :oops:
Are the parameters right at all? The main problem is in "fm_set_user_health". PHP Code:
|
Re: Float problem with Ham_TakeDamage
Use the functions from the fun module instead.
They are much faster. PHP Code:
Therefore, you will be doing damage twice to the player. You should hook this as a PRE hook and change the damage parameter. Then you should hook it as POST and check if remaining health of the player is more than 5. |
| All times are GMT -4. The time now is 23:26. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.