07.01.2017, 19:56
(
Последний раз редактировалось Lуs; 08.01.2017 в 13:56.
)
PHP код:
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;
}