16.03.2018, 15:46
Quero colocar o comando / admins no dialog.
[cуdigo] valor [/ cуdigo]if( !strcmp( cmd, "/admins", true ) || !strcmp( cmd, "/mods", true ) || !strcmp( cmd, "/administradores", true ) || !strcmp( cmd, "/moderadores", true ))
{
SendClientMessage( playerid, 0x96D742AA, "| INFO | Admins Online:" );
new
a_d_m, m_d_r
;
foreach(Player, i )
{
if( aInfo[ i ][ Admin ] == 1 )
{
if( aInfo[ i ][ Oculto ] == false )
{
a_d_m ++;
format( string, sizeof( string ), "{0000FF}Administrador / {3EB716}Staff {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 ), "{F98900}Moderador(a) {FFFFFF}%s ( %d )", PlayerName( i ), i );
SendClientMessage( playerid, 0xFFFFFFAA, string );
}
}
if( aInfo[ i ][ Ajudante ] == 1 )
{
if( aInfo[ i ][ Oculto ] == false )
{
a_d_m ++;
format( string, sizeof( string ), "{F2F605}Ajudante {FFFFFF}%s ( %d )", PlayerName( i ), i );
SendClientMessage( playerid, 0xFFFFFFAA, string );
}
}
}
if( a_d_m == 0 ) return SendClientMessage( playerid, COLOR_ERRO, "[ BCR Admin ] Nenhum Admin online no momento !" );
[cуdigo] valor [/ cуdigo]if( !strcmp( cmd, "/admins", true ) || !strcmp( cmd, "/mods", true ) || !strcmp( cmd, "/administradores", true ) || !strcmp( cmd, "/moderadores", true ))
{
SendClientMessage( playerid, 0x96D742AA, "| INFO | Admins Online:" );
new
a_d_m, m_d_r
;
foreach(Player, i )
{
if( aInfo[ i ][ Admin ] == 1 )
{
if( aInfo[ i ][ Oculto ] == false )
{
a_d_m ++;
format( string, sizeof( string ), "{0000FF}Administrador / {3EB716}Staff {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 ), "{F98900}Moderador(a) {FFFFFF}%s ( %d )", PlayerName( i ), i );
SendClientMessage( playerid, 0xFFFFFFAA, string );
}
}
if( aInfo[ i ][ Ajudante ] == 1 )
{
if( aInfo[ i ][ Oculto ] == false )
{
a_d_m ++;
format( string, sizeof( string ), "{F2F605}Ajudante {FFFFFF}%s ( %d )", PlayerName( i ), i );
SendClientMessage( playerid, 0xFFFFFFAA, string );
}
}
}
if( a_d_m == 0 ) return SendClientMessage( playerid, COLOR_ERRO, "[ BCR Admin ] Nenhum Admin online no momento !" );