12.03.2014, 21:33
pawn Код:
forward Float:GetXYBehindCar(vid, &Float:q, &Float:w, Float:distance);
Float:GetXYBehindCar(vid, &Float:q, &Float:w, Float:distance)
{
new Float:a;
GetVehiclePos(vid, q, w, a);
GetVehicleZAngle(vid, a);
q += (distance * -floatsin(-a, degrees));
w += (distance * -floatcos(-a, degrees));
return a;
}