Score system
#1

Hello guys,

i made a timer giving you 1 score in 1 minute, and its ok but I want to make textdraw like money textdraw, just under it (and in other color), so it can show my score, and updating when my score updating,

so, if anyone can make it.. tnx anyways
Reply
#2

pawn Код:
new score;
score = GetPlayerScore(playerid);
textdrawsetstring(textdrawid,score);
that should get you started.
Reply
#3

but can you make me textdraw like money just under it ? i cant make it :S
Reply
#4

ok give me some time going to make it.
Reply
#5

ok man tnx <3
Reply
#6

pawn Код:
new Text:Textdraw0;

public OnFilterScriptInit()
{

    Textdraw0 = TextDrawCreate(500.000000, 100.000000, "Score: 0");
    TextDrawBackgroundColor(Textdraw0, 255);
    TextDrawFont(Textdraw0, 1);
    TextDrawLetterSize(Textdraw0, 0.400000, 2.000000);
    TextDrawColor(Textdraw0, -1);
    TextDrawSetOutline(Textdraw0, 0);
    TextDrawSetProportional(Textdraw0, 1);
    TextDrawSetShadow(Textdraw0, 1);


    return 1;
}

public OnPlayerUpdate(playerid)
{
    new score;
    score = GetPlayerScore(playerid);
    TextdrawSetString(Textdraw0,"Score ~r~ %s" , score);
    return 1;
}
Reply
#7

sry u dont understand me, i want textdraw like money textdraw, like this textdraw under HP: http://i53.tinypic.com/o0ze61.png
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)