Hilfe Tore zu fuß und im auto aufmachen

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
  • Hast du schon selber was gescriptet?


    ja habe ich dies hier




    if(newkeys & KEY_SUBMISSION)
    {
    if(IsPlayerInAnyVehicle(playerid || ))
    {
    if(IsPlayerConnected(playerid))
    {
    new Float:X, Float:Y, Float:Z;
    GetPlayerPos(playerid, X, Y, Z);
    if(IsPlayerInRangeOfPoint(playerid,5,477.58984375, -20.9296875, 1000.5399780273))
    {// ======================= [ ALHAMBRA TOR ] =====================================
    if(SpielerInfo[playerid][pDonateRank] >= 1 || SpielerInfo[playerid][pAdmin] >= 1)
    {
    if(viptorpos == 0)
    {//öffnen
    MoveObject(viptor,476.08984375, -20.9296875, 1000.5399780273,1);
    viptorpos = 1;
    }
    else
    {//schließen
    MoveObject(viptor,477.58984375, -20.9296875, 1000.5399780273,1);
    viptorpos = 0;
    }
    } else { return SendClientMessage(playerid,COLOR_RED,"Du bist kein Premiumuser!"); }
    }
    if(X >= -1263.064697 && X <= -1254.821533 && Y >= 477.412872 && Y <= 491.825439 && Z >= 5 && Z <= 20)
    {
    if(IsAnArmy(playerid) || SpielerInfo[playerid][pAdmin] >= 1 && AdminDuty[playerid] == 1 || GetPVarInt(playerid, "SEK-Duty") == 1)
    {
    if(FsPos == 1)
    {
    MoveObject(aFs, -1259.897461, 484.515411, 18.14, 1.5);
    MoveObject(bFs, -1257.992920, 484.439911, 18.14, 1.5);
    FsPos = 2;
    }
    else if(FsPos == 2)
    {
    MoveObject(aFs, -1259.897461, 484.515411, 6.845, 1.5);
    MoveObject(bFs, -1257.992920, 484.439911, 6.845, 1.5);
    FsPos = 1;
    }
    }
    }
    if(X >= -619.997192 && X <= -615.677979 && Y >= -522.671448 && Y <= -514.954224 && Z >= 23 && Z <= 40)
    {
    if(SpielerInfo[playerid][pAdmin] > 3)
    {
    if(AdminFSPos == 0)
    {
    MoveObject(AdminFS, -617.775574, -518.916138, 36.363495, 1.5);
    AdminFSPos = 1;
    }
    else if(AdminFSPos == 1)
    {
    MoveObject(AdminFS, -617.775574, -518.916138, 24.588421, 1.5);
    AdminFSPos = 0;
    }
    }
    }
    if(X >= 1582.504272 && X <= 1594.216431 && Y >= -1644.001099 && Y <= -1633.375366 && Z >= 11 && Z <= 15)
    {
    if(IsACop(playerid) || SpielerInfo[playerid][pAdmin] >= 1 && AdminDuty[playerid] == 1 || GetPVarInt(playerid, "SEK-Duty") == 1)
    {
    if(CopGarageTorPos == 0)
    {
    MoveObject(CopGarageTor, 1596.398315, -1638.025269, 14.111814, 3);
    CopGarageTorPos = 1;
    }
    else if(CopGarageTorPos == 1)
    {
    MoveObject(CopGarageTor, 1589.096069, -1638.025269, 14.111814, 3);
    CopGarageTorPos = 0;
    }
    }
    }
    if(IsPlayerInRangeOfPoint(playerid, 15,1283.4356689453, -1006.16015625, 31.463489532471))
    {
    if(SpielerInfo[playerid][sMember] == 7 || SpielerInfo[playerid][pAdmin] >= 1 && AdminDuty[playerid] == 1 || GetPVarInt(playerid, "SEK-Duty") == 1)
    {
    if(PresiTorPos == 0)
    {
    MoveObject(PresiTor, 1278.4356689453, -1006.16015625, 31.463489532471, 2);
    MoveObject(PresiTor2, 1297.2729492188, -1006.1271972656, 31.458988189697, 2);
    PresiTorPos = 1;
    }
    else if(PresiTorPos == 1)
    {
    MoveObject(PresiTor, 1283.4356689453, -1006.16015625, 31.463489532471, 2);
    MoveObject(PresiTor2, 1292.2729492188, -1006.1271972656, 31.458988189697, 2);
    PresiTorPos = 0;
    }
    }
    }
    if(IsPlayerInRangeOfPoint(playerid, 7, -1374.5, 1492.0999755859, 11.39999961853))
    {
    if(SpielerInfo[playerid][sMember] == 8 || SpielerInfo[playerid][pAdmin] >= 1 && AdminDuty[playerid] == 1 || GetPVarInt(playerid, "SEK-Duty") == 1)
    {
    if(HitmanTorPos == 0)
    {
    MoveObject(HitmanTor, -1374.5, 1492.0999755859, 6.39999961853, 2);
    HitmanTorPos = 1;
    }
    else if(HitmanTorPos == 1)
    {
    MoveObject(HitmanTor, -1374.5, 1492.0999755859, 11.39999961853, 2);
    HitmanTorPos = 0;
    }
    }
    }
    if(IsPlayerInRangeOfPoint(playerid, 20,-2047.0280,-103.3147,35.1870))
    {//Fahrschule
    if(SpielerInfo[playerid][sMember] == 11 || SpielerInfo[playerid][pAdmin] >= 1 && AdminDuty[playerid] == 1 || GetPVarInt(playerid, "SEK-Duty") == 1)
    {
    if(FahrschulTorPos == 0)
    {
    SetObjectRot(FahrschulTor,0,-89,0);
    SetObjectRot(FahrschulTor1,0,89,0);
    FahrschulTorPos = 1;
    }
    else if(FahrschulTorPos == 1)
    {
    SetObjectRot(FahrschulTor,0,0,0);
    SetObjectRot(FahrschulTor1,0,0,0);
    FahrschulTorPos = 0;
    }
    }
    }
    if(IsPlayerInRangeOfPoint(playerid,15,136.3518,1941.7247,26.3880)) // Wo der stehen muss!
    {
    if(SpielerInfo[playerid][sMember] == 3 || SpielerInfo[playerid][pAdmin] >= 1 && AdminDuty[playerid] == 1 || GetPVarInt(playerid, "SEK-Duty") == 1)
    {
    if(ArmyPos == 0)//hoch
    {
    MoveObject(Army1, 145.60000610352, 1941.8000488281, 20.5 , 2.5);
    MoveObject(Army2, 124.89999389648, 1941.8000488281, 20.5, 2.5);
    ArmyPos = 1;
    }
    else if(ArmyPos == 1)//runter
    {
    MoveObject(Army1, 139.60000610352, 1941.8000488281, 20.5, 2.5);
    MoveObject(Army2, 130.89999389648, 1941.8000488281, 20.5, 2.5);
    ArmyPos = 0;
    }
    }
    }
    if(IsPlayerInRangeOfPoint(playerid,15,2502.6000976563, 2350.8999023438, 12.60000038147))
    {
    if(SpielerInfo[playerid][sMember] == 2 || SpielerInfo[playerid][pAdmin] >= 1 && AdminDuty[playerid] == 1 || GetPVarInt(playerid, "SEK-Duty") == 1)
    {
    if(FBIAussenTorPos == 0)
    {
    MoveObject(FBIAussenTor, 2502.6000976563, 2350.8999023438, 12.60000038147, 3);
    MoveObject(FBIAussenTor2, 2472.1000976563, 2350.8999023438, 12.60000038147, 3);
    FBIAussenTorPos = 1;
    }
    else if(FBIAussenTorPos == 1)
    {
    MoveObject(FBIAussenTor, 2492.8999023438, 2350.8999023438, 12.60000038147, 3);
    MoveObject(FBIAussenTor2, 2481.3999023438, 2350.8999023438, 12.60000038147, 3);
    FBIAussenTorPos = 0;
    }
    }
    }
    if(X >= -1640.068481 && X <= -1618.791992 && Y >= 674.457397 && Y <= 702.840942 && Z >= 1 && Z <= 15)
    {
    if(SpielerInfo[playerid][sMember] == 2 || SpielerInfo[playerid][pAdmin] >= 1 && AdminDuty[playerid] == 1 || GetPVarInt(playerid, "SEK-Duty") == 1)
    {
    if(SFPDTorPos == 0)
    {
    MoveObject(SFPDTor, -1649.698730, 685.387146, 4.484386, 4);
    SFPDTorPos = 1;
    }
    else if(SFPDTorPos == 1)
    {
    MoveObject(SFPDTor, -1625.521362, 685.385986, 4.459375, 4);
    SFPDTorPos = 0;
    }
    }
    }
    if(IsPlayerInRangeOfPoint(playerid,5,239.60035705566, 119.11177062988, 1002.21875))
    {
    if(SpielerInfo[playerid][sMember] == 2 || SpielerInfo[playerid][pAdmin] >= 1 && AdminDuty[playerid] == 1 || GetPVarInt(playerid, "SEK-Duty") == 1)
    {
    if(FBITuerPos == 0)
    {
    MoveObject(FBITuer1, 239.60035705566, 123.11177062988, 1002.21875, 1);
    MoveObject(FBITuer2, 239.60035705566, 113.10544586182, 1002.21875, 1);
    FBITuerPos = 1;
    }
    else if(FBITuerPos == 1)
    {


    MoveObject(FBITuer1, 239.60035705566, 119.11177062988, 1002.21875, 1);
    MoveObject(FBITuer2, 239.60035705566, 116.10544586182, 1002.21875, 1);
    FBITuerPos = 0;
    }
    }
    }
    if(X >= 244.4354 && X <= 248.4478 && Y >= 69.3900 && Y <= 76.0023 && Z >= 1000 && Z <= 1005)
    {
    if(IsACop(playerid) || SpielerInfo[playerid][pAdmin] >= 1 && AdminDuty[playerid] == 1 || GetPVarInt(playerid, "SEK-Duty") == 1)
    {
    if(HackedGate == 0) {
    if(PDTorInnenPos == 0)
    {
    MoveObject(PDTorInnen, 247.133926,72.675056,1002.572082, 1);
    MoveObject(PDTorInnen2, 244.152389,72.609268,1002.594848, 1);
    PDTorInnenPos = 1;
    }
    else if(PDTorInnenPos == 1)
    {
    MoveObject(PDTorInnen, 246.411590,72.642967,1002.632629, 2);
    MoveObject(PDTorInnen2, 244.954116,72.621772,1002.653747, 2);
    PDTorInnenPos = 0;
    }
    } else { return SendClientMessage(playerid,COLOR_RED,"Das Tor ist ausser Funktion gesetzt!"); }
    }
    }
    if(IsPlayerInRangeOfPoint(playerid, 12, 1545.0999755859, -1627.5, 13.300000190735))
    {
    if(IsACop(playerid) || SpielerInfo[playerid][pAdmin] >= 1 && AdminDuty[playerid] == 1 || GetPVarInt(playerid, "SEK-Duty") == 1)
    {
    if(LSPDTorAussenPos == 1)
    {
    MoveObject(LSPDTorAussen,1541.5999755859, -1627.6999511719, 15.199999809265,2);
    LSPDTorAussenPos = 0;
    }
    else if(LSPDTorAussenPos == 0)
    {
    MoveObject(LSPDTorAussen, 1541.5999755859, -1627.6999511719, 8,2);
    LSPDTorAussenPos = 1;
    }
    }
    }
    if(IsPlayerInRangeOfPoint(playerid, 20, 1302.9215087891, -966.18603515625, 35.539108276367))
    {
    if(SpielerInfo[playerid][sMember] == 7 || SpielerInfo[playerid][pAdmin] >= 1 && AdminDuty[playerid] == 1 || GetPVarInt(playerid, "SEK-Duty") == 1)
    {
    if(StadthalleTor3Pos == 0)
    {
    MoveObject(StadthalleTor2, 1302.9215087891, -966.18603515625, 27.539108276367, 2);
    StadthalleTor3Pos = 1;
    }
    else if(StadthalleTor3Pos == 1)
    {
    MoveObject(StadthalleTor3, 1302.9215087891, -966.18603515625, 35.539108276367, 2);
    StadthalleTor3Pos = 0;
    }
    }
    }
    if(X >= 364.65319824219 && X <= 372.65319824219 && Y >= 156.80809020996 && Y <= 164.80809020996 && Z >= 1020.7924804688 && Z <= 1028.7924804688)
    {
    if(SpielerInfo[playerid][sMember] == 7 || SpielerInfo[playerid][pAdmin] >= 1 && AdminDuty[playerid] == 1 || GetPVarInt(playerid, "SEK-Duty") == 1)
    {
    if(StadthalleTorPos == 0)
    {
    MoveObject(StadthalleTor, 368.65319824219,160.80809020996,1024.7924804688, 1);
    MoveObject(StadthalleTor2, 368.65234375,163.8056640625,1024.7924804688, 1);
    StadthalleTorPos = 1;
    }
    else if(StadthalleTorPos == 1)
    {
    MoveObject(StadthalleTor, 368.64862060547,159.55809020996,1024.7924804688, 2);
    MoveObject(StadthalleTor2, 368.71063232422,165.05429077148,1024.7924804688, 2);
    StadthalleTorPos = 0;
    }
    }
    }
    if(IsPlayerInRangeOfPoint(playerid, 15,2233.48, -2214.75, 13.35))
    {
    if(SpielerInfo[playerid][sMember] == 18 || SpielerInfo[playerid][pAdmin] >= 1 && AdminDuty[playerid] == 1 || GetPVarInt(playerid, "SEK-Duty") == 1)
    {
    if(OATor2Pos == 0)
    {
    MoveObject(OATor2, 2225.47, -2206.65, 13.35, 3);
    OATor2Pos = 1;
    }
    else if(OATor2Pos == 1)
    {
    MoveObject(OATor2, 2233.48, -2214.75, 13.35, 3);
    OATor2Pos = 0;
    }
    }
    }
    if(IsPlayerInRangeOfPoint(playerid, 15, -75.39, -353.16, 3.00))
    { //La Cosa Nostra Tor
    if(SpielerInfo[playerid][sMember] == 5 || SpielerInfo[playerid][pAdmin] >= 1 && AdminDuty[playerid] == 1 || GetPVarInt(playerid, "SEK-Duty") == 1)
    {
    if(LCNTorPos == 0)
    {
    MoveObject(LCNTor, -75.39, -353.16, -2.48,2);
    LCNTorPos = 1;
    }
    else if(LCNTorPos == 1)
    {
    MoveObject(LCNTor, -75.39, -353.16, 3.00, 2);
    LCNTorPos = 0;
    }
    }
    }
    if(IsPlayerInRangeOfPoint(playerid, 15,2497.4063, 2774.0703, 11.5313))
    { // Terroristen 1
    if(SpielerInfo[playerid][sMember] == 19 || SpielerInfo[playerid][pAdmin] >= 1 && AdminDuty[playerid] == 1 || GetPVarInt(playerid, "SEK-Duty") == 1)
    {
    if(TerrorTorPos == 0)
    {
    MoveObject(TerrorTor, 2497.4063, 2782.0703, 11.5313, 4);
    MoveObject(TerrorTor2, 2497.4063, 2764.1094, 11.5313, 4);
    TerrorTorPos = 1;
    }
    else if(TerrorTorPos == 1)
    {
    MoveObject(TerrorTor, 2497.4063, 2777.0703, 11.5313, 4);
    MoveObject(TerrorTor2, 2497.4063, 2769.1094, 11.5313, 4);
    TerrorTorPos = 0;
    }
    }
    }
    if(IsPlayerInRangeOfPoint(playerid,15, -2695.3000488281, -44.799995422363, 6.0999999046326))
    { // Neue CNN Base
    if(SpielerInfo[playerid][sMember] == 9 || SpielerInfo[playerid][pAdmin] >= 1 && AdminDuty[playerid] == 1 || GetPVarInt(playerid, "SEK-Duty") == 1)
    {
    if(CNNTorVal == 0)
    {
    MoveObject(CNNTor, -2695.3000488281, -44.799995422363, 0.0999999046326, 2);
    CNNTorVal = 1;
    }
    else if(CNNTorVal == 1)
    {
    MoveObject(CNNTor, -2695.3000488281, -44.799995422363, 6.0999999046326, 2);
    CNNTorVal = 0;
    }
    }
    }
    if(IsPlayerInRangeOfPoint(playerid,15,-2614, -45.300003051758, 6.0999999046326))
    { // Neue CNN Base
    if(SpielerInfo[playerid][sMember] == 9 || SpielerInfo[playerid][pAdmin] >= 1 && AdminDuty[playerid] == 1 || GetPVarInt(playerid, "SEK-Duty") == 1)
    {
    if(CNNTorVal1 == 0)
    {
    MoveObject(CNNTor1, -2614, -45.300003051758, 0.0999999046326, 2);
    CNNTorVal1 = 1;
    }
    else if(CNNTorVal1 == 1)
    {
    MoveObject(CNNTor1, -2614, -45.300003051758, 6.0999999046326, 2);
    CNNTorVal1 = 0;
    }
    }
    }
    if(IsPlayerInRangeOfPoint(playerid,15, 997.20001220703, 2127.1999511719, 9.6999998092651))
    { // Brigada Tor
    if(SpielerInfo[playerid][sMember] == 17 || SpielerInfo[playerid][pAdmin] >= 1 && AdminDuty[playerid] == 1 || GetPVarInt(playerid, "SEK-Duty") == 1)
    {
    if(BrigadaTorPos == 0)
    {
    MoveObject(BrigadaTor, 997.20001220703, 2127.1999511719, 9.6999998092651, 2);
    BrigadaTorPos = 1;
    }
    else if(BrigadaTorPos == 1)
    {
    MoveObject(BrigadaTor, 997.20001220703, 2127.1999511719, 3.5999999046326, 2);
    BrigadaTorPos = 0;
    }
    }
    }
    } }
    }

  • ich meine das man das tor aufmachen kann ob auto oder zu fuß das meine ich also qwenn zb ein cop im auto is und raus möchte das er dann im auto eine taste drückt das dann das tor aufgeht und genau das möchte ich auch so zu fuß haben