[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


Messages In This Thread
New OnVehicleDeath - With reason - by Sramm - 01.07.2014, 14:32
Re: New OnVehicleDeath - With reason - by Rittik - 01.07.2014, 14:42
Re: New OnVehicleDeath - With reason - by Sramm - 01.07.2014, 14:49
Re: New OnVehicleDeath - With reason - by greentarch - 02.07.2014, 18:37
Re: New OnVehicleDeath - With reason - by Sramm - 02.07.2014, 20:54

Forum Jump:


Users browsing this thread: 2 Guest(s)