[Ajuda] Score em Texdraw
#3

pawn Код:
// No Inicio
new Text:Textdraw2 [ MAX_PLAYERS ] ;

// OnGameModeInit
for(new i; i < MAX_PLAYERS; i++)
{
    Textdraw2[i] = TextDrawCreate(561.000000, 151.000000, " ");
    TextDrawBackgroundColor(Textdraw2[i], 255);
    TextDrawFont(Textdraw2[i], 1);
    TextDrawLetterSize(Textdraw2[i], 0.500000, 1.000000);
    TextDrawColor(Textdraw2[i], -1);
    TextDrawSetOutline(Textdraw2[i], 0);
    TextDrawSetProportional(Textdraw2[i], 1);
    TextDrawSetShadow(Textdraw2[i], 1);
}

// Aonda mostra
    new Str[10];
    format(Str,sizeof(Str),"%d", Variavel[playerid]);
    TextDrawSetString(Textdraw2[playerid], Str2);
    TextDrawShowForPlayer(playerid, Textdraw2[playerid]);

    new Str2[10];
    format(Str2,sizeof(Str2),"%d", GetPlayerScore(playerid));
    TextDrawSetString(Textdraw2[playerid], Str2);
    TextDrawShowForPlayer(playerid, Textdraw2[playerid]);
Reply


Messages In This Thread
Score em Texdraw - by Mteck - 28.01.2013, 20:58
Re: Score em Texdraw - by mau.tito - 28.01.2013, 21:00
Re: Score em Texdraw - by Maklister - 28.01.2013, 21:02
Re: Score em Texdraw - by Mteck - 28.01.2013, 21:07
Re: Score em Texdraw - by @LucasVinicius - 28.01.2013, 23:56
Re: Score em Texdraw - by Maklister - 29.01.2013, 00:07
Re: Score em Texdraw - by @LucasVinicius - 29.01.2013, 00:12
Re: Score em Texdraw - by Mteck - 29.01.2013, 01:22
Re: Score em Texdraw - by Maklister - 29.01.2013, 01:51
Re: Score em Texdraw - by Mteck - 29.01.2013, 07:26

Forum Jump:


Users browsing this thread: 1 Guest(s)