[Pedido] Sistema de player online
#2

Код:
new Text:ONLINE;

ONLINE = TextDrawCreate(543.000000, 436.000000, "Online:");
TextDrawFont(ONLINE, 2);
TextDrawLetterSize(ONLINE, 0.2, 1.0);
TextDrawColor(ONLINE, 0xFFFFFFFF);
TextDrawSetOutline(ONLINE, 1);
TextDrawAlignment(ONLINE, 2);
TextDrawBackgroundColor(ONLINE, 0x000000AA);
PHP код:
public OnPlayerSpawn(playerid)
{
    
TextDrawHideForPlayer(playeridONLINE); 
PHP код:
SetTimer("JogadoresOnline"1000true); 
PHP код:
forward JogadoresOnline();
public 
JogadoresOnline()
{
    new 
Players, Var[20];
    for(new 
0MAX_PLAYERS++)
    {
        if(
IsPlayerConnected(i)) Players++;
    }
    
format(Var,sizeof(Var),"Online: %d",Players,GetMaxPlayers());
    
TextDrawSetString(ONLINE, Var);

Reply


Messages In This Thread
Sistema de player online - by Franklin0180 - 24.03.2017, 16:16
Re: Sistema de player online - by JhefTFJ - 24.03.2017, 17:12
Re: Sistema de player online - by G4M30V3R - 24.03.2017, 18:35
Re: Sistema de player online - by Franklin0180 - 25.03.2017, 02:17
Re: Sistema de player online - by vPunisheR - 25.03.2017, 02:23
Re: Sistema de player online - by Franklin0180 - 25.03.2017, 02:56
Re: Sistema de player online - by vPunisheR - 25.03.2017, 03:19
Re: Sistema de player online - by PowerEvolve - 25.03.2017, 04:06
Re: Sistema de player online - by vPunisheR - 25.03.2017, 14:21
Re: Sistema de player online - by G4M30V3R - 28.03.2017, 20:49

Forum Jump:


Users browsing this thread: 1 Guest(s)