23.08.2011, 20:26
(
Last edited by Kar; 24/08/2011 at 06:46 AM.
)
pawn Code:
stock GetXYInFrontOfVehicle(vehicleid, &Float:x, &Float:y, [b]Float:xangle[/b], Float:distance)
{
new Float:a;
GetVehiclePos(vehicleid, x, y, a);
GetVehicleZAngle(vehicleid, a);
x += (distance * floatsin(-a, degrees));
y += (distance * floatcos(-a, degrees));
}