GetPlayerFacingAngle

From SA-MP Wiki

Jump to: navigation, search


Return angle of the direction the player is facing.


Parameters:
(playerid,Float:Angle)
playeridThe player you want to get the angle of.
Float:AngleThe Float to store the angle in, passed by reference.


ReturnsThis function doesn't return a specific value


new Float:Angle, string[26];
GetPlayerFacingAngle(playerid, Angle);
format(string, sizeof(string), "Your facing angle: %0.2f", Angle);
SendClientMessage(playerid, 0xFFFFFFFF, string);

Related Functions

The following functions may be useful, as they are related to this function in one way or another.

Personal tools