06.03.2013, 14:59
Hi!
I've never tested attach object to vehicle, but now when I tired it, the objects won't
show up at right place on the car..
I took the same coordinates as from the objects, maybe you shoulden't do that way?..
Well I maybe figured out the problem now but not full sure, so I wait for reply.
I've never tested attach object to vehicle, but now when I tired it, the objects won't
show up at right place on the car..
pawn Код:
if (strcmp("/aveh", cmdtext, true, 10) == 0)
{
new Obj1 = CreateObject(1000, 1857.13, 810.50, 10.45, 7.44, -0.84, -1.20);
new Obj2 = CreateObject(1006, 1857.08, 814.52, 10.43, 0.00, 0.00, 0.00);
new Obj3 = CreateObject(1025, 1856.40, 811.98, 10.42, 0.00, 0.00, 1.44);
new Obj4 = CreateObject(1046, 1857.29, 812.24, 10.08, 0.00, 0.00, 0.00);
new Obj5 = CreateObject(2937, 1857.02, 815.27, 9.52, 0.96, 88.32, -90.12);
new Veh = GetPlayerVehicleID(playerid);
AttachObjectToVehicle(Obj1, Veh, 1857.13, 810.50, 10.45, 7.44, -0.84, -1.20);
AttachObjectToVehicle(Obj2, Veh, 1857.08, 814.52, 10.43, 0.00, 0.00, 0.00);
AttachObjectToVehicle(Obj3, Veh, 1856.40, 811.98, 10.42, 0.00, 0.00, 1.44);
AttachObjectToVehicle(Obj4, Veh, 1857.29, 812.24, 10.08, 0.00, 0.00, 0.00);
AttachObjectToVehicle(Obj5, Veh, 1857.02, 815.27, 9.52, 0.96, 88.32, -90.12);
return 1;
}
return 0;
}
pawn Код:
Aveh = CreateVehicle(605, 1857.1119, 812.9612, 10.0264, 1.2000, -1, -1, 100);// Admin vehicle
I took the same coordinates as from the objects, maybe you shoulden't do that way?..
Well I maybe figured out the problem now but not full sure, so I wait for reply.