[AJUDA]Contator de Players.
#9

PHP код:
No Topo Do Seu Gamemode:
new 
Text:OnlinE;
Na public OnGameModeInit:
OnlinE TextDrawCreate(507.000000436.000000"(%d/%d) ~w~Jogadores~n");
TextDrawBackgroundColor(OnlinE255);
TextDrawFont(OnlinE3);
TextDrawLetterSize(OnlinE0.5000001.000000);
TextDrawColor(OnlinE, -1);
TextDrawSetOutline(OnlinE0);
TextDrawSetProportional(OnlinE1);
TextDrawSetShadow(OnlinE1);
for(new 
iMAX_PLAYERS++)
{
TextDrawShowForPlayer(i,OnlinE);
}
}
e Criando 1 Nova Public:
public 
PlayerOn(playerid)
{
new 
Playersnoservidor 0;
new 
string[128];
for(new 
0GetMaxPlayers(); i++)
{
if (
IsPlayerConnected(i))
{
Playersnoservidor++;
}
}
format(string,sizeof(string),"%i ~w~Jogadores~n"Playersnoservidor);
TextDrawSetString(OnlinEstring);

Usso Isso No Meu Server, e Funciona Perfeito
Lembrando Que Coloquei Seus TextDrawns
Espero Ter Ajudado!
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: 1 Guest(s)