[Ajuda] Transformando cуdigo
#1

Olб internautas

O que quero saber й.. o que preciso fazer nesse cуdigo:
pawn Код:
if( !strcmp( cmd, "/admins", true ) || !strcmp( cmd, "/mods", true ) || !strcmp( cmd, "/administradores", true ) || !strcmp( cmd, "/moderadores", true ))
    {

    SendClientMessage( playerid, 0x96D742AA, "| L.W Admin | Membros da Staff online:" );
    new
    a_d_m, m_d_r, a_j_d
    ;
    foreach(Player, i )
    {

        if( aInfo[ i ][ Admin ] == 1 )
        {

            if( aInfo[ i ][ Oculto ] == false )
            {

                a_d_m ++;
                format( string, sizeof( string ), "{FF0000}Admin {FFFFFF}%s ( %d )", PlayerName( i ), i );
                SendClientMessage( playerid, 0xFFFFFFAA, string );
            }
        }
        if( aInfo[ i ][ Ajudante ] == 1 )
        {

            if( aInfo[ i ][ Oculto ] == false )
            {

                a_j_d ++;
                format( string, sizeof( string ), "{5CFFAB}Ajudante {FFFFFF}%s ( %d )", PlayerName( i ), i );
                SendClientMessage( playerid, 0xFFFFFFAA, string );
            }
        }
        if( aInfo[ i ][ Moderador ] == 1 )
        {

            if( aInfo[ i ][ Oculto ] == false )
            {

                m_d_r ++;
                format( string, sizeof( string ), "{66CCFF}Moderador(a) {FFFFFF}%s ( %d )", PlayerName( i ), i );
                SendClientMessage( playerid, 0xFFFFFFAA, string );
            }
        }
    }
    if( a_d_m == 0 ) return SendClientMessage( playerid, COLOR_ERRO, "| L.W Admin | Nenhum administrador conectado no momento !" );
    if( m_d_r == 0 ) return SendClientMessage( playerid, COLOR_ERRO, "| L.W Admin | Nenhum moderador conectado no momento !" );
    if( a_j_d == 0 ) return SendClientMessage( playerid, COLOR_ERRO, "| L.W Admin | Nenhum Ajudante conectado no momento !" );
    return 1;
}
Pra ele ficar assim:


OBS : Quando tiver algum online, apareзer tipo assim na caixinha :

________________________________________________

Ajudante: [L.W]Forum
Administrador: [L.W]Samp
Staff: [L.W]Jogar
________________________________________________

Isso й possнvel ?
Reply


Messages In This Thread
Transformando cуdigo - by Alwe - 06.10.2014, 22:13
Re: Transformando cуdigo - by MultiKill - 06.10.2014, 22:49

Forum Jump:


Users browsing this thread: 1 Guest(s)