death message
#1

Hi. How do I check if a player died in an accident, in an explosion or simply if he was killed?
Reply
#2

The OnPlayerDeath callback provides the reason for a player death, see the below wiki pages:

https://sampwiki.blast.hk/wiki/OnPlayerDeath
List of death reasons:
https://sampwiki.blast.hk/wiki/Weapons

Near the bottom of the list you'll see that explosion is ID 51 which you could check for during OnPlayerDeath.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)