foreach(Player, i){ new Float:X, Float:Y, Float:Z; GetPlayerPos(i, X, Y, Z); if(IsPlayerInRangeOfPoint(playerid, 5.0, X, Y, Z)) { // play your sound. }}