Quote:
Originally Posted by JacobEdwards
Here is the code for GetXYInFrontOfVehicle()
pawn Код:
GetXYInFrontOfVehicle(playerid, &Float:x, &Float:y, Float:distance) { new Float:a; GetVehiclePos(playerid, x, y, a); GetVehicleZAngle(playerid, a); x += (distance * floatsin(-a, degrees)); y += (distance * floatcos(-a, degrees)); }
|
Quote:
Originally Posted by Konstantinos
So you're not in the car. I'm not sure but I think there's a bug with SetVehicleZAngle function and it won't set the angle if the vehicle is not occupied. So it might return the previous angle and that's why it doesn't create it in front of it.
|
So? I can't? I must create the checkpoint behind the car but the coord are wrong. I don't know how to do...