[Ajuda] Interior bugado!
#8

Testa ai:

Obs: As 3 entradas estгo separadas, mas as saнdas, botei todas juntas.
Код:
if(PlayerToPoint(2, playerid,-1755.0914,962.3484,24.882)//ROTAM-SF entrada
{
	SetPlayerVirtualWorld(playerid, 1); //Se ele entrou na de SF, o Virtual World vai ser 1
	XXAirBreak[playerid] += 3;
	XXAirBreak[playerid] += 3;
	SetPlayerPos(playerid,288.745971,169.350997,1007.171875);
	GameTextForPlayer(playerid, "~y~HQ ROTAM-SF", 5000, 1);
	PlayerInfo[playerid][pInt] = 3;
	SetPlayerInterior(playerid,3);
	storeexit[playerid] = 15;
}

if(PlayerToPoint(3, playerid,328.0614,-1512.2689,36.0325))//Rotam LS entrada
{
    SetPlayerVirtualWorld(playerid, 2); //Se ele entrou na de LS, o Virtual World vai ser 2
	XXAirBreak[playerid] += 3;
	XXAirBreak[playerid] += 3;
	SetPlayerPos(playerid, 238.7194,141.7792,1003.0234);
	GameTextForPlayer(playerid, "~w~DP Rotam-LS",5000,1);
	SetPlayerInterior(playerid,3);
	SetPlayerFacingAngle(playerid, 0);
	//localizardppc[playerid] = 1;
	PlayerInfo[playerid][pInt] = 3;
	storeexit[playerid] = 2;
}

if(PlayerToPoint(3, playerid,-2454.0352,503.9203,30.0793))
{
    SetPlayerVirtualWorld(playerid, 3); //Se ele entrou na PF, o Virtual World 3
	XXAirBreak[playerid] += 3;
	XXAirBreak[playerid] += 3;SetPlayerPos(playerid, 238.7194,141.7792,1003.0234);
	GameTextForPlayer(playerid, "~w~DP Policia Federal",5000,1);
	SetPlayerInterior(playerid,3);
	SetPlayerFacingAngle(playerid, 0);
	//localizardppc[playerid] = 1;
	PlayerInfo[playerid][pInt] = 3;
	SetPlayerVirtualWorld(playerid, 1);
	storeexit[playerid] = 2;
}

if(PlayerToPoint(3, playerid,238.5649,139.3974,1003.0234))//Saida SF/LS
{
	XXAirBreak[playerid] += 3;
	XXAirBreak[playerid] += 3;
	
	if(GetPlayerVirtualWorld(playerid) == 1) //Caso o Virtual World for 1(SF)
	{
		SetPlayerPos(playerid,-1755.0914,962.3484,24.882);//Teleporta para a saida de SF
		GameTextForPlayer(playerid, "~y~SAN FIERRO", 5000, 1);
	}
	if(GetPlayerVirtualWorld(playerid) == 2) //Caso o Virtual World for 2(LS)
	{
	    SetPlayerPos(playerid,,329.1469,-1512.7855,36.0391);
	    GameTextForPlayer(playerid, "~r~Los Santos",5000,1);
	}
	if(GetPlayerVirtualWorld(playerid) == 3) //Caso o Virtual World for 3(Saida da PF)
	{
	    SetPlayerPos(playerid, 322.0765,303.8634,999.1484);
     	GameTextForPlayer(playerid, "~w~San Fierro",5000,1);
	}
	SetPlayerVirtualWorld(playerid, 0); //Bota o Virtual World normal denovo
	SetPlayerInterior(playerid,0);
	SetPlayerFacingAngle(playerid,0);
	PlayerInfo[playerid][pInt] = 0;
	storeexit[playerid] = 0;
}
Reply


Messages In This Thread
Interior bugado! - by BrasilOnlinePlay - 11.12.2015, 22:14
Re: Interior bugado! - by BrasilOnlinePlay - 15.12.2015, 22:07
Re: Interior bugado! - by Ever_SH - 15.12.2015, 22:12
Re: Interior bugado! - by BrasilOnlinePlay - 15.12.2015, 22:14
Re: Interior bugado! - by BrasilOnlinePlay - 19.12.2015, 12:34
Re: Interior bugado! - by Ever_SH - 19.12.2015, 13:04
Re: Interior bugado! - by BrasilOnlinePlay - 19.12.2015, 13:10
Re: Interior bugado! - by Ever_SH - 19.12.2015, 13:40
Re: Interior bugado! - by BrasilOnlinePlay - 19.12.2015, 14:15

Forum Jump:


Users browsing this thread: 1 Guest(s)