public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if ((newkeys & KEY_YES) && IsPlayerInRangeOfPoint(playerid, x, y ,z)) // Your coords { ShowPlayerDialog.... // Your dialog code } return 1; }