Posts: 16
Threads: 8
Joined: Aug 2011
Reputation:
0
Olб gostaria que alguem me ajudase a por aquele negocio que fica no servidor que mostra o tanto de player,sem precisar apertar TAB.
EX: 30/100 players
ai fica no canto da tela.
Posts: 1,197
Threads: 85
Joined: Jan 2011
Feito!
Topo do GM:
PHP код:
new ponline = 0;
new TotalSlots;
new Text:PlayersON;
new atualizarplayers;
OnGameModeInit:
PHP код:
atualizarplayers = SetTimer("AttPlayersON",1500,1);// Settimer de atualizar os Players ONLINE
E coloque isso tambem no OnGameMOdeInit:
PHP код:
PlayersON = TextDrawCreate(504.000000, 398.000000, "Players On: --/--");
TextDrawBackgroundColor(PlayersON, 255);
TextDrawFont(PlayersON, 1);
TextDrawLetterSize(PlayersON, 0.300000, 1.499999);
TextDrawColor(PlayersON, 16711935);
TextDrawSetOutline(PlayersON, 1);
TextDrawSetProportional(PlayersON, 1);
OnGameModeExit:
PHP код:
KillTimer(atualizarplayers);
Final do GM:
PHP код:
forward AttPlayersON(playerid);
public AttPlayersON(playerid)
{
for(new dj = 0; dj < MAX_PLAYERS; dj++)
{
format(String, 30, "Players On: %d/%d", ponline, TotalSlots);
TextDrawSetString(PlayersON, String);
TextDrawShowForPlayer(playerid, PlayersON);
}
return 1;
}
Pronto, tenho que sair que a fachineira vai limpar aqui agora, se tiver errado eu arrumo jajб!