24.08.2011, 17:01
Feito!
Topo do GM:
OnGameModeInit:
E coloque isso tambem no OnGameMOdeInit:
OnGameModeExit:
Final do GM:
Pronto, tenho que sair que a fachineira vai limpar aqui agora, se tiver errado eu arrumo jajб!
Topo do GM:
PHP код:
new ponline = 0;
new TotalSlots;
new Text:PlayersON;
new atualizarplayers;
PHP код:
atualizarplayers = SetTimer("AttPlayersON",1500,1);// Settimer de atualizar os Players ONLINE
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);
PHP код:
KillTimer(atualizarplayers);
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;
}