[ajuda] caindo quando sair do interior -
coringa_smith157 - 18.05.2012
assim eu entro normal mais quando eu sair eu caiu me ajuda ai galeras
Re: [ajuda] caindo quando sair do interior -
ViictorDaay- - 18.05.2012
E porque quando vocк sai voce nгo botou uma cordenada para quando ele sair ele ser setado a posiзгo digita.
Re: [ajuda] caindo quando sair do interior -
coringa_smith157 - 18.05.2012
como assim
Re: [ajuda] caindo quando sair do interior -
ViictorDaay- - 18.05.2012
Tipo vocк entra no interior como?
se for por comando poste ele aqui.
Re: [ajuda] caindo quando sair do interior -
coringa_smith157 - 18.05.2012
pawn Код:
else if(PlayerToPoint(1, playerid,1876.8912,-1682.1334,13.5387))//HQ BOPE entrada
{
SafeSetPlayerPos(playerid,246.4869,107.7615,1003.2188);
SetPlayerFacingAngle(playerid, 277.0);
SetPlayerInterior(playerid,10);
Player[playerid][pInt] = 10;
}
else if(PlayerToPoint(1, playerid,246.4869,107.7615,1003.2188))//HQ BOPE saida
{
SafeSetPlayerPos(playerid,1876.8912,-1682.1334,13.5387);
SetPlayerFacingAngle(playerid, 270.0);
SetPlayerInterior(playerid,0);
Player[playerid][pInt] = 0;
}
Re: [ajuda] caindo quando sair do interior -
ViictorDaay- - 18.05.2012
Estб certo ._.
Re: [ajuda] caindo quando sair do interior -
coringa_smith157 - 18.05.2012
entao eu n sei pq ele cair '-'
Re: [ajuda] caindo quando sair do interior -
Welton_Ranger - 18.05.2012
Ta ai, tenta usar esse, vai dar certo agora:
pawn Код:
else if(PlayerToPoint(3, playerid,1876.8912,-1682.1334,13.5387))//HQ BOPE entrada
{
GameTextForPlayer(playerid, "~w~DP BOPE", 5000, 1);
SetPlayerInterior(playerid, 10);
SetPlayerPos(playerid,246.4869,107.7615,1003.2188);
PlayerInfo[playerid][pInt] = 10;
SetPlayerVirtualWorld(playerid, 0);
}
else if(PlayerToPoint(2.0, playerid,246.4869,107.7615,1003.2188))//HQ BOPE saida
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1876.8912,-1682.1334,13.5387);
PlayerInfo[playerid][pInt] = 0;
SetPlayerVirtualWorld(playerid, 0);
PlayerInfo[playerid][pLocal] = 255;
}
Re: [ajuda] caindo quando sair do interior -
coringa_smith157 - 18.05.2012
ainda n deu ta a msm coisa '-'
Re: [ajuda] caindo quando sair do interior -
steeldark - 18.05.2012
Apenas para testar.. usa o seu codigo mesmo..
pawn Код:
else if(PlayerToPoint(1, playerid,1876.8912,-1682.1334,13.5387))//HQ BOPE entrada
{
SafeSetPlayerPos(playerid,246.4869,107.7615,1003.2188);
SetPlayerFacingAngle(playerid, 277.0);
SetPlayerInterior(playerid,10);
Player[playerid][pInt] = 10;
}
else if(PlayerToPoint(1, playerid,246.4869,107.7615,1003.2188))//HQ BOPE saida
{
SafeSetPlayerPos(playerid,1876.8912,-1682.1334,13.5387);
SetPlayerFacingAngle(playerid, 270.0);
SetPlayerInterior(playerid,0);
Player[playerid][pInt] = 0;
}
e coloca isso
pawn Код:
DisableInteriorEnterExits();
na public OnGameModeInit.
se ainda assim nгo funcionar.. apenas mude SafeSetPlayerPos para SetPlayerPos com o codigo DisableInteriorEnterExits no seu OnGameModeInt.