02.03.2014, 19:20
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 */
}

