Beiträge von Silverdark

In 10 Minuten startet der nächtliche Backupvorgang! Es kann währenddessen (ca. 10 Minuten) zu Einschränkungen bei der Nutzung des Forums kommen
Weitere Infos findet ihr im Thema Backup des Forums


    #include <a_samp>


    // This is a comment
    // uncomment the line below if you want to write a filterscript


    #ifend


    public OnGameModeInit()
    {
    // Don't use these lines if it's a filterscript
    SetGameModeText("Stunt Script");
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    print ("\n----------------------------------");
    print (" Stunt Game Mod by Keleg_Kelso ");
    print ("----------------------------------\n");
    return 1;
    }

    Habs mit nem FS gemacht:


    //On top of script:
    new Text:Textdraw0;
    new Text:Textdraw1;

    //In OnGameModeInit or any other place, we procced to create our textdraw:
    Textdraw0 = TextDrawCreate(555.000000,58.000000,"Leben");
    Textdraw1 = TextDrawCreate(432.000000,80.000000,"Eruo");
    TextDrawAlignment(Textdraw0,0);
    TextDrawAlignment(Textdraw1,0);
    TextDrawBackgroundColor(Textdraw0,0x000000ff);
    TextDrawBackgroundColor(Textdraw1,0x000000ff);
    TextDrawFont(Textdraw0,3);
    TextDrawLetterSize(Textdraw0,0.399999,0.799999);
    TextDrawFont(Textdraw1,3);
    TextDrawLetterSize(Textdraw1,1.000000,1.800000);
    TextDrawColor(Textdraw0,0xffffffff);
    TextDrawColor(Textdraw1,0x00ff0099);
    TextDrawSetOutline(Textdraw0,1);
    TextDrawSetOutline(Textdraw1,1);
    TextDrawSetProportional(Textdraw0,1);
    TextDrawSetProportional(Textdraw1,1);
    TextDrawSetShadow(Textdraw0,1);
    TextDrawSetShadow(Textdraw1,1);

    //You can now use TextDrawShowForPlayer(-ForAll), TextDrawHideForPlayer(-ForAll) and
    //TextDrawDestroy functions to show, hide, and destroy the textdraw.

    Ganz oben
    forward copgeld();
    new coptimer;
    OnGamemodeInit
    SetTimer("copgeld",60000,1);
    OnGamemodeExit
    Killtimer(coptimer);
    eigenes Public ganz unten
    public copgeld()
    {
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(PlayerInfo[i][pLeader] == 1 || PlayerInfo[i][pMember] == 1)
    {
    GivePlayerMoney(i,3);
    }
    }
    }

    if(strcmp(cmdtext, "/settime", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp)) {
    SendClientMessage(playerid, COLOR_WHITE,"Benutze: /settime [Uhrzeit]");
    return 1;
    }
    new Time = strval(tmp);
    if(Time < 0 || Time > 24) { SendClientMessage(playerid, COLOR_GREY, " Wähle eine Nummer zwischen 0 und 24 !"); return 1; }
    format(string, sizeof(string), "* Du hast die Zeit auf %d gesetzt.", Time);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    SetWorldTime(Time);

    }
    return 1;
    }

    Wenn du kein DCMD hast:
    #define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1