/mv befehl das 2 tore sich bewegen ??

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
  • Moin Leute ,


    Ich Machs mal wieder ganz kurz ich hab alles ausprobiert und es geht nicht .
    Ich hab dem Befehl /mv für alle tore und es geht alles perfekt aber ich will jetz das 2 tore auf einmal runter gehen ;D?
    also ich schick euch ma alles ;:D


    new gGate;//
    new gGateopen;
    new hGate;
    new hGateopen;


    if(strcmp("/mv", cmdtext, true, 10) ==0)
    {


    if(IsPlayerInRangeOfPoint(playerid,12,322.19921875, -1183.099609375, 71.300003051758) //ANGELO TOR
    || IsPlayerInRangeOfPoint(playerid,12,275, 189.39999389648, 1008.9000244141)//LSPD TOR drine
    || IsPlayerInRangeOfPoint(playerid,4,255.599609375, 181.7998046875, 1002)//LSPD TOR drine
    || IsPlayerInRangeOfPoint(playerid,4,254.19999694824, 181.69999694824, 1002)//LSPD TOR DRINE
    || IsPlayerInRangeOfPoint(playerid,10, 1545.5, -1626.5999755859, 16.299999237061)//LSPD tor draußen
    || IsPlayerInRangeOfPoint(playerid,10, 1589.4000244141, -1638.1999511719, 14.5)//LSPD tor draußen garage
    || IsPlayerInRangeOfPoint(playerid,10, 1290.1999511719, -1645.0999755859, 12.60000038147)//Taxi tor
    || IsPlayerInRangeOfPoint(playerid,10, 213.60000610352, 1875.9000244141, 13.699999809265)//army tor garage
    || IsPlayerInRangeOfPoint(playerid,10, 96.800003051758, 1920.0999755859, 18.10000038147)//army kleiner eingang
    || IsPlayerInRangeOfPoint(playerid,10, 96.800003051758, 1920.8000488281, 18.10000038147))//army kleiner eingang
    {
    //[____________________Angelos Haus____________________]
    if(tGateopen == 0 && IsPlayerInRangeOfPoint(playerid,12,322.19921875, -1183.099609375, 71.300003051758))
    {
    if(isPlayerAnAdmin(playerid,5))
    MoveObject(tGate,322.19921875, -1183.099609375, 60.300003051758,3);
    tGateopen = 1;
    return 1;
    }
    else if(tGateopen == 1 && IsPlayerInRangeOfPoint(playerid,12,322.19921875, -1183.099609375, 71.300003051758))


    {
    MoveObject(tGate,322.19921875, -1183.099609375, 71.300003051758,3);
    tGateopen = 0;
    return 1;
    }
    //[____________________LSPD DRINE ____________________]
    if(lGateopen == 0 && IsPlayerInRangeOfPoint(playerid,12,275, 189.39999389648, 1008.9000244141))
    {
    if(isPlayerInFrakt(playerid,1) || isPlayerInFrakt(playerid,2) || isPlayerInFrakt(playerid,3) || isPlayerInFrakt(playerid,4))
    MoveObject(lGate,275, 189.39999389648, 1000.9000244141,3);
    lGateopen = 1;
    return 1;
    }
    else if(lGateopen == 1 && IsPlayerInRangeOfPoint(playerid,12,275, 189.39999389648, 1008.9000244141))
    {
    if(isPlayerInFrakt(playerid,1) || isPlayerInFrakt(playerid,2) || isPlayerInFrakt(playerid,3) || isPlayerInFrakt(playerid,4))
    MoveObject(lGate,275, 189.39999389648, 1008.9000244141,3);
    lGateopen = 0;
    return 1;
    }
    //[________________________________________________________]
    if(aGateopen == 0 && IsPlayerInRangeOfPoint(playerid,4,255.599609375, 181.7998046875, 1002))
    {
    if(isPlayerInFrakt(playerid,1) || isPlayerInFrakt(playerid,2) || isPlayerInFrakt(playerid,3) || isPlayerInFrakt(playerid,4))
    MoveObject(aGate,255.599609375, 181.7998046875, 995,3);
    aGateopen = 1;
    return 1;
    }
    else if(aGateopen == 1 && IsPlayerInRangeOfPoint(playerid,4,255.599609375, 181.7998046875, 1002))
    {
    if(isPlayerInFrakt(playerid,1) || isPlayerInFrakt(playerid,2) || isPlayerInFrakt(playerid,3) || isPlayerInFrakt(playerid,4))
    MoveObject(aGate,255.599609375, 181.7998046875, 1002,3);
    aGateopen = 0;
    return 1;
    }
    //[________________________________________________________]
    if(bGateopen == 0 && IsPlayerInRangeOfPoint(playerid,4,254.19999694824, 181.69999694824, 1002))
    {
    if(isPlayerInFrakt(playerid,1) || isPlayerInFrakt(playerid,2) || isPlayerInFrakt(playerid,3) || isPlayerInFrakt(playerid,4))
    MoveObject(bGate,254.19999694824, 181.69999694824, 995,3);
    bGateopen = 1;
    return 1;
    }
    else if(bGateopen == 1 && IsPlayerInRangeOfPoint(playerid,4,254.19999694824, 181.69999694824, 1002))
    {
    if(isPlayerInFrakt(playerid,1) || isPlayerInFrakt(playerid,2) || isPlayerInFrakt(playerid,3) || isPlayerInFrakt(playerid,4))
    MoveObject(bGate,254.19999694824, 181.69999694824, 1002,3);
    bGateopen = 0;
    return 1;
    }
    //[____________________LSPD DRaußen ____________________]
    if(cGateopen == 0 && IsPlayerInRangeOfPoint(playerid,10, 1545.5, -1626.5999755859, 16.299999237061))
    {
    if(isPlayerInFrakt(playerid,1) || isPlayerInFrakt(playerid,2) || isPlayerInFrakt(playerid,3) || isPlayerInFrakt(playerid,4))
    MoveObject(cGate, 1545.5, -1626.5999755859, 4.299999237061,3);
    cGateopen = 1;
    return 1;
    }
    else if(cGateopen == 1 && IsPlayerInRangeOfPoint(playerid,10, 1545.5, -1626.5999755859, 16.299999237061))
    {
    if(isPlayerInFrakt(playerid,1) || isPlayerInFrakt(playerid,2) || isPlayerInFrakt(playerid,3) || isPlayerInFrakt(playerid,4))
    MoveObject(cGate, 1545.5, -1626.5999755859, 16.299999237061,3);
    cGateopen = 0;
    return 1;
    }
    //[________________________________________________________]
    if(dGateopen == 0 && IsPlayerInRangeOfPoint(playerid,10, 1589.4000244141, -1638.1999511719, 14.5))
    {
    if(isPlayerInFrakt(playerid,1) || isPlayerInFrakt(playerid,2) || isPlayerInFrakt(playerid,3) || isPlayerInFrakt(playerid,4))
    MoveObject(dGate, 1589.4000244141, -1638.1999511719, 4.5,3);
    dGateopen = 1;
    return 1;
    }
    else if(dGateopen == 1 && IsPlayerInRangeOfPoint(playerid,10, 1589.4000244141, -1638.1999511719, 14.5))
    {
    if(isPlayerInFrakt(playerid,1) || isPlayerInFrakt(playerid,2) || isPlayerInFrakt(playerid,3) || isPlayerInFrakt(playerid,4))
    MoveObject(dGate, 1589.4000244141, -1638.1999511719, 14.5,3);
    dGateopen = 0;
    return 1;
    }
    //[________________________Taxi__________________________]
    if(eGateopen == 0 && IsPlayerInRangeOfPoint(playerid,10, 1290.1999511719, -1645.0999755859, 12.60000038147))
    {
    if(isPlayerInFrakt(playerid,1) || isPlayerInFrakt(playerid,2) || isPlayerInFrakt(playerid,3) || isPlayerInFrakt(playerid,7) || isPlayerInFrakt(playerid,4))
    MoveObject(eGate, 1290.1999511719, -1645.0999755859, 2.60000038147,3);
    eGateopen = 1;
    return 1;
    }
    else if(eGateopen == 1 && IsPlayerInRangeOfPoint(playerid,10, 1290.1999511719, -1645.0999755859, 12.60000038147))
    {
    if(isPlayerInFrakt(playerid,1) || isPlayerInFrakt(playerid,2) || isPlayerInFrakt(playerid,3) || isPlayerInFrakt(playerid,7) || isPlayerInFrakt(playerid,4))
    MoveObject(eGate, 1290.1999511719, -1645.0999755859, 12.60000038147,3);
    eGateopen = 0;
    return 1;
    }
    //[________________________army_ garaggen tor _________________________]
    if(fGateopen == 0 && IsPlayerInRangeOfPoint(playerid,10, 213.60000610352, 1875.9000244141, 13.699999809265))
    {


    MoveObject(fGate, 213.60000610352, 1875.9000244141, 3.699999809265,3);
    fGateopen = 1;
    return 1;
    }
    else if(fGateopen == 1 && IsPlayerInRangeOfPoint(playerid,10, 213.60000610352, 1875.9000244141, 13.699999809265))
    {
    MoveObject(fGate, 213.60000610352, 1875.9000244141, 13.699999809265,3);
    fGateopen = 0;
    return 1;
    }
    //[________________________army__________________________] // ab hier will ich beide tore zusammen haben
    if(hGateopen == 0 && IsPlayerInRangeOfPoint(playerid,10, 96.800003051758, 1920.0999755859, 18.10000038147))
    {
    MoveObject(hGate, 96.800003051758, 1920.0999755859, 8.10000038147,3);
    hGateopen = 1;

    return 1;
    }
    else if(hGateopen == 1 && IsPlayerInRangeOfPoint(playerid,10, 96.800003051758, 1920.0999755859, 18.10000038147))
    {
    MoveObject(hGate, 96.800003051758, 1920.0999755859, 18.10000038147,3);
    hGateopen = 0;

    return 1;
    }
    //[________________________army__________________________]
    if(gGateopen == 0 && IsPlayerInRangeOfPoint(playerid,10, 96.800003051758, 1920.8000488281, 18.10000038147))
    {


    MoveObject(gGate, 96.800003051758, 1920.8000488281, 18.10000038147,3);
    gGateopen = 1;
    return 1;
    }
    else if(fGateopen == 1 && IsPlayerInRangeOfPoint(playerid,10, 96.800003051758, 1920.8000488281, 18.10000038147))
    {
    MoveObject(gGate, 96.800003051758, 1920.8000488281, 18.10000038147,3);
    gGateopen = 0;
    return 1;
    }



    }


    }


    also ich will wo steht /ab hier will ich alle tore zusammen haben :
    möchte ich gerne das hGate und gGate zusammen runter gehen sind beide neben einandern ;D
    bitte hilft mir ich sitz hier 2 stunden dran und schaff es nit :D


    danke schon mal ;)