23.08.2010, 14:59
hi all, i don't know is there any function that check when some vehicle explode?
public OnVehicleDeath(vehicleid, killerid)
{
new string[40];
if(killerid == INVALID_PLAYER_ID) format(string, sizeof(string), "Vehicle %i was destroyed.", vehicleid);
else format(string, sizeof(string), "Vehicle %i was destroyed by ID %i", vehicleid, killerid);
SendClientMessageToAll(0xFFFFFFFF, string);
return 1;
}