/members command
#1

I have a rpg server and i need a command /members that shows the online members of your factions and their rank, can someone help me ?
Reply
#2

Ehm.. Sure - Check your PM's
Reply
#3

I forgot to mention that the gamemode is a GF edit, so can someone help me ?
Reply
#4

Can you post the Member thing? Like

PlayerData[playerid][pMember] Or whatever it is.

Thanks!
Reply
#5

PlayerInfo[playerid][pMember] and PlayerInfo[playerid][pLeader]
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)