05.03.2015, 20:41
(
Последний раз редактировалось Lуs; 05.03.2015 в 22:30.
)
To com um comando de admin, E queria adaptar ele para aparecer em Dialog, Nгo no chat, Tem como?
Код:
if( !strcmp( cmd, "/admins", true ) || - // Continuar aqiu { SendClientMessage( playerid, 0x96D742AA, "[Admin ] Membros staff online:" ); new a_d_m, m_d_r ; new g_r_t ; foreach(Player, i ) { if( aInfo[ i ][ Admin ] == 1 ) { if( aInfo[ i ][ Oculto ] == false ) { a_d_m ++; format( string, sizeof( string ), "{FF000D}Admin {FFFFFF}%s ( %d )", PlayerName( i ), i ); SendClientMessage( playerid, 0xFFFFFFAA, string ); } } if( aInfo[ i ][ Gerente ] == 1 ) { if( aInfo[ i ][ Oculto ] == false ) { g_r_t ++; format( string, sizeof( string ), "{00FF00}Gerente {FFFFFF}%s ( %d )", PlayerName( i ), i ); SendClientMessage( playerid, 0xFFFFFFAA, string ); } } if( aInfo[ i ][ Ajudante ] == 1 ) { //if( aInfo[ i ][ Oculto ] == false ) { format( string, sizeof( string ), "{00FF8C}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, "[Admin ] Nenhum(a) admin online no momento." ); if( m_d_r == 0 ) return SendClientMessage( playerid, COLOR_ERRO, "[Admin ] Nenhum(a) moderador(a) conectado no momento !" ); return 1; }