if( !strcmp( cmd, "/admins", true ))
{
SendClientMessage( playerid, 0x96D742AA, "» Membros da administraзгo disponнvel para te ajudar »" );
new
a_d_m, m_d_r, a_j_d, g_r_t
;
foreach(Player, i )
{
if( aInfo[ i ][ Admin ] == 1 )
{
if( aInfo[ i ][ Oculto ] == false )
{
a_d_m ++;
format( string, sizeof( string ), "{0000A0}Administrador(a) {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 ), "{15ff00}Staff {FFFFFF}%s ( %d )", PlayerName( i ), i );
SendClientMessage( playerid, 0xFFFFFFAA, string );
}
}
if( aInfo[ i ][ *******r ] == 1 )
{
if( aInfo[ i ][ Oculto ] == false )
{
g_r_t ++;
format( string, sizeof( string ), "{FF0000}*******r {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 ), "{00FF80}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 ), "{80FFFF}Moderador(a) {FFFFFF}%s ( %d )", PlayerName( i ), i );
SendClientMessage( playerid, 0xFFFFFFAA, string );
}
}
}
return 1;
}
if( !strcmp( cmd, "/admins", true ))
new
a_d_m, m_d_r, a_j_d, g_r_t
;
{
if( aInfo[ i ][ Admin ] == 1 )
{
if( aInfo[ i ][ Oculto ] == false )
{
a_d_m ++;
format( string, sizeof( string ), "{0000A0}Administrador(a) {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 ), "{15ff00}Staff {FFFFFF}%s ( %d )", PlayerName( i ), i );
SendClientMessage( playerid, 0xFFFFFFAA, string );
}
}
if( aInfo[ i ][ *******r ] == 1 )
{
if( aInfo[ i ][ Oculto ] == false )
{
g_r_t ++;
format( string, sizeof( string ), "{FF0000}*******r {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 ), "{00FF80}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 ), "{80FFFF}Moderador(a) {FFFFFF}%s ( %d )", PlayerName( i ), i );
SendClientMessage( playerid, 0xFFFFFFAA, string );
for(new i = 0; i <= HighestID; i ++)
Showplayerdialog(i, DIALOG_ADMINS,DIALOG_STYLE_MSGBOX, "Admins on-line agora", "Selecionar, "Cancelar");
}
}
}
return 1;
}
PHP код:
|
CODIGO AQUI