How to get the Killer of a victim in vehicle?
#10

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;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)