20.03.2012, 01:56
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;