[AJUDA]Comando /tcps
#2

PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
    if(!
strcmp(cmdtext"/tcps"true))
    {
        
SendClientMessage(playeridCOLOR_RED"[    MEMBRO DO TCP ONLINE    ]");
        new 
count=0;
        for(new 
i=0i<MAX_PLAYERSi++)
        {
            if(
logged[i] == 1)
            {
                if(
PlayerInfo[i][TCP] >= 1)
                {
                    new 
cargo[20];
                    if(
PlayerInfo[i][TCP] == 1cargo "Fogueteiro";
                    if(
PlayerInfo[i][TCP] == 2cargo "Vapor";
                    if(
PlayerInfo[i][TCP] == 3cargo "Traficante";
                    if(
PlayerInfo[i][TCP] == 4cargo "Gerente";
                    if(
PlayerInfo[i][TCP] == 5cargo "Dono do Morro";
                    new 
str[256];
                    new 
pname[24];
                    
GetPlayerName(ipname24);
                    
format(str256"%s - %s",cargopname );
                    
SendClientMessage(playeridCOLOR_CYANstr);
                    
count++;
                }
            }
        }
        if(
count == 0) { SendClientMessage(playeridCOLOR_CYAN"Nгo tem nenhum TCP on-line agora!"); }
        return 
1;
    }
    return 
0;

Reply


Messages In This Thread
[AJUDA]Comando /tcps - by Nake01 - 25.06.2011, 12:35
Re: [AJUDA]Comando /tcps - by Shadoww5 - 25.06.2011, 12:51
Re: [AJUDA]Comando /tcps - by Nake01 - 25.06.2011, 13:33
Re: [AJUDA]Comando /tcps - by Shadoww5 - 25.06.2011, 13:38
Re: [AJUDA]Comando /tcps - by Nake01 - 25.06.2011, 14:45
Re: [AJUDA]Comando /tcps - by Ricop522 - 25.06.2011, 19:11
Re: [AJUDA]Comando /tcps - by Shadoww5 - 25.06.2011, 19:36
Re: [AJUDA]Comando /tcps - by steki. - 25.06.2011, 21:06
Re: [AJUDA]Comando /tcps - by Nake01 - 25.06.2011, 21:37
Re: [AJUDA]Comando /tcps - by Shadoww5 - 25.06.2011, 22:39

Forum Jump:


Users browsing this thread: 3 Guest(s)