Is Player Behind Player
#1

Hey everyone.I have a command that I wan to work only if a player is behind an other player but I have no idea how to start.I hope someone can help me.Thank you.
Reply
#2

This is the best way, it can't detect behind, but it will detect if they are near the player.

pawn Код:
new Float:x, Float:y, Float:z;
GetPlayerPos(pID, x, y, z);
if(IsPlayerInRangeOfPoint(playerid, 5, x, y, z))
{
      /* do your things here */
}
Reply
#3

Oh thanks.But I do need to be behind him.I am already using a_angles and it has that function
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)