05.08.2016, 15:15
Hi everyone , i'm trying to "input" Angle in "X-Y" but , no result becaue i never made something like this. I want to take the perfect possition , can someone help me please?
I want to get the perfect possition of my "petrolcap" even if i change my car angle.
Код:
GetVehiclePos(GetPlayerVehicleID(playerid),p[0],p[1],p[2]); GetVehicleZAngle(GetPlayerVehicleID(playerid),p[3]); GetVehicleModelInfo(GetVehicleModel(vehicleid), VEHICLE_MODEL_INFO_PETROLCAP, X, Y, Z); SetPlayerCheckpoint(playerid,p[0]+X,p[1]+Y,p[2]+Z,3.0); p[0] += (floatsin(-p[3], degrees)); p[1] += (floatcos(-p[3], degrees)); testpick = CreatePickup(1318,23,p[0]+X,p[1]+Y,p[2]+Z,-1);