Tore Öffnen und Schließen

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
  • Hallo kennt jemand ein Scriptbefehl für GM wo mann für alle Fraktion denn gleichen TOr befehl machen kann


    z.b
    Polizei /mv für auf und zu
    und auch für andere Fraktion


    So danke schonmal kennt jemand auch einen Lösung für das Pickup Problem bei SAMP 0.3

    Einmal editiert, zuletzt von Danny21 ()

  • so kann das sein



    if(strcmp(cmdtext, "/mv", true) == 0 || strcmp(cmdtext, "/breakopen", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    //============[LCN]==============//
    if(PlayerToPoint(12, playerid, 711.131653, -1415.807373, 20.526249))
    {
    if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pAdmin] >= 4)
    {
    MoveObject(lcn,711.131653, -1415.807373, 20.526249,4);//Aberto
    SetTimer("GateCloseLCN", 5000, 0);
    GameTextForPlayer(playerid,"La Cosa Nostra",5000, 1);
    return 1;
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, "** Du bist nicht in der La Cosa Nostra");
    }


    }
    //============[LSPD Vor Gate]==============//
    if(PlayerToPoint(12, playerid, 1544.698,-1630.769,12.155))
    {
    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 15 || PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pAdmin] >= 4)
    {
    MoveObject(lspd,1544.698,-1630.769,12.155,1);//Aberto
    SetTimer("GateCloseLSPD", 5000, 0);
    GameTextForPlayer(playerid,"LSPD",5000, 1);
    return 1;
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, "** Du bist kein Beamter");
    }


    }
    //============[FBI]==============//
    if(PlayerToPoint(12, playerid, -1781.551392, 998.500854, 31.657688))
    {
    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pAdmin] >= 4)
    {
    MoveObject(fbi,-1781.551392, 998.500854, 31.657688,4);//Aberto
    SetTimer("GateCloseFBI", 5000, 0);
    GameTextForPlayer(playerid,"FBI",5000, 1);
    return 1;
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, "** Du bist kein M.I.B. Agent.");
    }


    }
    //============[FBI]==============//
    if(PlayerToPoint(12, playerid, -1781.425537, 969.478027, 31.532690))
    {
    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pAdmin] >= 4)
    {
    MoveObject(fbi2,-1781.425537, 969.478027, 31.532690,4);//Aberto
    SetTimer("GateCloseFBI2", 5000, 0);
    GameTextForPlayer(playerid,"FBI",5000, 1);
    return 1;
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, "** Du bist kein FBI Agent.");
    }


    }
    //============[Army]==============//
    if(PlayerToPoint(12, playerid, -1525.908691, 482.607025, -0.112515))
    {
    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pAdmin] >= 4)
    {
    MoveObject(army,-1525.908691, 482.607025, -0.112515,4);//Aberto
    SetTimer("GateCloseArmy", 5000, 0);
    GameTextForPlayer(playerid,"Army gelaende",5000, 1);
    return 1;
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, "** Du bist kein Staatsangestellter.");
    }


    }
    //============[LSPD]==============//
    else if(PlayerToPoint(12, playerid, 1589.096069, -1638.025269, 14.111814))
    {
    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15 || PlayerInfo[playerid][pAdmin] >= 4)
    {
    MoveObject(pdg,1596.398315, -1638.025269, 14.111814,4);//Aberto
    SetTimer("GateClosePD", 5000, 0);
    GameTextForPlayer(playerid,"LSPD",5000, 1);
    return 1;
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, "** Du bist kein Polizist");
    }


    }
    //============[Hitman]==============//
    else if(PlayerToPoint(12, playerid, -2440.212646, 493.211884, 30.914555))
    {
    if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8 || PlayerInfo[playerid][pAdmin] >= 4)
    {
    MoveObject(kenny,-2440.212646, 493.211884, 30.914555,4);//Aberto
    SetTimer("GateCloseKENNY", 5000, 0);
    GameTextForPlayer(playerid,"Hitman Base",5000, 1);
    return 1;
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, "** Du bist kein Hitman Mitglied.");
    }
    }
    //============[Presi]==============//
    else if(PlayerToPoint(3, playerid, 368.8720, 162.7807, 1024.7889))
    {
    if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7 || PlayerInfo[playerid][pAdmin] >= 1337)
    {
    MoveObject(presi,368.8720,162.7807,1020.7891,4);//Aberto
    MoveObject(presi2, 368.8720,164.0247,1020.7891, 3);
    SetTimer("GateClosepresi", 5000, 0);
    GameTextForPlayer(playerid,"Büro",5000, 1);
    return 1;
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, "** Du bist nicht der Bürgermeister **");
    }
    }
    //=============[Yakuza]================//
    else if(PlayerToPoint(12, playerid, 1077.806885, 1357.935303, 12.455864))
    {
    if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pAdmin] >= 4)
    {
    MoveObject(yakuza,1077.806885, 1357.935303, 12.455864,4);//Aberto
    SetTimer("GateCloseYakuza", 5000, 0);
    GameTextForPlayer(playerid,"Yakuza Base",5000, 1);
    return 1;
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, "** Du bist kein Yakuza Mitglied.");
    }
    }
    //=============[Taxi]================//
    else if(PlayerToPoint(12, playerid, 1534.735962, -1451.367554, 20.331125))
    {
    if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10 || PlayerInfo[playerid][pAdmin] >= 4)
    {
    MoveObject(taxi,1534.735962, -1451.367554, 20.331125,4);//Aberto
    SetTimer("GateCloseTaxi", 5000, 0);
    GameTextForPlayer(playerid,"Taxi Base",5000, 1);
    return 1;
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, "** Du bist kein Taxi Fahrer.");
    }
    }


    }
    return 1;
    }


    bei mir geht es musst nur cord neu machen :)