SA-MP Forums Archive
How i can detect crash - 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)
+--- Thread: How i can detect crash (/showthread.php?tid=562014)



How i can detect crash - bigboy81 - 06.02.2015

How i can detect if player are crashed and do something if are


Re: How i can detect crash - HazardouS - 06.02.2015

This callback detects when a vehicles gets damage to doors, lights and other components.
https://sampwiki.blast.hk/wiki/OnVehicleDamageStatusUpdate

Use it wisely!


Re: How i can detect crash - bigboy81 - 06.02.2015

what about if player is not vehicle?
if player crashed if near some object ?


Re: How i can detect crash - HazardouS - 06.02.2015

Hold on a second, what do you mean by crashing? When the player gets injured from falling or something like this, use this callback: https://sampwiki.blast.hk/wiki/OnPlayerTakeDamage
Look at these "weapon" IDs starting from 49, they are responsible for "crashes": https://sampwiki.blast.hk/wiki/Weapons


Re: How i can detect crash - Sime30 - 06.02.2015

He means when you crash out of the game. Right?