02.11.2010, 21:13
Got it right here in some of my scripts
have fun
Код:
GetXYInFrontOfVehicle(vehicleid, &Float:x, &Float:y, Float:distance) { new Float:a; GetVehiclePos(vehicleid,x,y,a); GetVehicleZAngle(vehicleid,a); //a +=180; (uncomment this if you want the coцrds behind the vehicle x += (distance * floatsin(-a, degrees)); y += (distance * floatcos(-a, degrees)); }