14.08.2011, 01:30
(
Последний раз редактировалось [HiC]TheKiller; 14.08.2011 в 02:41.
Причина: Forgot something :P.
)
You could retreive all the values from the current car and apply them to the next.
pawn Код:
new VID = GetPlayerVehicleID(playerid), Float:Xpos[2], Float:Ypos[2], Float:Zpos[2], Float:Angle;
GetVehiclePos(VID, Xpos[0], Ypos[0], Zpos[0]);
GetVehicleVelocity(VID, Xpos[1], Ypos[1], Zpos[1]);
GetVehicleZAngle(VID, Angle);
DestroyVehicle(VID);
VID = CreateVehicle(/*ModelID*/, Xpos[0], Ypos[1], Zpos[2], Angle, 0, 0, 99999999999);
PutPlayerInVehicle(playerid, VID, 0);
SetVehicleVelocity(VID, Xpos[1], Ypos[1], Zpos[2]);