Detect if a player has made damage to another player
As title says, how do I do it?
|
Re: Detect if a player has made damage to another player
Hook Ham_TakeDamage
|
Re: Detect if a player has made damage to another player
Quote:
|
Re: Detect if a player has made damage to another player
|
Re: Detect if a player has made damage to another player
PHP Code:
|
Re: Detect if a player has made damage to another player
Quote:
|
Re: Detect if a player has made damage to another player
Just learn from this code: https://forums.alliedmods.net/showthread.php?t=88577
|
Re: Detect if a player has made damage to another player
better use offset
PHP Code:
|
Re: Detect if a player has made damage to another player
^um... What's wrong with the dmg param provided by the forward?
|
Re: Detect if a player has made damage to another player
@avril-lavigne, your way is not better, since you already hook Take_Damage you can use the dmg param provided by the ham forward, if you need the damage in other places your way may be better, because you don't need to hook TakeDamage().
|
| All times are GMT -4. The time now is 17:37. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.