<--- HILFE Für mein Script --->

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
  • qutn Tag xD ich bins ma wieder unzwar will ich das ich für mein filterscript
    Das hier:


    /*



    *************************************
    ** »LSPD« Made by mR_Al3X **
    ** _____________________ **
    ** Script fragen an Icq: **
    ** ICQ nummer: 460960798 **
    *************************************




    */





    #include <a_samp>
    #define FILTERSCRIPT


    //---------GATES---------//


    new schranke;
    new tor;
    new aufzug;
    new dd;


    //---------GATES---------//


    #pragma tabsize 0
    #if defined FILTERSCRIPT


    public OnFilterScriptInit()
    {



    //Autos Fals vorhanden einfach /* und am ende */ :D oder ganz endfernen


    /*AddStaticVehicle(596,1604.1888,-1630.4712,13.2315,90.7564,125,1); //
    AddStaticVehicle(596,1604.1747,-1626.2277,13.2316,90.6159,125,1); //
    AddStaticVehicle(596,1604.2806,-1621.6744,13.2327,270.0371,125,1); //
    AddStaticVehicle(596,1552.9937,-1614.0750,13.1029,177.8420,125,1); //
    AddStaticVehicle(596,1556.9026,-1614.0208,13.1042,357.6105,125,1); //
    AddStaticVehicle(596,1560.5691,-1614.0361,13.1038,359.0481,125,1); //
    AddStaticVehicle(596,1564.0944,-1614.4901,13.1037,175.9753,125,1); //
    AddStaticVehicle(596,1568.7478,-1614.0702,13.1033,182.4276,125,1); //
    AddStaticVehicle(596,1602.3444,-1684.0197,5.6110,88.7495,7,1); //
    AddStaticVehicle(596,1602.4027,-1688.1506,5.6106,89.5917,125,1); //
    AddStaticVehicle(596,1602.3711,-1692.2847,5.6132,89.4757,125,1); //
    AddStaticVehicle(596,1587.2821,-1711.2628,5.6116,0.4458,125,1); //
    AddStaticVehicle(596,1578.3882,-1711.8118,5.6109,0.8476,125,1); //
    AddStaticVehicle(596,1570.2180,-1711.6061,5.6107,359.9566,125,1); //
    AddStaticVehicle(599,1558.6632,-1712.0887,5.9853,359.3790,125,1); //
    AddStaticVehicle(599,1562.9269,-1711.6526,5.9860,359.5697,125,1); //
    AddStaticVehicle(445,1585.5206,-1667.7585,5.7671,268.8143,1,1); //
    AddStaticVehicle(445,1585.5317,-1671.9822,5.7688,266.7069,1,1); //
    AddStaticVehicle(475,1528.9938,-1685.8840,5.6961,311.9551,1,1); //
    AddStaticVehicle(497,1565.9156,-1656.6746,28.5725,92.4723,125,1); //
    AddStaticVehicle(497,1567.3927,-1693.5209,28.5721,91.8690,125,1); //
    AddStaticVehicle(523,1539.3601,-1642.5074,5.4572,359.0525,125,1); //
    AddStaticVehicle(523,1534.8876,-1642.8302,5.4610,180.5631,125,1); //
    AddStaticVehicle(523,1526.7821,-1643.7695,5.4602,177.8193,125,1); //*/



    //Objecte


    /*CreateObject(982,1552.396,-1602.315,16.595,0.0,0.0,90.000);
    CreateObject(984,1539.559,-1608.713,16.559,0.0,0.0,0.0);
    CreateObject(983,1539.559,-1614.646,16.606,0.0,0.0,0.0);
    CreateObject(983,1542.748,-1617.835,16.531,0.0,0.0,-90.000);
    CreateObject(982,1577.984,-1602.306,16.595,0.0,0.0,-90.000);
    CreateObject(982,1594.994,-1602.337,16.595,0.0,0.0,-90.000);
    CreateObject(982,1607.827,-1615.090,16.607,0.0,0.0,0.0);
    CreateObject(984,1607.841,-1631.549,16.559,0.0,0.0,0.0);
    CreateObject(983,1604.656,-1637.942,16.606,0.0,0.0,-90.000);
    CreateObject(3749,1547.502,-1627.565,18.241,0.0,0.0,-90.000);
    CreateObject(970,1544.724,-1621.802,12.881,0.0,0.0,-90.000);
    CreateObject(970,1544.727,-1619.878,12.881,0.0,0.0,-90.000);
    CreateObject(970,1544.563,-1634.840,12.880,0.0,0.0,-90.000);
    CreateObject(3550,1546.068,-1639.468,14.144,0.0,0.0,0.0);
    CreateObject(982,1564.003,-1617.651,13.230,0.0,0.0,90.000);
    CreateObject(982,1563.997,-1622.830,13.230,0.0,0.0,-90.000);
    CreateObject(673,1553.665,-1620.310,12.598,0.0,0.0,0.0);
    CreateObject(673,1560.784,-1620.273,12.598,0.0,0.0,0.0);
    CreateObject(673,1567.484,-1620.256,12.598,0.0,0.0,0.0);
    CreateObject(673,1574.344,-1620.277,12.598,0.0,0.0,0.0);
    CreateObject(640,1576.445,-1620.233,13.244,0.0,0.0,0.0);
    CreateObject(640,1550.726,-1620.281,13.244,0.0,0.0,0.0);
    CreateObject(673,1607.573,-1602.739,12.597,0.0,0.0,0.0);
    CreateObject(673,1607.608,-1637.724,12.444,0.0,0.0,0.0);
    CreateObject(673,1539.859,-1602.795,12.357,0.0,0.0,0.0);
    CreateObject(3578,1549.400,-1627.739,11.761,0.0,0.0,-90.000);
    CreateObject(1215,1549.424,-1622.710,13.111,0.0,0.0,0.0);
    CreateObject(1215,1549.402,-1633.081,13.123,0.0,0.0,0.0);
    CreateObject(3515,1479.314,-1639.245,13.219,0.0,0.0,0.0);*/


    /*-----Gates-----*/


    tor = CreateObject(987,1596.157,-1638.069,12.457,0.0,0.0,-180.000); //torzu
    schranke = CreateObject(968,1544.701,-1630.757,13.155,0.0,-91.100,-90.000); //schrankezu
    aufzug = CreateObject(2395,1572.300,-1637.909,12.661,-91.100,0.0,90.000); //aufzugunten
    dd = CreateObject(974,1580.850,-1637.876,12.447,0.0,0.0,0.0); //ddzu


    /*-----Gates-----*/



    print("\n--------------------------------------");
    print(" [FS][Made by Mr_AL3X][FS] ");
    print("--------------------------------------\n");
    return 1;
    }


    #else
    #endif
    public OnPlayerCommandText(playerid, cmdtext[])
    {



    if (strcmp(cmdtext, "/torauf", true) == 0)
    {
    MoveObject(tor,1604.286,-1638.146,12.438,2.5);
    return 1;
    }
    if (strcmp(cmdtext, "/torzu", true) == 0)
    {
    MoveObject(tor,1596.157,-1638.069,12.457,2.5);
    return 1;
    }
    if (strcmp(cmdtext, "/schrankeauf", true) == 0)
    {
    MoveObject(schranke,1544.698,-1630.769,12.155,2.5);
    return 1;
    }
    if (strcmp(cmdtext, "/schrankezu", true) == 0)
    {
    MoveObject(schranke,1544.701,-1630.757,13.155,2.5);
    return 1;
    }
    if (strcmp(cmdtext, "/aufzughoch", true) == 0)
    {
    MoveObject(aufzug,1572.193,-1637.099,27.435,4.5);
    return 1;
    }
    if (strcmp(cmdtext, "/aufzugrunter", true) == 0)
    {
    MoveObject(aufzug,1572.300,-1637.909,12.661,4.5);
    return 1;
    }
    if (strcmp(cmdtext, "/dauf", true) == 0) //türeauf
    {
    MoveObject(dd,1580.962,-1637.968,9.618,2.5);
    return 1;
    }
    if (strcmp(cmdtext, "/dzu", true) == 0) //türezu
    {
    MoveObject(dd,1580.850,-1637.876,12.447,2.5);
    return 1;
    }





    return 0;
    }




    nur für ein bestimmtes Team = Polizei machen kann ich hab das script von Psychosandman Perfect roleyplay und will das nur die cops das aufmachen können need help

  • an welcher stelle sind bei dir cops ?
    also z.B.
    AddPlayerClass(280,1550.9318,-1675.7347,15.6266,81.3136,0,0,0,0,0,0); // policespawnls
    AddPlayerClass(280,-1615.8478,683.0923,7.1875,69.9297,0,0,0,0,0,0); // policesf
    AddPlayerClass(280,2339.1819,2456.8191,14.9688,192.8174,0,0,0,0,0,0); // policeLV
    AddPlayerClass(2,1960.0056,1343.1176,15.3746,265.8440,0,0,0,0,0,0); // spawnLV
    AddPlayerClass(29,2494.5103,-1686.0660,13.5127,11.8841,0,0,0,0,0,0); // spwnLS
    AddPlayerClass(21,-2521.7522,1220.7678,37.4283,246.7729,0,0,0,0,0,0); // SpawnSF


    bei mir sind die ersten 3 skins Cops


    dan hab ich bei
    OnPlayerRequestClass
    if(classid == 0)
    {
    gTeam[playerid] = TEAM_COP;
    GameTextForPlayer(playerid," ~b~COP LS",2000,5);
    }
    if(classid == 1)
    {
    gTeam[playerid] = TEAM_COP;
    GameTextForPlayer(playerid," ~b~COP SF",2000,5);
    }
    if(classid == 2)
    {
    gTeam[playerid] = TEAM_COP;
    GameTextForPlayer(playerid," ~b~COP LV",2000,5);
    }
    if(classid == 3)
    {
    gTeam[playerid] = TEAM_PAS;
    GameTextForPlayer(playerid," ~g~Passant LV",2000,5);
    }
    if(classid == 4)
    {
    gTeam[playerid] = TEAM_PAS;
    GameTextForPlayer(playerid," ~g~Passant LS",2000,5);
    }
    if(classid == 5)
    {
    gTeam[playerid] = TEAM_PAS;
    GameTextForPlayer(playerid," ~g~Passant SF",2000,5);
    }
    und ganz oben
    #define TEAM_COP 0
    #define TEAM_PAS 1
    die zahlen sind die ids


    bei den commands
    : if(strcmp("/Command",cmdtext,true) == 0)
    {
    if(gTeam[playerid] == TEAM_COP)//checkt ob man im team ist
    {
    //Funktion wen man im tam ist
    }
    else
    {
    //funktion wen man nicht im team ist
    }
    return 1;
    }

  • hat es was damit zu tun


    #define TEAM_CYAN 1
    #define TEAM_BLUE 2
    #define TEAM_GREEN 3
    #define TEAM_ORANGE 4
    #define TEAM_COR 5
    #define TEAM_BAR 6
    #define TEAM_TAT 7
    #define TEAM_CUN 8
    #define TEAM_STR 9
    #define TEAM_HIT 10
    #define TEAM_ADMIN 11
    #define TEAM_GANG 12


    wen ja also darunter


    if(gTeam[playerid]==TEAM_CYAN) {


    oder wie soll ich das verstehen?

  • kenn ich von den GF zeiten noch

    #define TEAM_CYAN 1
    #define TEAM_BLUE 2
    #define TEAM_GREEN 3
    #define TEAM_ORANGE 4
    #define TEAM_COR 5
    #define TEAM_BAR 6
    #define TEAM_TAT 7
    #define TEAM_CUN 8
    #define TEAM_STR 9
    #define TEAM_HIT 10
    #define TEAM_ADMIN 11


    8)