15.04.2019, 22:09
Ola gostaria de usar 2 lugar com um mesmo interior! eu mudei la no SetPlayerVirtualWorld mais quando vou testa no servidor eu saio em outro lugar tipo!
Entro No Lugar (A) e Saio No Lugar (A)
Entro No Lugar (B) e Saio No Lugar (A)
Lugar (A)
Lugar (B)
Entro No Lugar (A) e Saio No Lugar (A)
Entro No Lugar (B) e Saio No Lugar (A)
Lugar (A)
pawn 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, 0);
}
if(PlayerToPoint(3.0, playerid,246.4631,110.1669,1003.2257))
{//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;
}
pawn Code:
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 ))
{
//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;
}