You could look in this topic. Its a zone module where you can check whenever a player enters or leaves a zone so you could make a zone in your playing area and detect when people are leaving that area.
You could look in this topic. Its a zone module where you can check whenever a player enters or leaves a zone so you could make a zone in your playing area and detect when people are leaving that area.