[Include] New OnVehicleDeath - With 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: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (
https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] New OnVehicleDeath - With reason (
/showthread.php?tid=523282)
New OnVehicleDeath - With reason -
Sramm - 01.07.2014
Hi!
This include shows you, how the vehicle has destroyed. (Water or explosion)
It will look like this:
Код:
public OnVehicleDeath(vehicleid,killerid,reason)
If exploded, then the reason is 0, if fall into water, then is 1.
Example:
Код:
#include <vehdeath>
public OnVehicleDeath(vehicleid, killerid,reason)
{
if(reason == 0) return SendClientMessage(killerid,-1,"Exploded..");
else return SendClientMessage(killerid,-1,"Water");
}
Download:
http://www.solidfiles.com/d/170ecda80f/vehdeath.inc
Re: New OnVehicleDeath - With reason -
Rittik - 01.07.2014
I think you should check this out.
Though I think it will not work.By the way good try.
Re: New OnVehicleDeath - With reason -
Sramm - 01.07.2014
It's work, i tested.
Re: New OnVehicleDeath - With reason -
greentarch - 02.07.2014
If my vehicle is on fire and at the same time I drowned it at the water, what would be the reason?
I'm guessing explosion... when it should be water?
Re: New OnVehicleDeath - With reason -
Sramm - 02.07.2014
Yes, i working on it.