/members Command
#7

pawn Код:
COMMAND:members(playerid)
{
    if(PlayerInfo[playerid][faction] != -1)
    {
        for(new i; i<MAX_PLAYERS; i++)
        {
            if(PlayerInfo[i][faction] != PlayerInfo[playerid][faction]) continue; // Breaks ID if someone isn't in your faction
            if(i == playerid) continue; // Breaks your own ID
            new Strings[250];
            format(Strings, sizeof(Strins), " - %s", PlayerName(i));
            SendClientMessage(playerid, COLOR_WHITE, Strings);
            return 1;
        }
    }
    else return SendClientMessage(playerid, "{ff0000}[ERROR]{ffffff} You cannot use this command");
}
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: 2 Guest(s)