if(PlayerToPoint(range,playerid, x, y ,z) { //code else { SendClientMessage(playerid, COLOR, "You are not at right place"); } }