OnPlayerTakeDamage Reporting False Weapon/ Reasons - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP (
https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Bug Reports (
https://sampforum.blast.hk/forumdisplay.php?fid=20)
+--- Thread: OnPlayerTakeDamage Reporting False Weapon/ Reasons (
/showthread.php?tid=489960)
OnPlayerTakeDamage Reporting False Weapon/ Reasons -
Goldenfox - 24.01.2014
OnPlayerTakeDamage is called several times when you are being 'car parked', meaning a vehicle is ontop of you. The health reduction and value is -0.4 damage at a time, but it reports that you are being HELIBLADED rather then rammed with a vehicle.
If however you have low health (ie 1.0) and are rammed with a vehicle and instantly killed without being parked ontop of, it will register as a vehicle ram rather then a heliblade.