Posts: 15
Threads: 5
Joined: Oct 2017
Reputation:
0
Hello, I have a problem with weaponid 54 called in OnPlayerTakeDamage callback. When player fell on the ground from a height then he dies. I want take damage from him, for example only 5 hp.
Posts: 446
Threads: 125
Joined: Mar 2012
Reputation:
0
Are you using GivePlayerWeapon? Or WEAPON_COLLISION? You cannot use GivePlayerWeapon
Posts: 6,242
Threads: 8
Joined: Jun 2008
https://sampforum.blast.hk/showthread.php?tid=615646 Has info directly relating to this instance.
https://sampforum.blast.hk/showthread.php?tid=606430 Has info relating to all other aspects of stopping damage.
Posts: 15
Threads: 5
Joined: Oct 2017
Reputation:
0
Thank you all for replies, I have idea to make player "god", I'll create textdraw to hide the real health bar and then player will has always 1000 hp or something.