/members command
#6

Then do this:

pawn Код:
command(members, playerid, params[])
{
    new string[256];//It will add on to the string each time it finds a member, so you need a big-ish string.
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(PlayerInfo[playerid][pMember] == PlayerInfo[i][pMember])
        {
            format(string, sizeof(string), "%s\n%s", string, pName(i));
        }
    }
    ShowPlayerDialog(playerid, 9999, DIALOG_STYLE_LIST, "Member(s) online", string, "OK", "");
    return 1;
}
Reply


Messages In This Thread
/members command - by trulis - 26.06.2012, 09:00
Re: /members command - by -CaRRoT - 26.06.2012, 09:19
Re: /members command - by trulis - 26.06.2012, 18:49
Re: /members command - by iGetty - 26.06.2012, 18:54
Re: /members command - by trulis - 26.06.2012, 19:48
Re: /members command - by iGetty - 26.06.2012, 20:14

Forum Jump:


Users browsing this thread: 1 Guest(s)