26.12.2011, 09:57
I use this functioni and then play with the Z cordinates of it.
I use Z as 3.5
I hope this will suit your needs. + rep if this helped.
Код:
stock Float:GetXYInFrontOfVehicle(vehicleid, &Float:x, &Float:y, Float:distance)
{
new Float:a;
GetVehiclePos(vehicleid, x, y, a);
GetVehicleZAngle(vehicleid, a);
x += (distance * floatsin(-a, degrees));
y += (distance * floatcos(-a, degrees));
return a;
}
I hope this will suit your needs. + rep if this helped.

