There's multiple ways in doing this.
When a player teleports to that map, in that same event, add in the event command, Change Menu Access, and disable it.
OR
You can create an event in that specific map that's a Parallel Process. Let the event have the Change Menu Access command and have it disable menu access.
Regardless of whatever way you do though, you need to re-enable access to the menu. When the player exits the map through another teleport event, simply have a Change Menu Access command re-enabling the menu.