/members Command
#4

PHP код:
dcmd_members(playeridparams[])
{
        new 
amount[2], string[200], shortstr[55], pname[24];
        
SendClientMessage(playerid0xFFFFFFFF"Group members online:");
        for(new 
i=0i<MAX_PLAYERSi++)
        {
                if(
IsPlayerConnected(i))
                {    
                        
amount[0] ++;
                        
amount[1] ++;
                        
GetPlayerName(ipname24);
                        if(
PlayerInfo[playerid][pLeader] != iformat(shortstrsizeof(shortstr), "%s(%d),"pnamex);
                        if(
PlayerInfo[playerid][pLeader] == iformat(shortstrsizeof(shortstr), "[LEADER] %s(%d),"pnamex);
                        if(
amount[1] == 1format(stringsizeof(string), "%s"shortstr);
                        if(
amount[1] != 1format(stringsizeof(string), "%s %s"stringshortstr);
                        if(
amount[0] == 6)
                        {
                           
strdel(stringstrlen(string)-1strlen(string));
                            
SendClientMessage(playerid0xFFFFFFFFstring);
                            
string "";
                            
amount[0] = 0;
                        }    
                }
        }
        
strdel(stringstrlen(string)-1strlen(string));
        if(
amount[0] != 0SendClientMessage(playerid0xFFFFFFFFstring);
        return 
1;

you're welcome
Reply


Messages In This Thread
/members Command - by NewbieTester - 21.02.2014, 10:09
Re: /members Command - by FilesMAker - 21.02.2014, 10:19
Re: /members Command - by Aerotactics - 21.02.2014, 10:21
Re: /members Command - by Vanter - 21.02.2014, 10:22
Re: /members Command - by Konstantinos - 21.02.2014, 10:23
Re: /members Command - by FilesMAker - 21.02.2014, 10:26
Re: /members Command - by Brandon_More - 21.02.2014, 11:02

Forum Jump:


Users browsing this thread: 1 Guest(s)