Ham_TakeDamage doesn't work
I just want to make a no-kill server.
Code... PHP Code:
|
Re: Ham_TakeDamage doesn't work
Chech is user alive(atacker)
|
Re: Ham_TakeDamage doesn't work
Not working u,u
|
Re: Ham_TakeDamage doesn't work
SetHamParamFloat(damage, 0.0) i guess.
|
Re: Ham_TakeDamage doesn't work
You're hooking it as post.
|
Re: Ham_TakeDamage doesn't work
Thank you, works now.
Can you explain to me what is the diference to post 1 or 0. Thanks. |
Re: Ham_TakeDamage doesn't work
If you don't set post (use 0, hooking as pre), then it is before the event is fired.
If you do set post (use 1), then it is after the event is fired. In this case, hooking post would be after damage is done, so you can no longer modify the damage value. Hooking as pre will allow you to hook before damage is done so you can modify the values. |
Re: Ham_TakeDamage doesn't work
Quote:
|
Re: Ham_TakeDamage doesn't work
Also, you can just return HAM_SUPERCEDE instead of set damage to 0 then return.
This code won't remove the blood, if you want to remove the blood (you said no-kill server), hook Ham_TraceAttack instead. |
Re: Ham_TakeDamage doesn't work
Quote:
(Sorry for my bad english ^_^) Thanks! |
| All times are GMT -4. The time now is 07:43. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.