02.06.2012, 15:17
I don't undesrstand,why it's not attaching?
Код:
public OnVehicleSpawn(vehicleid) { if(vehicleid == 487){ VehicleHasObject[vehicleid] = true; VehicleAttachedObject[vehicleid] = CreateObject(1473, 1.754998, 0.414999, -0.969999, -27.134992, 0.000000, 0.000000, 100.0); AttachObjectToVehicle(VehicleAttachedObject[vehicleid], vehicleid, 1.754998, 0.414999, -0.969999, -27.134992, 0.000000, 0.000000); } return 1; } public OnVehicleDeath(vehicleid) { if(VehicleHasObject[vehicleid]){ DestroyObject(VehicleAttachedObject[vehicleid]); VehicleHasObject[vehicleid] = false; } return 1; }