[Include] New OnVehicleDeath - With reason
#1

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

I think you should check this out.

Though I think it will not work.By the way good try.
Reply
#3

It's work, i tested.
Reply
#4

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

Yes, i working on it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)