Problem mit Eingängen

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Hey
    if(newkeys ==KEY_SECONDARY_ATTACK)
    if(IsPlayerInRangeOfPoint(playerid,2.0,1315.6272,-897.8690,39.5781))//24/7 BSN Rein
    {
    SetPlayerPos(playerid,-25.884498,-185.868988,1003.546875);
    SetPlayerInterior(playerid,17);
    }
    if(IsPlayerInRangeOfPoint(playerid,2.0,-25.984498,-185.868988,1003.546875))//24/7 BSN raus
    {
    SetPlayerPos(playerid,1316.4515,-902.5604,39.3281);
    SetPlayerInterior(playerid,0);
    }
    if(IsPlayerInRangeOfPoint(playerid,2.0,1411.9952,-1700.0428,13.5395))
    {
    SetPlayerPos(playerid,-2029.798339,-106.675910,1035.171875);
    SetPlayerInterior(playerid,3);
    }
    if(IsPlayerInRangeOfPoint(playerid,2.0,1183.7942,-921.6878,43.3341))
    {
    SetPlayerPos(playerid,363.3535,-74.5933,1001.5078);
    SetPlayerInterior(playerid,10);
    }
    if(IsPlayerInRangeOfPoint(playerid,2.0,363.3535,-74.5933,1001.5078))
    {
    SetPlayerPos(playerid,1183.7942,-921.6878,43.3341);
    SetPlayerFacingAngle(playerid,143.8222);
    SetPlayerInterior(playerid,0);
    }
    else if(IsPlayerInRangeOfPoint(playerid, 2.0,1290.4551,-1160.5159,23.9610))//ammuausgang
    {
    SetPlayerInterior(playerid, 6);
    SetPlayerPos(playerid, -2240.468505,137.060440,1035.414062);
    }
    else if(IsPlayerInRangeOfPoint(playerid, 2.0,-2240.468505,137.060440,1035.414062))//ammuausgang
    {
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, 1290.4551,-1160.5159,23.9610);
    }
    if(IsPlayerInRangeOfPoint(playerid, 2.0, -2240.468505,137.060440,1035.414062))//bsneingang
    {
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, 1290.9305,-1158.5562,23.8281);
    }
    if(IsPlayerInRangeOfPoint(playerid, 2.0, 1368.2239,-1280.0181,13.5469))//ammueingang //-2240.468505,137.060440,1035.414062 6
    {
    SetPlayerInterior(playerid, 1);
    SetPlayerPos(playerid, 286.148986,-40.644397,1001.515625);
    }
    if(IsPlayerInRangeOfPoint(playerid, 2.0, 1481.2701,-1772.1060,18.7958))//Stadthalle
    {
    SetPlayerInterior(playerid, 3);
    SetPlayerPos(playerid, 384.808624,173.804992,1008.382812);
    }
    if(IsPlayerInRangeOfPoint(playerid, 2.0, 1458.6735,-1009.9205,26.8438))//BANKEINGANG
    {
    SetPlayerPos(playerid, 1415.951171,-988.971191,1639.980224);
    }
    if(IsPlayerInRangeOfPoint(playerid, 2.0, 1414.7996,-989.0184,1639.7843))//BANKEXIT
    {
    SetPlayerPos(playerid, 1458.0603,-1013.3498,26.8438);
    }
    if(IsPlayerInRangeOfPoint(playerid, 2.0, 1199.3407,-918.9647,43.1164))//bsneingang
    {
    SetPlayerInterior(playerid, 10);
    SetPlayerPos(playerid, 364.3010,-74.3578,1001.5078);
    }
    else if(IsPlayerInRangeOfPoint(playerid, 2.0,363.6902,-74.8003,1001.5078))//bsnausgang
    {
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, 1199.0491,-920.5563,43.0301);
    }
    if(IsPlayerInRangeOfPoint(playerid, 2.0, 1555.0720,-1675.4460,16.1953))//LSPDEingang
    {
    SetPlayerInterior(playerid, 6);
    SetPlayerPos(playerid, 246.2858,65.5838,1003.6406);
    }
    else if(IsPlayerInRangeOfPoint(playerid, 2.0,246.2858,65.5838,1003.6406))//LSPD Ausgang
    {
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, 1540.7855,-1672.2855,13.6300);
    }
    else if(IsPlayerInRangeOfPoint(playerid, 2.0, 246.4299,88.0091,1003.6406))//LSPDAusgangToGarage
    {
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, 1524.4830,-1678.0120,6.2188);//Garage
    }
    else if(IsPlayerInRangeOfPoint(playerid, 2.0, 1524.6028,-1677.6738,6.2188))//GarageToLSPD
    {
    SetPlayerInterior(playerid, 6);
    SetPlayerPos(playerid,246.5939,87.5349,1003.6406);
    }
    else if(IsPlayerInRangeOfPoint(playerid, 2.0, 288.8262,168.7001,1007.1719))//FBI INnen nach Außen Oben
    {
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, -1605.5992,711.1667,13.8672);
    }
    else if(IsPlayerInRangeOfPoint(playerid, 2.0, -1605.5992,711.1667,13.8672))//FBI Oben Außen Nach Innen
    {
    SetPlayerInterior(playerid, 3);
    SetPlayerPos(playerid, 288.8262,168.7001,1007.1719);
    }
    else if(IsPlayerInRangeOfPoint(playerid, 2.0, 238.6620,141.0520,1003.0234) && Spieler[playerid][Team] == 2)//FBI Innen nach Garage
    {
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, -1606.5551,672.6738,-5.2422);
    }
    else if(IsPlayerInRangeOfPoint(playerid, 2.0, -1606.5551,672.6738,-5.2422) && Spieler[playerid][Team] == 2)//Garage Nach Innen FBI
    {
    SetPlayerInterior(playerid, 3);
    SetPlayerPos(playerid, 238.6620,141.0520,1003.0234);
    }
    else if(IsPlayerInRangeOfPoint(playerid, 2.0, 1106.6479,-1354.3807,15.2347) && Spieler[playerid][Team] == 3)//Sani Pickup To Oben
    {
    SetPlayerPos(playerid, 1086.4900,-1355.8258,31.3153);
    SetPlayerInterior(playerid, 0);
    }
    else if(IsPlayerInRangeOfPoint(playerid, 2.0, 1086.4900,-1355.8258,31.3153) && Spieler[playerid][Team] == 3)//Sani Pickup To Unten
    {
    SetPlayerPos(playerid, 1106.6479,-1354.3807,15.2347);
    SetPlayerInterior(playerid, 0);
    }
    else if(IsPlayerInRangeOfPoint(playerid, 2.0, 1570.9183,-1336.7224,16.4844))//News Pickup To Oben
    {
    SetPlayerPos(playerid, 1548.7336,-1364.2269,326.2183);
    SetPlayerInterior(playerid, 0);
    }
    else if(IsPlayerInRangeOfPoint(playerid, 2.0, 1352.4569,-1758.1989,13.5078))//24/7
    {
    SetPlayerPos(playerid, -25.884498,-185.868988,1003.546875);
    SetPlayerInterior(playerid, 17);
    }
    else if(IsPlayerInRangeOfPoint(playerid, 2.0, -26.884498,-175.868988,1003.546875))//24/7 Ausgang
    {
    SetPlayerPos(playerid, 1354.4569,-1760.1989,13.5078);
    SetPlayerInterior(playerid, 0);
    }
    else if(IsPlayerInRangeOfPoint(playerid, 2.0, 1832.9597,-1842.2694,13.5781))//24/7 1
    {
    SetPlayerPos(playerid, 6.091179,-30.271898,1003.549438);
    SetPlayerInterior(playerid, 10);
    }
    else if(IsPlayerInRangeOfPoint(playerid, 2.0, 6.091179,-29.271898,1003.549438))//24/7 1 Ausgang
    {
    SetPlayerPos(playerid, 1832.3597,-1842.2694,13.5781);
    SetPlayerInterior(playerid, 0);
    }
    else if(IsPlayerInRangeOfPoint(playerid, 2.0, 2244.3093,-1664.2828,15.4766))//BINCO
    {
    SetPlayerPos(playerid, 204.332992,-166.694992,1000.523437);
    SetPlayerInterior(playerid, 14);
    }
    else if(IsPlayerInRangeOfPoint(playerid, 2.0, 204.332992,-166.694992,1000.523437))//BINCO Ausgang
    {
    SetPlayerPos(playerid, 2244.3093,-1664.2828,15.4766);
    SetPlayerInterior(playerid, 0);
    }
    else if(IsPlayerInRangeOfPoint(playerid, 2.0, 1548.7336,-1364.2269,326.2183))//News Pickup To Unten
    {
    SetPlayerPos(playerid, 1570.9183,-1336.7224,16.4844);
    SetPlayerInterior(playerid, 0);
    }
    else if(IsPlayerInRangeOfPoint(playerid, 2.0, 390.7654,173.7961,1008.3828))//STADTHALLE RAUS
    {
    SetPlayerPos(playerid, 1481.7383,-1767.1000,18.7958);
    SetPlayerInterior(playerid, 0);
    }
    for(new i = 0; i < sizeof(HouseInfo); i++)
    {
    if(IsPlayerInRangeOfPoint(playerid, 3.0, HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez]))
    {
    if(Spieler[playerid][Hauskey] == i || HouseInfo[i][hLock] == 0)
    {
    SetPlayerInterior(playerid, HouseInfo[i][hInt]);
    SetPlayerVirtualWorld(playerid, i);
    SetPlayerPos(playerid, HouseInfo[i][hExitx], HouseInfo[i][hExity], HouseInfo[i][hExitz]);
    Spieler[playerid][pInt] = HouseInfo[i][hInt];
    Spieler[playerid][pWorld] = HouseInfo[i][hWorld];
    Spieler[playerid][pLocal] = i;
    }
    else
    {
    GameTextForPlayer(playerid, "~w~Das Haus ist ~r~Verschlossen!", 3000, 1);
    return 1;
    }
    }
    else if(IsPlayerInRangeOfPoint(playerid, 3.0, HouseInfo[i][hExitx], HouseInfo[i][hExity], HouseInfo[i][hExitz]) && GetPlayerVirtualWorld(playerid) == i)
    {
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerPos(playerid, HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez]);
    Spieler[playerid][pInt] = 0;
    Spieler[playerid][pWorld] = 0;
    Spieler[playerid][pLocal] = 0;
    }
    }
    for(new b=0;b<sizeof(BizInfo);b++)
    {
    if(IsPlayerInRangeOfPoint(playerid, 3.0, BizInfo[b][bEntrancex], BizInfo[b][bEntrancey], BizInfo[b][bEntrancez]))
    {
    if(Spieler[playerid][Bizkey] == b || BizInfo[b][bLock] == 0)
    {
    SetPlayerInterior(playerid, BizInfo[b][bInt]);
    SetPlayerVirtualWorld(playerid, b);
    SetPlayerPos(playerid, BizInfo[b][bExitx], BizInfo[b][bExity], BizInfo[b][bExitz]);
    Spieler[playerid][pInt] = BizInfo[b][bInt];
    Spieler[playerid][pWorld] = BizInfo[b][bWorld];
    Spieler[playerid][pLocal] = b+99;
    GivePlayerCash(playerid, -BizInfo[b][bEintritt]);


    }
    else
    {
    GameTextForPlayer(playerid, "~w~Das BIZ ist ~r~Verschlossen!", 3000, 1);
    return 1;
    }
    }
    else if(IsPlayerInRangeOfPoint(playerid, 3.0, BizInfo[b][bExitx], BizInfo[b][bExity], BizInfo[b][bExitz]) && GetPlayerVirtualWorld(playerid) == b)
    {
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerPos(playerid, BizInfo[b][bEntrancex], BizInfo[b][bEntrancey], BizInfo[b][bEntrancez]);
    Spieler[playerid][pInt] = 0;
    Spieler[playerid][pWorld] = 0;
    Spieler[playerid][pLocal] = 0;
    }
    }
    return 1;
    }

    Habe gerade bemerkt das man immer noch mit jeder Taste die aufgelisteten Gebäude betreten kann und auch immer gleich drausen gespawned wird.
    Ich weis das man die Coords änder könnte. Möchte das aber so gerne haben wie geht das?

    MfG