[AJUDA]Contator de Players.
#10

Quote:

On‌linE = TextDrawCreate(507.000000, 436.000000, "(%d/%d) ~w~Jogadores~n");
TextDrawBackgroundColor(OnlinE, 255);
TextDrawFont(OnlinE, 3);
TextDrawLetterSize(OnlinE, 0.500000, 1.000000);
TextDrawColor(OnlinE, -1);
TextDrawSetOutline(OnlinE, 0);
TextDrawSetProportional(OnlinE, 1);
TextDrawSetShadow(OnlinE, 1);
for(new i; i < MAX_PLAYERS; i ++)
{
TextDrawShowForPlayer(i,OnlinE);
}
}

e Criando 1 Nova Public:

public PlayerOn(playerid)
{
new Playersnoservidor = 0;
new string[128];
for(new i = 0; i < GetMaxPlayers(); i++)
{
if (IsPlayerConnected(i))
{
Playersnoservidor++;
}
}
format(string,sizeof(string),"%i ~w~Jogadores~n", Playersnoservidor);
TextDrawSetString(OnlinE, string);
}

isso й um contador de visitas nao de player online pq tem qeu por um em
OnPlayerDisconnect;
Playersnoservidor--; Para que quando sairem do server ele diminuir uma pessoa online.
Reply


Messages In This Thread
[AJUDA]Contator de Players. - by .CrazZy._.[De] - 11.10.2011, 20:03
Re: [AJUDA]Contator de Players. - by [O.z]Caroline - 11.10.2011, 20:10
Re: [AJUDA]Contator de Players. - by Pharrel - 11.10.2011, 20:14
Re: [AJUDA]Contator de Players. - by .CrazZy._.[De] - 11.10.2011, 20:25
Re: [AJUDA]Contator de Players. - by Lipe_Stronda - 11.10.2011, 23:24
Re: [AJUDA]Contator de Players. - by Pharrel - 12.10.2011, 05:24
Re: [AJUDA]Contator de Players. - by Lipe_Stronda - 12.10.2011, 11:54
Re: [AJUDA]Contator de Players. - by Josma_cmd - 12.10.2011, 11:59
Respuesta: [AJUDA]Contator de Players. - by [Red]Maninho - 12.10.2011, 12:02
Re: [AJUDA]Contator de Players. - by Kratos_xD - 14.06.2012, 16:45

Forum Jump:


Users browsing this thread: 2 Guest(s)