How to make a /members command
#1

I use ZCMD
I need to know how to make a /members command for factions and families...
Reply
#2

What script are you using? it's important to know what array or variable are you using for the player family.
Reply
#3

pawn Код:
COMMAND:members( playerid, params[ ] )
{
    for ( new i, p = GetMaxPlayers( ); i < p; i ++ )
    {
        if ( !IsPlayerConnected( playerid ) )
            continue;

        new iName[ 24 ], nameFormat[ 32 ], totalString[ 500 ] = "No one";
        if ( gTeam[ i ] == gTeam[ playerid ] )
        {
            GetPlayerName( playerid, iName, 24 );

            format( nameFormat, 32, "%s \n", nameFormat );

            strcat( totalString, nameFormat );
        }
    }

    ShowPlayerDialog( playerid, 1777, DIALOG_STYLE_LIST, "Gang members", totalString, "Okay", "Okay" );

    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)