07.01.2017, 20:04
(
Последний раз редактировалось didimk157; 07.01.2017 в 21:33.
)
PHP код:
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;
}