[Ajuda] Players on na textdraw ?
#5

Cria um textdraw com o textdraw creator do Zamaroth.
O textdraw pode ser "Players Online: 00"
PHP код:
//No topo do GM
new PlayersOnlinetextdrawstr;
//OnGameModeInit
"Tu vai colocar o textdraw aqui dentro"
//OnPlayerConnect
PlayersOnline ++;
format(textdrawstrsizeof(textdrawstr), "Players Online: %02i"PlayersOnline);
TextDrawSetString(Text:TextidPlayersOnline);
for(new 
iMAX_PLAYERSi++)
{
if(
IsPlayerConnected(i))
{
TextDrawShowForPlayer(iText:Textid); // Atualizar o TextDraw
}
}
//OnPlayerDisconnect
PlayersOnline ++;
format(textdrawstrsizeof(textdrawstr), "Players Online: %02i"PlayersOnline);
TextDrawSetString(Text:TextidPlayersOnline);
for(new 
iMAX_PLAYERSi++)
{
if(
IsPlayerConnected(i))
{
TextDrawShowForPlayer(iText:Textid); // Atualizar o TextDraw
}

Creio que seja isso...
Reply


Messages In This Thread
Players on na textdraw ? - by rodrigooo - 07.11.2012, 20:01
Re: Players on na textdraw ? - by Joao Pedro - 07.11.2012, 20:04
Re: Players on na textdraw ? - by Sergiinhonike - 07.11.2012, 20:07
Re: Players on na textdraw ? - by rodrigooo - 07.11.2012, 20:18
Re: Players on na textdraw ? - by Sergiinhonike - 07.11.2012, 20:31
Re: Players on na textdraw ? - by Math3us - 07.11.2012, 20:34
Re: Players on na textdraw ? - by Sergiinhonike - 07.11.2012, 20:38
Re: Players on na textdraw ? - by Math3us - 07.11.2012, 20:40
Re: Players on na textdraw ? - by Sky™ - 07.11.2012, 22:00
Re: Players on na textdraw ? - by LendaDaMorte - 24.06.2013, 03:39

Forum Jump:


Users browsing this thread: 1 Guest(s)