Testa assim....
PHP Code:
if(PlayerToPoint(3.0, playerid,329.849212,-1513.072753,36.039062))//Entrada HQ BOPE
{
GameTextForPlayer(playerid, "~w~DP BOPE", 5000, 1);
SetPlayerInterior(playerid, 10);
SetPlayerPos(playerid,246.4631,110.1669,1003.2257);
PlayerInfo[playerid][pInt] = 10;
SetPlayerVirtualWorld(playerid, 4);
}
else if(PlayerToPoint(3.0, playerid, 246.375991,109.245994,1003.218750) && GetPlayerVirtualWorld(playerid) == 4)//Saida HQ BOPE
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,329.849212,-1513.072753,36.039062);
PlayerInfo[playerid][pInt] = 0;
SetPlayerVirtualWorld(playerid, 0);
PlayerInfo[playerid][pLocal] = 255;
}
else if(PlayerToPoint(3.0, playerid,626.9647,-571.7733,17.9207))//GATE Entrada
{
SetPlayerPos(playerid, 246.375991,109.245994,1003.218750 );
GameTextForPlayer(playerid, "~w~DP GATE",5000,1);
SetPlayerInterior(playerid,10);
SetPlayerFacingAngle(playerid, 0);
PlayerInfo[playerid][pInt] = 10;
SetPlayerVirtualWorld(playerid, 3);
}
else if(PlayerToPoint(3.0, playerid, 246.375991,109.245994,1003.218750) && GetPlayerVirtualWorld(playerid) == 3)//Saida GATE
{
SetPlayerPos(playerid, 626.9647,-571.7733,17.9207);
SetPlayerInterior(playerid,0);
SetPlayerFacingAngle(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerVirtualWorld(playerid, 0);
PlayerInfo[playerid][pLocal] = 255;
}