Mit Enter Interiors betreten funktioniert nicht + Rote Checkpoints

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
  • Hi ich habe 2 Probleme undzwar habe ich ein paar /enter Befehle zum ENTER Key hinzugefügt, nur man kann nicht überall rein? - beim Ammunation funktioniert es zum beispiel:


    if(newkeys == KEY_SECONDARY_ATTACK) //KEY_SECONDARY_ATTACK
    {
    IsAtAutomat(playerid);

    if(IsPlayerInRangeOfPoint(playerid,4.0,1462.4657,-1011.3002,26.8438))//LS Bank /enter
    {
    SetPlayerPos(playerid,1415.951171,-988.971191,1639.980224/*246.5100,108.1086,1003.2188*/);
    SetPlayerInterior(playerid,1);
    SetPlayerFacingAngle(playerid,358.0127);
    SetPlayerVirtualWorld(playerid, 0);
    }
    else if (IsPlayerInRangeOfPoint(playerid,4.0,1415.951171,-988.971191,1639.980224/*246.5100,108.1086,1003.2188*/))//LS Bank /exit
    {
    SetPlayerPos(playerid,1462.4657,-1011.3002,26.8438);
    SetPlayerInterior(playerid,0);
    SetPlayerFacingAngle(playerid,182.0084);
    SetPlayerVirtualWorld(playerid, 0);
    }

    else if(IsPlayerInRangeOfPoint(playerid,4.0,1369.0005,-1279.7201,13.5469))//Ammunation /enter
    {
    SetPlayerPos(playerid,286.148986, -40.644397,1001.515625);
    SetPlayerInterior(playerid,1);
    SetPlayerFacingAngle(playerid,92.3491);
    SetPlayerVirtualWorld(playerid, 0);
    }
    else if (IsPlayerInRangeOfPoint(playerid,4.0,286.148986, -40.644397,1001.515625))//Ammunation /exit
    {
    SetPlayerPos(playerid,1369.0005,-1279.7201,13.5469);
    SetPlayerInterior(playerid,0);
    SetPlayerFacingAngle(playerid,357.5767);
    SetPlayerVirtualWorld(playerid, 0);
    }
    /*else if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
    {
    if(IsPlayerInRangeOfPoint(playerid,3.0,-347.8751,-1046.2157,59.8125)) //Hitman /enter
    {
    SetPlayerPos(playerid,1062.1240,2077.9614,10.8203);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    }
    }
    else if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) //Hitman /exit
    {
    if(IsPlayerInRangeOfPoint(playerid,3.0,1062.1240,2077.9614,10.8203))
    {
    SetPlayerPos(playerid,-347.8751,-1046.2157,59.8125);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    }
    }*/
    else if (IsPlayerInRangeOfPoint(playerid,4.0,238.7020,139.3295,1003.0234))//PD Garage /enter //ENTEREXIT
    {
    SetPlayerPos(playerid,1524.9292,-1677.8527,5.8906);
    SetPlayerInterior(playerid,0);
    SetPlayerFacingAngle(playerid,2.5225);
    SetPlayerVirtualWorld(playerid, 0);
    }
    else if (IsPlayerInRangeOfPoint(playerid,4.0,1524.9292,-1677.8527,5.8906))//PD Garagezurück /exit
    {
    SetPlayerPos(playerid,238.7020,139.3295,1003.0234);
    SetPlayerInterior(playerid,3);
    SetPlayerFacingAngle(playerid,1.8733);
    SetPlayerVirtualWorld(playerid, 0);
    }
    else if(IsPlayerInRangeOfPoint(playerid,4.0,1480.9919,-1771.2096,18.7958))//Stadthalle /enter
    {
    SetPlayerPos(playerid,389.9180,173.6584,1008.3828);
    SetPlayerInterior(playerid,3);
    SetPlayerFacingAngle(playerid,92.3491);
    SetPlayerVirtualWorld(playerid, 0);
    }
    else if (IsPlayerInRangeOfPoint(playerid,4.0,389.9180,173.6584,1008.3828))//Stadthalle /exit
    {
    SetPlayerPos(playerid,1480.9919,-1771.2096,18.7958);
    SetPlayerInterior(playerid,0);
    SetPlayerFacingAngle(playerid,357.5767);
    SetPlayerVirtualWorld(playerid, 0);
    }

    else if(IsPlayerInRangeOfPoint(playerid,4.0,1554.9604,-1675.5541,16.1953))//LSPD /enter
    {
    SetPlayerPos(playerid,288.7177,167.1466,1007.1719);
    SetPlayerInterior(playerid,3);
    SetPlayerFacingAngle(playerid,358.7832);
    SetPlayerVirtualWorld(playerid, 0);
    }
    else if (IsPlayerInRangeOfPoint(playerid,4.0,288.7177,167.1466,1007.1719))//LSPD /exit
    {
    SetPlayerPos(playerid,1554.9604,-1675.5541,16.1953);
    SetPlayerInterior(playerid,0);
    SetPlayerFacingAngle(playerid,98.9059);
    SetPlayerVirtualWorld(playerid, 0);
    }

    else if (IsPlayerInRangeOfPoint(playerid,4.0,1042.7207,1010.6575,11.0000))//FBI /enter
    {
    if(IsACop(playerid) && PlayerInfo[playerid][pLeader] >= 1)
    {
    SetPlayerPos(playerid,246.8075,63.2147,1003.6406);
    SetPlayerInterior(playerid,6);
    SetPlayerFacingAngle(playerid,92.5225);
    SetPlayerVirtualWorld(playerid, 0);
    }
    }
    else if (IsPlayerInRangeOfPoint(playerid,4.0,246.8075,63.2147,1003.6406))//FBI /exit
    {
    if(IsACop(playerid) && PlayerInfo[playerid][pLeader] >= 1)
    {
    SetPlayerPos(playerid,1042.7207,1010.6575,11.0000);
    SetPlayerInterior(playerid,0);
    SetPlayerFacingAngle(playerid,185.8733);
    SetPlayerVirtualWorld(playerid, 0);
    }
    }

    else if (IsPlayerInRangeOfPoint(playerid,3.0,1209.8247,-1749.9943,13.5937)) // KFZSTELLE /enter
    {
    SetPlayerPos(playerid,2324.419921,-1145.568359,1050.710083);
    SetPlayerInterior(playerid,12);
    SetPlayerVirtualWorld(playerid, 0);
    //SendClientMessage(playerid,COLOR_RED, "Du hast die KFZ Zulassungstelle betreten");
    }
    else if (IsPlayerInRangeOfPoint(playerid,3.0,2324.419921,-1145.568359,1050.710083)) //KFZSTELLE /exit
    {
    SetPlayerPos(playerid,1209.8247,-1749.9943,13.5937);
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    //SendClientMessage(playerid,COLOR_RED, "Du hast die KFZ Zulassungstelle verlassen");
    }
    else if (IsPlayerInRangeOfPoint(playerid,3.0,1835.9020,-1682.5295,13.3704))
    {
    SetPlayerPos(playerid,493.390991,-22.722799,1000.679687);
    SetPlayerInterior(playerid, 17);
    SetPlayerVirtualWorld(playerid, 0);
    //SendClientMessage(playerid,COLOR_RED, "Du hast Alahmbra betreten");
    }
    else if (IsPlayerInRangeOfPoint(playerid,3.0,493.390991,-22.722799,1000.679687))
    {
    SetPlayerPos(playerid,1835.9020,-1682.5295,13.3704);
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    //SendClientMessage(playerid,COLOR_RED, "Du hast Alahmbra verlassen");
    }
    else if(IsPlayerInRangeOfPoint(playerid,4.0,811.4277,-1616.1138,13.5469))//BSSENTER
    {
    SetPlayerPos(playerid,457.304748,-88.428497,999.554687);
    SetPlayerInterior(playerid, 4);
    SetPlayerVirtualWorld(playerid, 0);
    //SendClientMessage(playerid,COLOR_GREEN,"Du hast den Burger Shot South betreten!");
    }
    else if(IsPlayerInRangeOfPoint(playerid,4.0,457.304748,-88.428497,999.554687))//BSSEXIT
    {
    SetPlayerPos(playerid,811.4277,-1616.1138,13.5469);
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    //SendClientMessage(playerid,COLOR_GREEN, "Du hast den Burger Shot South verlassen!");
    }
    }


    Dann habe ich einmal das Problem das man in Roten Checkpoints warten muss bis man ein Interior betreten kann, ich würd das gern auch direkt mit der ENTER Taste einbinden..


    new MultipleEnter[MAX_PLAYERS];
    new CheckPointing[MAX_PLAYERS];
    new CheckPointShown[MAX_PLAYERS];
    new Float:CPs[][CPInfo] = {
    {2397.8496,-1898.0288,13.5469,0.0,0,"Los Santos",365.3238,-11.3925,1001.8516,350.3676,9,CLUCKIN_BELL_TEXT,5},
    {2244.4800,-1664.0601,15.4766,0.0,0,"Los Santos",207.7380,-109.0200,1005.1328,0.0,15,"Binco",0},
    //{2018.7988,1017.7705,996.8750,0.0,10,"San Fierro",-2721.0762,-320.6828,7.8438,0.0,0,"Casino",0},
    {919.0751,-1252.1527,16.2109,0.0,0,"Los Santos",322.197998,302.497985,999.148437,0.0,5,"O-Amt",0},
    {2166.2642,-1671.6808,15.0740,0.0,0,"Los Santos",318.6689,1114.9237,1083.8828,0.0,5,"Crackhoehle",0},
    {2105.0862,-1806.3392,13.5547,0.0,0,"Los Santos",372.5499,-132.7637,1001.4922,12.1297,5,PIZZA_TEXT,5},
    //{2420.1899,-1509.8551,24.0000,0.0,0,"Los Santos",365.3238,-11.3925,1001.8516,350.3676,9,CLUCKIN_BELL_TEXT,5},
    //{1439.1178,-1665.7932,14.4905,0.0,0,"Los Santos",-25.9967,-187.6925,1003.5469,0.0,17,"24/7",0},//24/7 beim LSPD
    //{1480.9576,-1770.6440,18.7958,5.7813,0,"Los Santos",389.0762,173.7839,1008.3828,90.1640,3,"Stadthalle",1},
    //{1554.7671,-1674.8540,16.1953,84.0319,0,"Los Santos",239.2247,138.9361,1003.0234,359.2649,3,"3",0},
    {1456.9403,-1138.0343,23.9763,0.0,0,"Los Santos",161.4873,-96.6564,1001.8047,0.0,18,"ZIP",0},
    {1352.5164,-1758.8462,13.5078,0.0,0,"Los Santos",-26.5209,-57.5670,1003.5469,0.0,6,"24/7",0},
    {479.5239,-1538.5399,19.3803,0.0,0,"Los Santos",207.0899,-139.3603,1003.5078,0.0,3,"Pro Labs",0},
    //{811.6321,-1616.2617,13.5469,0.0,0,"Los Santos",363.3161,-74.7201,1001.5078,294.5566,10,BURGER_SHOT_TEXT,5},
    //{928.3706,-1352.8804,13.3438,0.0,0,"Los Santos",365.3238,-11.3925,1001.8516,350.3676,9,CLUCKIN_BELL_TEXT,5},
    {999.9166,-919.8427,42.3281,0.0,0,"Los Santos",-27.1335,-30.9769,1003.5573,0.0,4,"24/7",0},
    {1199.4064,-919.3890,43.1128,185.9694,0,"Los Santos",363.3161,-74.7201,1001.5078,294.5566,10,BURGER_SHOT_TEXT,5},
    {1315.3405,-898.1992,39.5781,0.0,0,"Los Santos",-30.7473,-91.1202,1003.5469,0.0,18,"24/7",0},
    {203.2688,-202.9428,1.5781,0.0,0,"Los Santos",372.5499,-132.7637,1001.4922,12.1297,5,PIZZA_TEXT,5},
    {1366.9592,248.6927,19.5669,0.0,0,"Los Santos",372.5499,-132.7637,1001.4922,12.1297,5,PIZZA_TEXT,5},
    {2332.8704,74.9582,26.6210,0.0,0,"Los Santos",372.5499,-132.7637,1001.4922,12.1297,5,PIZZA_TEXT,5},
    {2228.9443,-1722.0851,13.5625,0.0,0,"Los Santos",772.3428,-4.1084,1000.7292,0.0,5,"Fitness Studio",0},
    //{2020.4797,1007.0064,10.8203,0.0,0,"Las Venturas",2017.7937,1017.2736,996.8750,0.0,10,"Four Dragons Casino",0},
    //{2195.9150,1676.6544,12.3672,0.0,0,"Las Venturas",2233.8779,1713.0963,1012.0313,0.0,1,"Caligolas Casino",0},
    {2237.8357,1285.1769,10.8203,0.0,0,"Las Venturas",2217.0081,-1076.1227,1050.4844,0.0,1,"Pyramide",0},
    {1966.1448,1622.2742,12.8680,0.0,0,"Las Venturas",2237.6992,-1080.0991,1049.0234,0.0,2,"Piratenschiff",0},
    {2086.7605,2074.1689,11.0425,0.0,0,"Las Venturas",-100.2317,-24.1395,1000.7188,0.0,3,"Sex Shop",0},
    //{2103.3669,2228.6326,11.0234,0.0,0,"Las Venturas",365.3238,-11.3925,1001.8516,350.3676,9,CLUCKIN_BELL_TEXT,5},
    {2083.3455,2223.9021,11.0234,0.0,0,"Las Venturas",372.5499,-132.7637,1001.4922,12.1297,5,PIZZA_TEXT,5},
    {2247.8586,2397.4263,10.8203,0.0,0,"Las Venturas",-26.6043,-56.9045,1003.5469,0.0,6,"24/7",0},
    {2471.7610,2034.2963,11.0625,0.0,0,"Las Venturas",363.3161,-74.7201,1001.5078,294.5566,10,BURGER_SHOT_TEXT,5},
    {2366.0754,2071.2556,10.8203,0.0,0,"Las Venturas",363.3161,-74.7201,1001.5078,294.5566,10,BURGER_SHOT_TEXT,5},
    {2452.2141,2064.1470,10.8203,0.0,0,"Las Venturas",-26.5812,-57.0460,1003.5469,0.0,6,"24/7",0},
    {2373.9309,2167.3337,10.8248,0.0,0,"Las Venturas",2237.7859,-1079.9840,1049.0234,0.0,2,"Casino",0},
    {2351.8687,2532.3311,10.8203,0.0,0,"Las Venturas",372.5499,-132.7637,1001.4922,12.1297,5,PIZZA_TEXT,5},
    {2170.4055,2795.6697,10.8203,0.0,0,"Las Venturas",363.3161,-74.7201,1001.5078,294.5566,10,BURGER_SHOT_TEXT,5},
    {1872.5800,2071.7961,11.0625,0.0,0,"Las Venturas",363.3161,-74.7201,1001.5078,294.5566,10,BURGER_SHOT_TEXT,5},
    //{1462.2954,-1011.2205,26.8438,252.4664,0,"Los Santos",246.5083,107.8778,1003.2188,2.5901,10,"Los Santos Bank",1},//LS Bank
    //{2195.5840,1677.3838,12.3672,87.7661,0,"Las Venturas",2233.8860,1712.6942,1011.9067,179.4858,1,"Caligulas Casino",1},
    {2196.2441,1676.9348,12.3672,282.9798,0,"Las Venturas",2233.5127,1714.1404,1012.3544,191.3406,1,"Caligulas Casino",1},
    {2187.7959,1696.3616,20.3906,94.6388,0,"Las Venturas",2156.7397,1598.2126,999.9716,102.9798,1,"Caligulas Casino",1},
    {423.8142,2536.5027,16.1484,0.0,0,"Todesflughafen",420.4850,2535.5901,10.0000,0.0,10,"Todesflughafen",0},
    {693.5278,1966.8389,5.5391,0.0,0,"Wueste",1212.0168,-26.5722,1000.9531,0.0,3,"Bordell",0},
    {-1213.3425,1830.5543,41.9297,0.0,0,"Wueste",365.3238,-11.3925,1001.8516,350.3676,9,CLUCKIN_BELL_TEXT,5},
    //{172.7686,1176.8818,14.7578,0.0,0,"San Fierro",365.3238,-11.3925,1001.8516,350.3676,9,CLUCKIN_BELL_TEXT,5},
    {-2356.3796,1008.1703,50.8984,0.0,0,"San Fierro",363.3161,-74.7201,1001.5078,294.5566,10,BURGER_SHOT_TEXT,5},
    {-1912.0579,828.1326,35.2021,0.0,0,"San Fierro",363.3161,-74.7201,1001.5078,294.5566,10,BURGER_SHOT_TEXT,5},
    {-2336.4768,-166.8129,35.5547,0.0,0,"San Fierro",363.3161,-74.7201,1001.5078,294.5566,10,BURGER_SHOT_TEXT,5},
    //{-1815.9301,617.8619,35.1719,0.0,0,"San Fierro",365.3238,-11.3925,1001.8516,350.3676,9,CLUCKIN_BELL_TEXT,5},
    {-1721.3677,1359.0906,7.1853,0.0,0,"San Fierro",372.5499,-132.7637,1001.4922,12.1297,5,PIZZA_TEXT,5},
    {-1721.3677,1359.0906,7.1853,0.0,0,"San Fierro",372.5959,-132.1461,1001.4922,0.0,5,"Otto's Autohaus",0},
    {-1808.2806,945.4167,24.8906,51.5222,0,"San Fierro",372.4701,-132.8026,1001.4922,179.2293,5," ",0},
    {-1911.6249,828.5123,35.1719,137.0100,0,"San Fierro",363.2781,-74.7534,1001.5078,141.5494,10," ",0},
    {-2356.5381,1008.1564,50.8984,270.3487,0,"San Fierro",363.3535,-74.5933,1001.5078,110.7977,10," ",0},
    //{-1817.5028,618.2291,35.1719,358.6120,0,"San Fierro",364.9646,-10.9578,1001.8516,177.9759,9," ",0},
    {1572.0428,-1336.5353,16.4844,304.8029,0,"Los Santos",1548.5587,-1364.8901,326.2109,85.4907,0,"Star Tower",0},
    {1104.1304,-1449.0028,15.7969,180.2625,0,"Los Santos",-2240.468505,137.060440,1035.414062,0.2625,6,"Handyladen",0},
    {1699.9642,-1170.1368,23.8281,358.9950,0,"Los Santos",833.7824,7.3484,1004.1797,0.2625,3,"Uhrenladen",0}


    };


    bild: http://www.pic-upload.de/view-25360523/Unbenannt.png.html

    Mit freundlichen Grüßen,
    rndy

  • Er scriptet was ganz anderes mit den Checkpoints als hier also weiß ich noch nichtmal wo die Checkpoints gemacht werden in meinem Script also bringt es mir irgendwie nix..


    help!!

    Mit freundlichen Grüßen,
    rndy

    2 Mal editiert, zuletzt von toniyo () aus folgendem Grund: Push