13.10.2014, 11:07
You could try to use OnVehicleDeath. And you can find the GetVehicleDriver function around here.
pawn Код:
public OnVehicleDeath(vehicleid, killerid)
{
new string[64];
format(string, sizeof(string), "%s's vehicle (%i) was destroyed by %s (%i).", GetVehicleDriver(vehicleid), vehicleid, pName(killerid), killerid);
SendClientMessageToAll(-1, string);
return 1;
}