28.08.2011, 13:42
Ding, wrong variable
heading is the ZAngle (Yaw)
attitude is the Roll Angle
bank is the Pitch Angle
And than you forgot GetVehiclePos
Here your wanted code
heading is the ZAngle (Yaw)
attitude is the Roll Angle
bank is the Pitch Angle
And than you forgot GetVehiclePos
Here your wanted code
pawn Code:
new Float:x2, Float:y2, Float:z2, Float:bank;
GetVehicleRotation(id, x2, y2, bank);
GetVehiclePos(id, x2, y2, z2); // dont change the order!
GetXYZOfVehicle(id, x2, y2, z2, bank, 120.0);