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



death reason? - Martin_Smith - 23.02.2009

Hey, im trying to make it so if You die from Falling, u lose 2000 Money, but i cant find the Death reason of Falling on: https://sampwiki.blast.hk/wiki/Weapons (weaposn and Death reasons are on there)

So, is there any way i can do this?


Re: death reason? - Lazarus - 23.02.2009

Collision.


Re: death reason? - Martin_Smith - 23.02.2009

ah, so that counts as death from falling?


Re: death reason? - Lazarus - 23.02.2009

Yup O:!


Re: death reason? - Martin_Smith - 23.02.2009

How do i say like....If Death from Collision in Scripting? so like

If(Death from Collision)
{
blahblah
}


Re: death reason? - Lazarus - 23.02.2009

pawn Код:
if(reason == 54)
{
    //do stuff
}