How i can detect crash
#1

How i can detect if player are crashed and do something if are
Reply
#2

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

Use it wisely!
Reply
#3

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

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
Reply
#5

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


Forum Jump:


Users browsing this thread: 1 Guest(s)