21.02.2012, 18:24
(
Последний раз редактировалось Toreno; 21.02.2012 в 19:48.
)
Try this.
pawn Код:
if( !strcmp( cmd, "/admins", true ) )
{
new
a_string[ 128 ],
b_string[ 1000 ]
;
for( new i; i < MAX_PLAYERS; i++ )
{
if( !IsPlayerConnected( i ) )
continue;
if( PlayerInfo[ i ][ pAdmin ] > 0 )
{
GetPlayerName( i, sendername, 24 );
format( a_string, 128, "{ACFF05}Admins {FFFFFF}-- {E60000}%s\n", sendername );
strcat(b_string, a_string);
}
}
ShowPlayerDialog( playerid, 1, DIALOG_STYLE_MSGBOX, "{278227}Admins Online", b_string, "Close", "" );
return 1;
}