[PEDIDO] Contagem de Score. +rep
#9

Sу uma base U.U..

pawn Код:
// no inicio do gm
new Text:Textdraw500;
new score[MAX_PLAYERS];
// noOnGameModeInit

    Textdraw500 = TextDrawCreate(5.000, 343.000000, "Score:"); // mude as coordenadas pra onde quizer
    TextDrawBackgroundColor(Textdraw1, 255);
    TextDrawFont(Textdraw500, 3);
    TextDrawLetterSize(Textdraw500, 0.599999, 1.799999);
    TextDrawColor(Textdraw500, -16776961);
    TextDrawSetOutline(Textdraw500, 1);
    TextDrawSetProportional(Textdraw500, 1);
   
// em  OnGameModeExit

TextDrawHideForAll(Textdraw500);
TextDrawDestroy(Textdraw500);

//no onplayerupdat
new str[50]
format(str,sizeof(str),"Score: %i ",score[playerid]);
TextDrawSetString(Textdraw500, str);
TextDrawShowForPlayer(playerid, Textdraw500);

// se a score q se refere for pontos de morte:?
//no OnPlayerDeath
score[playerid] -= 1;
score[killerid] += 1;
Reply


Messages In This Thread
[PEDIDO] Contagem de Score. +rep - by Gustavo_z - 20.03.2012, 01:24
Re: [PEDIDO] Contagem de Score. +rep - by DarkScripter - 20.03.2012, 01:26
Re: [PEDIDO] Contagem de Score. +rep - by Gustavo_z - 20.03.2012, 01:43
Re: [PEDIDO] Contagem de Score. +rep - by histire - 20.03.2012, 01:45
Re: [PEDIDO] Contagem de Score. +rep - by Gustavo_z - 20.03.2012, 01:46
Re: [PEDIDO] Contagem de Score. +rep - by histire - 20.03.2012, 01:48
Re: [PEDIDO] Contagem de Score. +rep - by Gustavo_z - 20.03.2012, 01:49
Re: [PEDIDO] Contagem de Score. +rep - by BreakDriFT - 20.03.2012, 01:49
Re: [PEDIDO] Contagem de Score. +rep - by steeldark - 20.03.2012, 01:56
Re: [PEDIDO] Contagem de Score. +rep - by histire - 20.03.2012, 01:56

Forum Jump:


Users browsing this thread: 2 Guest(s)