dialog help/
#2

pawn Code:
COMMAND:members( playerid, params[ ] )
{
    foreach (Player, i)
    {
        if ( gTeam[ i ] == gTeam[ playerid ] )
        {
            new name[ 24 ] = "No one";
            if ( i != playerid ) {
            GetPlayerName( i, 24 ); } new output[ 64 ], totalstr[ 1024 ]; }
            format( output, 64, "{00FF00}%s\n", name );
            strcat( totalstr, output );
        }
    }
 
    ShowPlayerDialog( playerid, 1337, DIALOG_STYLE_MSGBOX, "ONLINE MEMBERS", totalstr, "okay", "" );

    return 1;
}
p.s.: this one i created is without offline members.

Hope it works and helps.
Reply


Messages In This Thread
dialog help/ - by iGetty - 10.09.2011, 14:17
Re: dialog help/ - by Basicz - 10.09.2011, 14:32
Re: dialog help/ - by iGetty - 10.09.2011, 14:36

Forum Jump:


Users browsing this thread: 1 Guest(s)