if(strcmp(cmd, "/exit", true) == 0) { if(IsPlayerConnected(playerid)) { for(new i = 0; i < sizeof(HouseInfo); i++) { if (IsPlayerInRangeOfPoint(playerid,3.0,HouseInfo[i][hExitx], HouseInfo[i][hExity], HouseInfo[i][hExitz]) && PlayerInfo[playerid][pLocal] == i) { SetPlayerInterior(playerid,0); SetPlayerPos(playerid,HouseInfo[i][hEntrancex],HouseInfo[i][hEntrancey],HouseInfo[i][hEntrancez]); PlayerInfo[playerid][pInt] = 0; PlayerInfo[playerid][pLocal] = 255; SetPlayerVirtualWorld(playerid,0); if(HouseInfo[i][hHel] == 1) { new Float:tempheal; GetPlayerHealth(playerid,tempheal); if(tempheal < 100.0) { SetPlayerHealth(playerid,100.0); } } } } for(new i = 0; i < sizeof(BizzInfo); i++) { if (IsPlayerInRangeOfPoint(playerid,3.0,BizzInfo[i][bExitX], BizzInfo[i][bExitY], BizzInfo[i][bExitZ])) { SetPlayerInterior(playerid,0); PlayerInfo[playerid][pInt] = 0; SetPlayerPos(playerid,BizzInfo[i][bEntranceX],BizzInfo[i][bEntranceY],BizzInfo[i][bEntranceZ]); PlayerInfo[playerid][pLocal] = 255; } } if (IsPlayerInRangeOfPoint(playerid,6.0,-1404.5299,-259.0602,1043.6563)) { SetPlayerInterior(playerid,0); SetPlayerPos(playerid,2695.6235,-1704.6960,11.8438); } if (IsPlayerInRangeOfPoint(playerid,6.0,285.8132,-85.7080,1001.5156)) { SetPlayerInterior(playerid,0); SetPlayerPos(playerid,1368.3273,-1279.2957,13.5469); } else if (IsPlayerInRangeOfPoint(playerid,8.0,-1443.0554,-581.1879,1055.0472)) { SetPlayerInterior(playerid,0); SetPlayerPos(playerid,-2111.5686,-443.9720,38.7344); } else if (IsPlayerInRangeOfPoint(playerid,5.0,198.1085,1780.7993,7.5693)) { SetPlayerInterior(playerid,0); SetPlayerPos(playerid,254.8123,1802.1803,7.4448); } else if (IsPlayerInRangeOfPoint(playerid,8.0,-1464.7732,1557.5533,1052.5313)) { SetPlayerInterior(playerid,0); SetPlayerPos(playerid,-2080.3079,-406.0309,38.7344); } else if(IsPlayerInRangeOfPoint(playerid,5.0, 234.199996,1064.900024,1084.199951)) { if(GetPlayerVirtualWorld(playerid) == 5) { SetPlayerPos(playerid, 1274.1163,-1641.3193,27.3750); SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); } } else if(NoFuel[playerid] == 1) { UnFreezePlayer(playerid); RemovePlayerFromVehicle(playerid); NoFuel[playerid] = 0; } else if(IsPlayerInRangeOfPoint(playerid,3.0,2216.3401,-1150.5100,1025.7969)) { GameTextForPlayer(playerid, "~w~Auf wiedersehen!", 5000, 1); SetPlayerInterior(playerid, 0); SetPlayerPos(playerid,1690.3545,-1344.1970,17.4297); } else if(IsPlayerInRangeOfPoint(playerid,3.0,833.269775,10.588416,1004.179687)) { GameTextForPlayer(playerid, "~w~Auf wiedersehen!", 5000, 1); SetPlayerInterior(playerid, 0); SetPlayerPos(playerid,1847.3645,-1871.6908,13.5781); } else if (IsPlayerInRangeOfPoint(playerid,5.0,502.1796,-67.9925,998.7578)) //Biker { if(PlayerInfo[playerid][pLeader] == 15 || PlayerInfo[playerid][pMember] == 15 || IsACop(playerid)) { SetPlayerInterior(playerid,0); SetPlayerPos(playerid,-2034.1775,148.5470,28.8359); SetPlayerFacingAngle(playerid,276.5632); } } else if (IsPlayerInRangeOfPoint(playerid,5.0,-2637.1277,1403.7910,906.4609)) //Triaden { if(PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 12 || IsACop(playerid)) { SetPlayerInterior(playerid,0); SetPlayerPos(playerid,-2119.3745,-178.4758,35.3203); SetPlayerFacingAngle(playerid,0.0974); } } else if (IsPlayerInRangeOfPoint(playerid, 3.0,1825.5352,-1305.2288,120.3046)) //Hitman ausgang { if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8 || IsACop(playerid)) { SetPlayerInterior(playerid,0); SetPlayerPos(playerid,1788.1333,-1298.1036,13.3750); PlayerInfo[playerid][pInt] = 0; } else { SendClientMessage(playerid,COLOR_RED, "Du bist kein Mitglied der Hitmen!"); } } else if (IsPlayerInRangeOfPoint(playerid,3.0, 2144.1050,1608.3209,993.6882))//Bank { SetPlayerPos(playerid,246.7213,125.8243,1003.2188); SetPlayerFacingAngle(playerid,173.7840); SetPlayerInterior(playerid,10); } else if(IsPlayerInRangeOfPoint(playerid, 6.0, 1260.6713,-785.4104,1091.9063)) { if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6 || IsACop(playerid)) { SetPlayerPos(playerid, -2721.9905,-319.7708,7.8438); SetPlayerFacingAngle(playerid,42.8977); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); } else { SendClientMessage(playerid, COLOR_GRAD1, "Du bist kein Yakuza Mitglied!"); } } } return 1; }
Das hinzugefügte Haus:
1257.671752,-785.509216,92.030197,2049.6743,2764.2881,10.8203,0,0,0,0,0,0,The State,5 Raum Haus,250000,0,0,6,1,0,1,1,0,0,0,0,0,0,3
Eines der Häuser die bereits exextieren: