[AJUDA]Fazer textdraw informando o score
#2

Fiz para vocк, coloque :


pawn Код:
//No Topo do GM:

new Text:ScoreTextDraw[MAX_PLAYERS];



//No OnGameModeInit:

SetTimer("AtualizarScore", 1000, true);
    for(new x = 0; x < MAX_PLAYERS; x++)
    {
        ScoreTextDraw[x] = TextDrawCreate(32.000000, 317.000000, "Score: 1000000");
        TextDrawBackgroundColor(ScoreTextDraw[x], 255);
        TextDrawFont(ScoreTextDraw[x], 1);
        TextDrawLetterSize(ScoreTextDraw[x], 0.440000, 1.500000);
        TextDrawColor(ScoreTextDraw[x], -1);
        TextDrawSetOutline(ScoreTextDraw[x], 0);
        TextDrawSetProportional(ScoreTextDraw[x], 1);
        TextDrawSetShadow(ScoreTextDraw[x], 1);
    }



//E, no Final do GM:

forward AtualizarScore();
public AtualizarScore()
{
    for(new x = 0, y = GetMaxPlayers(); x != y; x++)
    {
        if(!IsPlayerConnected(x)) continue;
        new STR[26];
        format(STR, 26, "~r~Score: ~w~%d", GetPlayerScore(x));
        TextDrawShowForPlayer(x, ScoreTextDraw[x]);
        TextDrawSetString(ScoreTextDraw[x], STR);
    }
    return true;
}


Espero ter ajudado .
Reply


Messages In This Thread
[AJUDA]Fazer textdraw informando o score - by Edu33 - 08.04.2012, 21:39
Re: [AJUDA]Fazer textdraw informando o score - by rjjj - 08.04.2012, 22:11
Re: [AJUDA]Fazer textdraw informando o score - by Edu33 - 08.04.2012, 22:13
Re: [AJUDA]Fazer textdraw informando o score - by Gustavo_z - 08.04.2012, 22:15
Re: [AJUDA]Fazer textdraw informando o score - by Edu33 - 08.04.2012, 22:17
Re: [AJUDA]Fazer textdraw informando o score - by Gustavo_z - 08.04.2012, 22:21
Re: [AJUDA]Fazer textdraw informando o score - by Edu33 - 08.04.2012, 22:23
Re: [AJUDA]Fazer textdraw informando o score - by Gustavo_z - 08.04.2012, 22:27
Re: [AJUDA]Fazer textdraw informando o score - by BreakDriFT - 08.04.2012, 22:31
Re: [AJUDA]Fazer textdraw informando o score - by Ricop522 - 08.04.2012, 22:36

Forum Jump:


Users browsing this thread: 1 Guest(s)