Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stock TurnPlayerFaceToCoords(playerid, Float:x, Float:y) // by frog163
- {
- new Float:pPos[3];
- GetPlayerPos(playerid, pPos[0], pPos[1], pPos[2]);
- SetPlayerFacingAngle(playerid, 180.0-atan2(pPos[0] - x, pPos[1] - y));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement