27.02.2013, 13:23
pawn Code:
new objectid = CreateObject(...);
new Vehicle = GetPlayerVehicleID(playerid);
AttachObjectToVehicle(objectid, Vehicle, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);
public OnVehicleDeath(vehicleid, killerid)
{
if(Vehicle == vehicleid)
{
DestroyObject(objectid);
}
return 1;
}