Use SetPlayerVirtualWorld when teleporting him to the interior, and then when he exits, GetPlayerVirtualWorld, and depending on which VirtualWorld he's in, you can detect which exact business he's in, and which exterior coordinates you should teleport him to.
I have an enumerator to store the businesses VirtualWorld information, which etc. looks like this:
pawn Код:
BusinessInfo[id][VirtualWorld]
If you use this method, you can set it's virtual world to "500 * id" when you create it, so you still have 500 free slots for anything else you'd like.
pawn Код:
BusinessInfo[id][VirtualWorld] = 500 * id;
Or you can just set it to "= id" if you wish.