23.07.2013, 02:02
here you go
Credits to RyDeR`, he thought me about angles with some functions he gave me.
pawn Код:
new Float:x, Float:y, Float:z;
GetVehiclePos(vehicleid, x, y, z);
GetVehicleZAngle(vehicleid, angle);
new Float:r_Z = atan2(y - DestY, x - DestX) - angle;