09.09.2011, 04:21
Код:
stock GetXYBehindPoint(Float:x,Float:y,&Float:x2,&Float:y2,Float:A,Float:distance) { x2 = x - (distance * floatsin(-A,degrees)); y2 = y - (distance * floatcos(-A,degrees)); } stock GetXYBehindVehicle(playerid,&Float:x,&Float:y,Float:dis) { new currentveh; new float:pos[3]; new float:A; currentveh = GetPlayerVehicleID(playerid); GetVehiclePos(currentveh,pos[0],pos[1],pos[2]); GetVehicleZAngle(currentveh,A); GetXYBehindPoint(pos[0],pos[1],x,y,A,dis); }