SA-MP Forums Archive
GetDeathreason? - 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: GetDeathreason? (/showthread.php?tid=143337)



GetDeathreason? - 0ne - 22.04.2010

Is there any way to getplayer's death reason of killed by vehicle?


Re: GetDeathreason? - Adil - 22.04.2010

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
  if(reason == 38)
  {
  // Do something here
  }
  return 1;
}