28.01.2013, 21:02
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]);