Interior Problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Interior Problem (
/showthread.php?tid=274591)
Interior Problem -
Compton - 06.08.2011
Hello, I have a problem with same interiors, well I want to add few house interiors around the city and some of them will be same, and all of the interiors will be with same commands /enter and /exit, The problem is if I make 2 same interiors lets say: 1 at Ganton and 2nd at East Beach, I will do /enter in Ganton But will /exit at East Beach, Im wondering if there is a way to fix this?
Here is the command of one of the interiors
if(!strcmp("/enter",cmdtext))
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2808.1072,-1175.9288,25.3790))
{
SetPlayerPos(playerid,2807.63,-1170.15,1025.57);
SetPlayerInterior(playerid,

;
}
Re: Interior Problem -
Norck - 06.08.2011
You need to use different virtual worlds.
https://sampwiki.blast.hk/wiki/SetPlayerVirtualWorld
https://sampwiki.blast.hk/wiki/GetPlayerVirtualWorld