22.09.2010, 23:18
I made a textdraws, that shows your stats, and stuff.. but it only seems to work with ID 0..
On top:
OnGameModeExit:
OnPlayerConnect:
OnPlayerDisconnect:
Thats it.. I don't see anything wrong...
Thanks.
On top:
pawn Код:
new Text:tBarra[6][MAX_PLAYERS];
pawn Код:
for(new x = 0; x < 6; x++)
{
foreach(Player, i)
{
TextDrawDestroy(tBarra[x][i]);
}
}
pawn Код:
//Barra abajo
tBarra[0][playerid] = TextDrawCreate(149.000000, 427.000000, "Clase:");
tBarra[1][playerid] = TextDrawCreate(539.000000, 427.000000, "Score:");
tBarra[2][playerid] = TextDrawCreate(262.000000, 427.000000, "Rango:");
tBarra[3][playerid] = TextDrawCreate(447.000000, 427.000000, "Muertes:");
tBarra[4][playerid] = TextDrawCreate(345.000000, 427.000000, "Matados:");
tBarra[5][playerid] = TextDrawCreate(3.000000, 427.000000, "Equipo:");
for(new x = 0; x < 6; x++)
{
TextDrawFont(tBarra[x][playerid], 1);
TextDrawLetterSize(tBarra[x][playerid], 0.350000, 1.400000);
TextDrawColor(tBarra[x][playerid], COLOR_WHITE);
TextDrawSetOutline(tBarra[x][playerid], 1);
}
for(new x = 0; x < 6; x++) TextDrawShowForPlayer(playerid, tBarra[x][playerid]);
pawn Код:
for(new x = 0; x < 6; x++) TextDrawDestroy(tBarra[x][playerid]);
Thanks.