Hooking the self damage event?
Is it possible to hook the player self damage event, like when the player jumps down a cliff or similar?
- VV |
That is not an event.
|
It is the Damage Event, and the attacker is the world (index 0)...
Something like this: Code:
|
Thank you, just what I wanted! :D
- VV |
How do you get that to display how much damage was done to self like ...
Quote:
|
Code:
|
It always displays 0 HP! for every fall. Is the script missing something?
|
:shock: Oooops.. ya, it should only be printing 0.. that would make sense!!
I messed up, did it too fast.. try this tho, it may be what you're looking for: (but again, I didnt test this) Code:
NOTE: Notice the change in the register_event() |
Thanks, worked great. Can I get just one more thing added? If the person dies (suicide) can I get it to display ...
Quote:
|
this might work if you add it to the damage function
Code:
just taking a stab in the dark at this prolly doesnt work |
| All times are GMT -4. The time now is 14:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.