13.09.2015, 04:11
I think this is what you want
Код:
stock GetXYInfrontOfVehicle(vehicleid,Float:distance, &Float:x, &Float:y) { new Float:z, Float:angle; GetVehiclePos(vehicleid,x,y,z); GetVehicleZAngle(vehicleid,angle); x += (distance * floatsin(-angle, degrees)); y += (distance * floatcos(-angle, degrees)); }