13.06.2014, 06:17
When you are in a vehicle, you should use
When you are on foot you should use
If you are wanting to get the opposite facing angle (such as behind you or to your side) you can always use simple math:
It is important to note that when you get these values they are placed as a float, so you should use them when appropriate. If you need/want to make them an integer use
pawn Код:
GetVehicleZAngle(vehicleid);
pawn Код:
GetPlayerFacingAngle(playerid);
pawn Код:
new Float:angle = GetPlayerFacingAngle(playerid)-90.0;
pawn Код:
floatround(angle); //Or whatever float variable you want to be made into an integer