28.04.2013, 10:44
Create the plane before you set its position, rotation, and velocity.
Edit:
If you spawn a "Hydra" ID 520, it will kill the set velocity, because it always spawn in hover mode.
Anyway
Edit:
If you spawn a "Hydra" ID 520, it will kill the set velocity, because it always spawn in hover mode.
Anyway
pawn Код:
new my_vehicle = GetPlayerVehicleID(playerid), Float:v_dat[7];
GetVehiclePos(my_vehicle, v_dat[0], v_dat[1], v_dat[2]);
GetVehicleZAngle(my_vehicle, v_dat[3]);
GetVehicleVelocity(my_vehicle, v_dat[4], v_dat[5], v_dat[6]);
DestroyVehicle(my_vehicle);
PutPlayerInVehicle(playerid, my_vehicle = CreateVehicle(519, v_dat[0], v_dat[1], v_dat[2], v_dat[3], 1, 1, 0), 0);
SetVehicleVelocity(my_vehicle, v_dat[4], v_dat[5], v_dat[6]);