Interior bug
#1

I've made two 24/7 with the same interiors one in LS and one in SF. When i exit from 24/7 SF it put me on the exit from the 24/7 LS

Код:
   else if (PlayerToPoint(3.0, playerid,1352.3225,-1759.0187,13.5078)) // /enter 24/7 3
   {
        SetPlayerInterior(playerid,16);
     SetPlayerPos(playerid,-26.0137,-140.1184,1003.5469);
     PlayerInfo[playerid][pInt] = 16;
     SetPlayerVirtualWorld(playerid, 10);
     PlayerInfo[playerid][pLocal] = 257;
   }
   else if (PlayerToPoint(3.0, playerid,-26.0137,-140.1184,1003.5469)) // /exit 24/7 4
   {
        SetPlayerInterior(playerid,0);
     SetPlayerPos(playerid,1352.3225,-1759.0187,13.5078);
     PlayerInfo[playerid][pInt] = 0;
     PlayerInfo[playerid][pLocal] = 257;
   }
Reply
#2

Check the spawn positions, X, Y, Z.
Make sure that are all the right positions.

Regards,
Rodri.
Reply
#3

Have you created both interiors at the same position but in another interior?
In this case, it will always detect the first "if" as the position is unrelated to the interior id.
So if you use 1 interior in 2 interior ids, then you should check which interior id the player is in with GetPlayerInterior
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)