new vehicle;
vehicle = GetPlayerVehicleID(playerid);
SetPlayerPos(playerid, 58.9391,-134.7392,2.3367);
SetVehiclePos(vehicle, 58.9391,-134.7392,2.3367);
PutPlayerInVehicle(playerid, vehicle, 0);
SetVehicleZAngle(vehicleid, angle);
new vehicle; new Float:angle; vehicle = GetPlayerVehicleID(playerid); SetPlayerPos(playerid, 58.9391,-134.7392,2.3367); SetVehiclePos(vehicle, 58.9391,-134.7392,2.3367); GetVehicleZAngle(vehicle, angle); SetVehicleZAngle(vehicle, angle); PutPlayerInVehicle(playerid, vehicle, 0);
Код:
new vehicle; new Float:angle; vehicle = GetPlayerVehicleID(playerid); SetPlayerPos(playerid, 58.9391,-134.7392,2.3367); SetVehiclePos(vehicle, 58.9391,-134.7392,2.3367); GetVehicleZAngle(vehicle, angle); SetVehicleZAngle(vehicle, angle); PutPlayerInVehicle(playerid, vehicle, 0); |
Angles are reversed in GTA:SA; 90 degrees would be East in the real world, but in GTA:SA 90 degrees is in fact West. North and South are still 0/360 and 180. To convert this, simply do 360 - angle.
new vehicle; vehicle = GetPlayerVehicleID(playerid); SetPlayerPos(playerid, 58.9391,-134.7392,2.3367); SetVehiclePos(vehicle, 58.9391,-134.7392,2.3367); PutPlayerInVehicle(playerid, vehicle, 0);
SetVehiclePos(GetPlayerVehicleID(playerid), 58.9391,-134.7392,2.3367);