The problem is: I am using Airport Interior in LS, LV and SF, the same interior!
And when i exit the interior i exit always in LS Airport becase the LS Script comes first!
Код:
}
else if(IsPlayerInRangeOfPoint(playerid, 1, 1642.24,-2334.49,13.55))
{//Airport LS Entrance
PlayerInfo[playerid][pInteriorNr] = 1;
GameTextForPlayer(playerid, "~w~Airport LS", 5000, 1);
SafeSetPlayerInterior(playerid, 1);
SetPlayerVirtualWorld(playerid, 1);
SafeSetPlayerPos(playerid,1373.18,4.34,1000.98);
SetPlayerFacingAngle(playerid, 0);
TogglePlayerControllable(playerid, 0);
SetTimerEx("Unfreezeply",1500,false,"i",playerid);
}
else if(IsPlayerInRangeOfPoint(playerid, 1, 1373.18,4.34,1000.98))
{//Airport LS Exit
PlayerInfo[playerid][pInteriorNr] = 17;
GameTextForPlayer(playerid, "~w~Los Santos", 5000, 1);
SafeSetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SafeSetPlayerPos(playerid,1642.24,-2334.49,13.55);
}
else if(IsPlayerInRangeOfPoint(playerid, 1, -1421.63,-288.15,14.15))
{//Airport SF Entrance
PlayerInfo[playerid][pInteriorNr] = 2;
GameTextForPlayer(playerid, "~w~Airport SF", 5000, 1);
SafeSetPlayerInterior(playerid, 2);
SetPlayerVirtualWorld(playerid, 2);
SafeSetPlayerPos(playerid,1373.18,4.34,1000.98);
SetPlayerFacingAngle(playerid, 0);
TogglePlayerControllable(playerid, 0);
SetTimerEx("Unfreezeply",1500,false,"i",playerid);
}
else if(IsPlayerInRangeOfPoint(playerid, 1, 1373.18,4.34,1000.98))
{//Airport SF Exit
PlayerInfo[playerid][pInteriorNr] = 0;
GameTextForPlayer(playerid, "~w~San Fierro", 5000, 1);
SafeSetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SafeSetPlayerPos(playerid,-1421.63,-288.15,14.15);
}
else if(IsPlayerInRangeOfPoint(playerid, 1, 1675.37,1447.75,10.79))
{//Airport LV Entrance
PlayerInfo[playerid][pInteriorNr] = 3;
GameTextForPlayer(playerid, "~w~Airport LV", 5000, 1);
SafeSetPlayerInterior(playerid, 3);
SetPlayerVirtualWorld(playerid, 3);
SafeSetPlayerPos(playerid,1373.18,4.34,1000.98);
SetPlayerFacingAngle(playerid, 0);
TogglePlayerControllable(playerid, 0);
SetTimerEx("Unfreezeply",1500,false,"i",playerid);
}
else if(IsPlayerInRangeOfPoint(playerid, 1, 1373.18,4.34,1000.98))
{//Airport LV Exit
PlayerInfo[playerid][pInteriorNr] = 0;
GameTextForPlayer(playerid, "~w~Las Venturas", 5000, 1);
SafeSetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SafeSetPlayerPos(playerid,1675.37,1447.75,10.79);