Die Farbe vom Geld ändern?

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
  • Hier hast du ein Beispiel wie es ausschauen könnte.
    Expander öffnen um Bild zu sehen.


    Filterscript Code:

    #include <a_samp>


    new Text:Cash[MAX_PLAYERS];
    new Text:Dollar;
    new Check;



    public OnFilterScriptInit()
    {
    print(" _____________________________________________________________________________ ");
    print("| Colored Moneys |");
    print("| Created by Darky |");
    print("| ________________ |");
    print("| LOADED ! |");
    print("| |");
    print("|_____________________________________________________________________________|");
    return 1;
    }



    public OnFilterScriptExit()
    {
    print(" _____________________________________________________________________________ ");
    print("| |");
    print("| Colored Moneys |");
    print("| Created by Darky |");
    print("| ________________ |");
    print("| UNLOADED ! |");
    print("| |");
    print("|_____________________________________________________________________________|");
    KillTimer(Check);
    return 1;
    }



    public OnPlayerConnect(playerid)
    {
    Dollar = TextDrawCreate(499.000000, 78.000000, "~b~$");
    TextDrawBackgroundColor(Dollar, 255);
    TextDrawFont(Dollar, 3);
    TextDrawLetterSize(Dollar, 0.539999, 2.000000);
    TextDrawColor(Dollar, 945269247);
    TextDrawSetOutline(Dollar, 0);
    TextDrawSetProportional(Dollar, 1);
    TextDrawSetShadow(Dollar, 1);
    ////////////////////////////////////////////////////////////////////////////////
    Cash[playerid] = TextDrawCreate(511.500000, 78.000000, "00000000");
    TextDrawBackgroundColor(Cash[playerid], 255);
    TextDrawFont(Cash[playerid], 3);
    TextDrawLetterSize(Cash[playerid], 0.577999, 2.000000);
    TextDrawSetOutline(Cash[playerid], 1);
    TextDrawSetProportional(Cash[playerid], 1);
    TextDrawSetShadow(Cash[playerid], 1);
    ////////////////////////////////////////////////////////////////////////////////
    TextDrawShowForPlayer(playerid, Dollar);
    SetTimerEx("CheckMoney", 2000, true, "i", playerid);
    return 1;
    }
    ////////////////////////////////////////////////////////////////////////////////
    public OnPlayerDisconnect(playerid)
    {
    TextDrawHideForPlayer(playerid, Cash[playerid]);
    TextDrawHideForPlayer(playerid, Dollar);
    return 1;
    }
    ////////////////////////////////////////////////////////////////////////////////
    public OnPlayerUpdate(playerid)
    {
    SetTimerEx("CheckMoney", 2000, true, "i", playerid);
    return 1;
    }
    ////////////////////////////////////////////////////////////////////////////////
    forward CheckMoney(playerid);
    public CheckMoney(playerid)
    {
    new string[128];
    format(string, sizeof(string), "~w~%08d", GetPlayerMoney(playerid));
    TextDrawSetString(Cash[playerid], string);
    TextDrawShowForPlayer(playerid, Cash[playerid]);
    return 1;
    }
    ////////////////////////////////////////////////////////////////////////////////