Upon exit the door, you have to set player's virtual world to outside world. When you enter a door, your virtual world is set to something else like Door ID or something. This is done so that 2 doors can have multiple interiors but players inside will be technically together. Virtual Worlds are Server Sided interior IDs. Use
Code:
SetPlayerVirtualWorld()
to set their VW to outside world.(probably 0). You can use a flag variable to store player's old VW aswell. When he enters a door, his old VW will be stored inside that flag variable, and upon exit, you set player's VW to the value of that flag variable. This is useful if players enters a door inside another door.