02.12.2011, 18:23
I think this would be a better way of doing it.
pawn Код:
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
if (newinteriorid == 0)
{
SetPlayerVirtualWorld(playerid, 0); // Will make the player go back to the 0 VW when the new interior id is 0
}
else
{
SetPlayerVirtualWorld(playerid, (5000 + playerid)); // Will set a certain virtual world, based on the player position when he starts entering the interior.
}
}