02.02.2017, 15:49
OnPlayerUpdate will not be called for paused players. So you can use the last received angle update of the player.
pawn Code:
new
Float:g_PlayerLastAngle[MAX_PLAYERS];
public OnPlayerUpdate(playerid) {
GetPlayerFacingAngle(playerid, g_PlayerLastAngle[playerid]);
return 1;
}
//if player is paused, use the last received angle.