23.08.2015, 11:07
Tipo, entro em um apartamento e todos os apartamentos tem o mesmo interior (Sу que em mundos diferentes) e quando saio, saio no lugar do primeiro apartamento.
Entrada:
Saнda:
Entrada:
pawn Код:
else if(PlayerToPoint(3, playerid,-1601.3732,767.6286,7.1875))
{//Entrada Apartamentos 1
GameTextForPlayer(playerid, "~w~Apartamento", 5000, 1);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1312.5664,-1048.2203,3353.9048);
PlayerInfo[playerid][pInt] = 0;
}
else if(PlayerToPoint(3, playerid,-1697.5094,883.7151,24.8982))
{//Entrada Apartamentos 2
GameTextForPlayer(playerid, "~w~Apartamento", 5000, 1);
SetPlayerVirtualWorld(playerid, 1);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1312.5664,-1048.2203,3353.9048);
PlayerInfo[playerid][pInt] = 0;
}
pawn Код:
else if (PlayerToPoint(3.0, playerid,1312.5664,-1048.2203,3353.9048))
{//Saida Apartamento 1
SetPlayerPos(playerid, -1601.3732,767.6286,7.1875);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid,0);
SetPlayerFacingAngle(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pLocal] = 255;
}
else if (PlayerToPoint(3.0, playerid,1312.5664,-1048.2203,3353.9048))
{//Saida Apartamento 2
SetPlayerPos(playerid, 1710.433715,-1669.379272,20.225049);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid,0);
SetPlayerFacingAngle(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pLocal] = 255;
}