05.06.2012, 14:38
You need to store the object id for destroy later.
Fast example.
You can use the slots 0, 1, 2, 3 and 4 for hold the attached objects id, if more is needed, change the value of 5 for your amount.
Fast example.
pawn Код:
//Top:
new VehicleInfo[MAX_VEHICLES][5];
//Attaching:
VehicleInfo[vehicleid][0] = CreateObject(blabla..);
AttachObjectToVehic...
//Detaching:
DestroyObject(VehicleInfo[vehicleid][0]);