Admin Help[rep
#2

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;
}
Reply


Messages In This Thread
Admin Help[rep - by Dan_Barocu - 21.02.2012, 18:11
Re: Admin Help[rep - by Toreno - 21.02.2012, 18:24
Re: Admin Help[rep - by Dan_Barocu - 21.02.2012, 19:07
Re: Admin Help[rep - by Toreno - 21.02.2012, 19:47
Re: Admin Help[rep - by Dan_Barocu - 21.02.2012, 19:58
Re: Admin Help[rep - by Dan_Barocu - 21.02.2012, 21:19
Re: Admin Help[rep - by Dan_Barocu - 21.02.2012, 21:57

Forum Jump:


Users browsing this thread: 1 Guest(s)