OnPlayerDeath - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: OnPlayerDeath (
/showthread.php?tid=226489)
OnPlayerDeath -
Kyle - 15.02.2011
I need to know how to make an accurate onplayerdeath. Sometimes when i shoot a car and stop the car is fine, later the car sets on fire by crashing and kills the player it will make me wanted level caus i shot the car before.
Thanks
Re: OnPlayerDeath -
Calgon - 15.02.2011
You can't make it completely accurate.
You can try to add logic statements to enhance the accuracy of the OnPlayerDeath results. For example, you could confirm that a player was even spawned or connected at a certain time by cross-referencing variables with if statements, but even with these attempts, there's no confirmation that the callback will return entirely accurate results after filtering the results through logic checks.