08.04.2012, 22:11
Fiz para vocк, coloque
:
Espero ter ajudado
.
: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
.
