Beiträge von Abgehn

    Hallo ich möchte den /report befehl nur für 1339 admins haben 1339 sind Supportet


    Hier standart befehl


    if(strcmp(cmd, "/melden", true) == 0 || strcmp(cmd, "/report", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    GetPlayerName(playerid, sendername, sizeof(sendername));
    new length = strlen(cmdtext);
    while ((idx < length) && (cmdtext[idx] <= ' '))
    {
    idx++;
    }
    new offset = idx;
    new result[64];
    while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
    {
    result[idx - offset] = cmdtext[idx];
    idx++;
    }
    result[idx - offset] = EOS;
    if(!strlen(result))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "Benutze: /melden [text]");
    return 1;
    }
    format(string, sizeof(string), "Ticket von %s [%d]: %s", sendername, playerid, (result));
    ABroadCast(COLOR_YELLOW,string,1);
    SendClientMessage(playerid, COLOR_GREEN, "Dein Ticket wurde gesendet und wird in Kürze bearbeitet");
    }
    return 1;
    }


    Bitte antworten danke im vorraus

    Hab ein Parkhaus gemappt und nen aufzug dazu gemacht wem es nicht gefällt ..... Kann man nichts machen :D




    *************************************
    ** Parkhaus by mR_Al3X **
    ** _____________________ **
    ** Script fragen an Icq: **
    ** ICQ nummer: 460960798 **
    *************************************



    */





    #include <a_samp>
    #define FILTERSCRIPT


    /*-----[COLORS]-----*/
    #define COLOR_GRAD1 0xB4B5B7FF
    #define COLOR_GRAD2 0xBFC0C2FF
    #define COLOR_GRAD3 0xCBCCCEFF
    #define COLOR_GRAD4 0xD8D8D8FF
    #define COLOR_GRAD5 0xE3E3E3FF
    #define COLOR_GRAD6 0xF0F0F0FF
    #define COLOR_GREY 0xAFAFAFAA
    #define COLOR_GREEN 0x33AA33AA
    #define COLOR_RED 0xAA3333AA
    #define COLOR_LIGHTRED 0xFF6347AA
    #define COLOR_LIGHTBLUE 0x33CCFFAA
    #define COLOR_LIGHTGREEN 0x9ACD32AA
    #define COLOR_YELLOW 0xFFFF00AA
    #define COLOR_YELLOW2 0xF5DEB3AA
    #define COLOR_WHITE 0xFFFFFFAA
    #define COLOR_FADE1 0xE6E6E6E6
    #define COLOR_FADE2 0xC8C8C8C8
    #define COLOR_FADE3 0xAAAAAAAA
    #define COLOR_FADE4 0x8C8C8C8C
    #define COLOR_FADE5 0x6E6E6E6E
    #define COLOR_PURPLE 0xC2A2DAAA
    #define COLOR_DBLUE 0x2641FEAA
    #define COLOR_ALLDEPT 0xFF8282AA
    #define COLOR_NEWS 0xFFA500AA
    #define COLOR_OOC 0xE0FFFFAA
    #define COLOR_ADMINMSG 0x00FFFF00
    #define COLOR 0xAA3333AA
    /*-----[COLORS]-----*/



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


    new aufzug;


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


    #pragma tabsize 0
    #if defined FILTERSCRIPT


    public OnFilterScriptInit()
    {



    /*-----Objecte-----*/


    CreateObject(17950, 2147.621826, -1183.348389, 25.070984, 0.0000, 0.0000, 270.0000);
    CreateObject(17950, 2147.528320, -1176.138794, 25.097437, 0.0000, 0.0000, 270.0000);
    CreateObject(17950, 2147.412598, -1168.924805, 25.072554, 0.0000, 0.0000, 270.0000);
    CreateObject(17950, 2147.434814, -1162.159302, 25.075102, 0.0000, 0.0000, 90.0000);
    CreateObject(17950, 2147.758789, -1183.372437, 29.589624, 0.0000, 0.0000, 90.0000);
    CreateObject(17950, 2147.668701, -1176.238281, 29.583811, 0.0000, 0.0000, 90.0000);
    CreateObject(17950, 2147.579834, -1169.115723, 29.583811, 0.0000, 0.0000, 90.0000);
    CreateObject(17950, 2147.493896, -1161.981201, 29.587929, 0.0000, 0.0000, 90.0000);
    CreateObject(17950, 2147.461426, -1161.942383, 34.050751, 0.0000, 0.0000, 270.0000);
    CreateObject(17950, 2147.518555, -1169.172852, 34.071636, 0.0000, 0.0000, 270.0000);
    CreateObject(17950, 2147.556396, -1176.382080, 34.046635, 0.0000, 0.0000, 270.0000);
    CreateObject(17950, 2147.594238, -1183.616333, 34.052448, 0.0000, 0.0000, 270.0000);
    CreateObject(974, 2154.658447, -1183.605957, 31.895662, 271.4780, 0.0000, 270.8595);
    CreateObject(974, 2154.544434, -1177.116333, 31.869537, 271.4780, 0.0000, 270.8595);
    CreateObject(974, 2154.336182, -1161.619995, 31.852814, 271.4780, 0.0000, 270.8595);
    CreateObject(974, 2154.459473, -1170.467529, 31.875727, 271.4780, 0.0000, 270.8595);
    CreateObject(974, 2154.380371, -1163.876587, 31.856308, 271.4780, 0.0000, 270.8595);
    CreateObject(627, 2152.462158, -1165.536987, 24.669537, 0.0000, 0.0000, 0.0000);
    CreateObject(627, 2152.556152, -1172.498535, 24.669420, 0.0000, 0.0000, 0.0000);
    CreateObject(627, 2152.647705, -1179.732544, 24.674372, 0.0000, 0.0000, 0.0000);
    CreateObject(627, 2152.843506, -1186.728516, 24.673107, 0.0000, 0.0000, 0.0000);
    CreateObject(982, 2157.203369, -1173.997559, 32.580288, 0.0000, 0.0000, 0.8594);
    CreateObject(983, 2157.053711, -1161.503906, 32.596123, 0.0000, 0.0000, 0.8594);
    CreateObject(983, 2154.269043, -1186.888062, 32.564075, 0.0000, 0.0000, 91.7189);
    CreateObject(997, 2152.932373, -1158.366455, 22.965895, 0.0000, 0.0000, 0.0000);
    CreateObject(997, 2151.803955, -1154.017700, 22.983860, 0.0000, 0.0000, 270.0000);
    CreateObject(997, 2157.386230, -1154.048096, 22.965540, 0.0000, 0.0000, 270.0000);
    CreateObject(625, 2156.366943, -1156.707764, 23.706732, 0.0000, 0.0000, 112.5000);
    CreateObject(625, 2153.060059, -1156.742554, 23.709089, 0.0000, 0.0000, 56.2500);
    CreateObject(631, 2157.529297, -1153.730103, 23.713991, 0.0000, 0.0000, 0.0000);
    CreateObject(631, 2151.854004, -1153.845581, 23.715981, 0.0000, 0.0000, 0.0000);


    /*-----Objecte-----*/



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


    aufzug = CreateObject(980, 2154.809570, -1152.853027, 22.729044, 269.7591, 0.0000, 270.0000);


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



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


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



    if (strcmp(cmdtext, "/hoch", true) == 0)
    {
    MoveObject(aufzug,2154.345215, -1152.668213, 31.843502,1.5);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "Der Aufzug fährt nun nach oben.");
    return 1;
    }
    if (strcmp(cmdtext, "/runter", true) == 0)
    {
    MoveObject(aufzug,2154.809570, -1152.853027, 22.729044,1.3);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "Der Aufzug fährt nun nach Unten.");
    return 1;
    }




    return 0;
    }


    //Ende


    Hier bilders


    klick me...


    Oder hier:


    http://img3.imagebanana.com/view/y22d0lg1/samp000.png
    http://img3.imagebanana.com/view/1mnfydc5/samp001.png
    http://img3.imagebanana.com/view/wvd5ndwy/samp002.png
    http://img3.imagebanana.com/view/vyqmoa/samp003.png
    http://img3.imagebanana.com/view/3vtb1ks/samp004.png
    http://img3.imagebanana.com/view/8ka8fyj/samp005.png


    This ....



    #include <a_samp>
    #include <core>
    #include <float>
    static gTeam[MAX_PLAYERS];
    new gPlayerClass[MAX_PLAYERS];


    #define COLOR_GREY 0xAFAFAFAA
    #define COLOR_GREEN 0x33AA33AA
    #define COLOR_RED 0xAA3333AA
    #define COLOR_YELLOW 0xFFFF00AA
    #define COLOR_PINK 0xFF66FFAA
    #define COLOR_BLUE 0x0000BBAA
    #define COLOR_LIGHTBLUE 0x33CCFFAA
    #define COLOR_DARKRED 0x660000AA
    #define COLOR_ORANGE 0xFF9900AA
    #define TEAM_TERRORIST 1
    #define TEAM_COUNTER_TERRORIST 2



    // Round duration


    //new gRoundTime = 3600000; // 60 mins


    //new gRoundTime = 900000; //15 mins


    //new gRoundTime = 300000; // 5 mins




    //------------------------------------------------------------------------------


    main()
    {
    }


    //------------------------------------------------------------------------------


    public OnGameModeInit()
    {
    SetGameModeText("San Fierro TDM");
    SetTeamCount(2);
    SetWorldTime(12);
    AddPlayerClass(285,2776.2981,-2379.0464,16.2244,88.4118,16,3,4,1,22,22); // CT
    AddPlayerClass(258,2536.9382,-2535.7244,13.6250,268.8935,16,3,4,1,22,22); // T
    return 1;
    }




    //------------------------------------------------------------------------------




    public OnPlayerConnect(playerid)
    {
    GameTextForPlayer(playerid,"Counter Strike",2500,5);
    GivePlayerMoney(playerid, 2000);
    SetPlayerColor(playerid, COLOR_GREY);
    return 1;
    }




    //------------------------------------------------------------------------------




    public OnPlayerSpawn(playerid)
    {
    if(gTeam[playerid] == TEAM_TERRORIST)
    {
    SetPlayerColor(playerid,COLOR_RED); // Green
    }
    if(gTeam[playerid] == TEAM_COUNTER_TERRORIST)
    {
    SetPlayerColor(playerid,COLOR_GREEN); // Red
    }
    return 1;
    }




    //------------------------------------------------------------------------------




    public OnPlayerDeath(playerid, killerid, reason)
    {
    if(killerid == INVALID_PLAYER_ID) {
    SendDeathMessage(INVALID_PLAYER_ID,playerid,reason);
    } else {
    if(gTeam[killerid] != gTeam[playerid]) {
    // Valid kill
    SendDeathMessage(killerid,playerid,reason);
    SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
    GivePlayerMoney(killerid, 1000);
    }
    else {
    //Team Killer!
    new warning[256];
    format(warning, sizeof(warning), "Du hast Teamkill Begangen, dir wurden 1000$ abgezogen.");
    SendClientMessage(killerid, 0xFFFF00AA, warning);
    SendDeathMessage(killerid,playerid,reason);
    GivePlayerMoney(killerid, -1000);
    SetPlayerScore(killerid, GetPlayerScore(killerid) - 1);
    }
    }
    return 1;
    }




    //------------------------------------------------------------------------------




    public SetupPlayerForClassSelection(playerid)
    {
    SetPlayerFacingAngle(playerid, 90.0);
    SetPlayerPos(playerid, 2715.2871,-2486.3831,29.1932);
    SetPlayerCameraPos(playerid, 2715.2393,-2492.1199,29.1932);
    SetPlayerCameraLookAt(playerid, 2715.2871,-2486.3831,29.1932);
    }




    //------------------------------------------------------------------------------




    public OnPlayerRequestClass(playerid, classid)
    {
    SetPlayerClass(playerid, classid);
    SetupPlayerForClassSelection(playerid);
    gPlayerClass[playerid] = classid;
    switch (classid) {
    case 0:
    {
    GameTextForPlayer(playerid, "~g~Worker", 500, 3);
    }
    case 1:
    {
    GameTextForPlayer(playerid, "~g~Pimp", 500, 3);
    }
    }
    return 1;
    }




    //------------------------------------------------------------------------------




    public GameModeExitFunc()
    {
    GameModeExit();
    return 1;
    }




    //------------------------------------------------------------------------------




    SetPlayerClass(playerid, classid) {


    if(classid == 0)
    {
    gTeam[playerid] = TEAM_TERRORIST;
    }
    else if(classid == 1)
    {
    gTeam[playerid] = TEAM_COUNTER_TERRORIST;
    }
    return 1;

    Ja das ist das hier


    #include <a_samp>
    #define FILTERSCRIPT


    new Text:RealClock,Timer;


    public OnFilterScriptInit()
    {
    RealClock = TextDrawCreate(547.000000,22.000000," ");
    TextDrawAlignment(RealClock,0);
    TextDrawBackgroundColor(RealClock,0x000000ff);
    TextDrawFont(RealClock,3);
    TextDrawLetterSize(RealClock,0.599999,2.299999);
    TextDrawColor(RealClock,0xffffffff);
    TextDrawSetOutline(RealClock,1);
    TextDrawSetProportional(RealClock,1);
    TextDrawSetShadow(RealClock,10);
    Timer = SetTimer("UpdateClock",300,1);
    return 1;
    }


    public OnFilterScriptExit()
    {
    KillTimer(Timer);
    TextDrawHideForAll(RealClock);
    TextDrawDestroy(RealClock);
    return 1;
    }


    forward UpdateClock();
    public UpdateClock()
    {
    new Hour,Minute,Sec,String[256];
    gettime(Hour,Minute,Sec);
    if(Hour<9 && Minute<9){format(String,sizeof(String),"0%d:0%d",Hour,Minute);}
    else if(Hour>9 && Minute<9){format(String,sizeof(String),"%d:0%d",Hour,Minute);}
    else if(Hour<9 && Minute>9){format(String,sizeof(String),"0%d:%d",Hour,Minute);}
    else{format(String,sizeof(String),"%d:%d",Hour,Minute);}
    TextDrawSetString(RealClock,String);
    SetWorldTime(Hour);
    return 1;
    }


    public OnPlayerSpawn(playerid)
    {
    TextDrawShowForPlayer(playerid,RealClock);
    return 1;
    }


    public OnPlayerDisconnect(playerid,reason)
    {
    TextDrawHideForPlayer(playerid,RealClock);
    return 1;
    }


    public OnPlayerDeath(playerid, killerid, reason)
    {
    TextDrawHideForPlayer(playerid,RealClock);
    return 1;
    }


    public OnPlayerRequestClass(playerid, classid)
    {
    TextDrawHideForPlayer(playerid,RealClock);
    return 1;
    }

    das is ne uhr^^

    wen ich mich nicht teusche


    new realtime = 1;


    Der rest unter public OnGameModeInit()


    if(!realtime)
    {
    SetWorldTime(wtime);
    }




    if (realtime)
    {
    new tmphour;
    new tmpminute;
    new tmpsecond;
    gettime(tmphour, tmpminute, tmpsecond);
    FixHour(tmphour);
    tmphour = shifthour;
    SetWorldTime(tmphour);
    }


    if (realtime)
    {
    SetWorldTime(tmphour);
    }
    }
    }



    {
    print("\n--------------------------------------");
    print(" Stunt Game Mod by keleg_Kelso");
    print("--------------------------------------\n");
    return 1;
    }