How i Create Comma in money tab like a real life ?
#1

anyone can help me to create like this ?

Reply
#2

Textdraws I guess? With https://sampwiki.blast.hk/wiki/TextDrawSetOutline to get the black outline. And no I won't create the code for you. Textdraws are already too annoying for me.
Reply
#3

I create that for you using textdraw editor by zamoroth if you want to make your own textdraws easy later
- https://sampforum.blast.hk/showthread.php?tid=406833

pawn Код:
#include <a_samp>

new Text:Textdraw0;
new Text:Textdraw1;

public OnGameModeInit()
{
    Textdraw0 = TextDrawCreate(543.000000, 85.000000, ",");
    TextDrawBackgroundColor(Textdraw0, 255);
    TextDrawFont(Textdraw0, 1);
    TextDrawLetterSize(Textdraw0, 0.500000, 1.700000);
    TextDrawColor(Textdraw0, 560737023);
    TextDrawSetOutline(Textdraw0, 1);
    TextDrawSetProportional(Textdraw0, 1);
    TextDrawSetSelectable(Textdraw0, 0);

    Textdraw1 = TextDrawCreate(578.000000, 85.000000, ",");
    TextDrawBackgroundColor(Textdraw1, 255);
    TextDrawFont(Textdraw1, 1);
    TextDrawLetterSize(Textdraw1, 0.500000, 1.700000);
    TextDrawColor(Textdraw1, 560737023);
    TextDrawSetOutline(Textdraw1, 1);
    TextDrawSetProportional(Textdraw1, 1);
    TextDrawSetSelectable(Textdraw1, 0);

    for(new i; i < MAX_PLAYERS; i ++)
    {
        if(IsPlayerConnected(i))
        {
            TextDrawShowForPlayer(i, Textdraw0);
            TextDrawShowForPlayer(i, Textdraw1);
        }
    }
    return 1;
}

public OnGameModeExit()
{
    TextDrawHideForAll(Textdraw0);
    TextDrawDestroy(Textdraw0);
    TextDrawHideForAll(Textdraw1);
    TextDrawDestroy(Textdraw1);
    return 1;
}

public OnPlayerSpawn(playerid)
{
    TextDrawShowForPlayer(playerid, Textdraw0);
    TextDrawShowForPlayer(playerid, Textdraw1);
    return 1;
}
Reply
#4

Quote:
Originally Posted by Hansrutger
Посмотреть сообщение
Textdraws I guess? With https://sampwiki.blast.hk/wiki/TextDrawSetOutline to get the black outline. And no I won't create the code for you. Textdraws are already too annoying for me.
I Think no, because in original server. if we have a minus money. the comma is also red. i think 2 textdraw has ben splited and using some code to show if we have a minus money or no
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)