[Ajuda] Destruir objetos do veiculo ao explodir
#2

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


Messages In This Thread
Destruir objetos do veiculo ao explodir - by wallacematheus - 27.02.2013, 13:16
Respuesta: Destruir objetos do veiculo ao explodir - by Parka - 27.02.2013, 13:23

Forum Jump:


Users browsing this thread: 1 Guest(s)