13.10.2014, 17:01
That should be enough
pawn Код:
new Float: Angle = -atan2(TARGET_X - PLAYER_X, TARGET_Y - PLAYER_Y);
SetPlayerFacingAngle(playerid, Angle);