10.09.2011, 14:32
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;
}
Hope it works and helps.