23.08.2015, 17:23
Код:
new EntrouAP[MAX_PLAYERS]; No topo. //Entradas else if(PlayerToPoint(3, playerid,-1601.3732,767.6286,7.1875)) { GameTextForPlayer(playerid, "~w~Apartamento", 5000, 1); SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid, 0); SetPlayerPos(playerid,1312.5664,-1048.2203,3353.9048); PlayerInfo[playerid][pInt] = 0; EntrouAP[playerid] = 1; } else if(PlayerToPoint(3, playerid,-1697.5094,883.7151,24.8982)) { GameTextForPlayer(playerid, "~w~Apartamento", 5000, 1); SetPlayerVirtualWorld(playerid, 1); SetPlayerInterior(playerid, 0); SetPlayerPos(playerid,1312.5664,-1048.2203,3353.9048); PlayerInfo[playerid][pInt] = 0; EntrouAP[playerid] = 2; } //Saнdas else if (PlayerToPoint(3.0, playerid,1312.5664,-1048.2203,3353.9048)) { switch(EntrouAP[playerid]) { case 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; } case 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; } } }