08.02.2015, 01:41
No comeзo do GM:
Comando:
PHP код:
#define DIALOG_ADMINS 99
PHP код:
if(! strcmp ( cmdtext, "/admins" , true ))
{
SendClientMessage ( playerid ,0x00FF40AA , ".:: - Administradores Online - ::." );
new count = 0 ;
for(new i = 0 ; i < MAX_PLAYERS ; i ++)
{
if( IsPlayerConnected( i )){
if( admin[ i ]){
new str [256 ];
new pname [ 24];
GetPlayerName ( i , pname , 24 );
format ( file2 , sizeof( file2 ), PASTA_CONTAS , pname );
if( pAdmin[ i ] == 1){
format ( str, sizeof( str), "%s (%d) :: [Recruta - Level 1]\n" , pname ,i );
}
if( pAdmin[ i ] == 2){
format ( str, sizeof( str), "%s (%d) :: [Ajudante - Level 2]\n" , pname, i );
}
if( pAdmin[ i ] == 3){
format ( str, sizeof( str), "%s (%d) :: [Administrador - Level 3]\n" , pname , i );
}
if( pAdmin[ i ] == 4){
format ( str, sizeof( str), "%s (%d) :: [SuB_DONO - Level 4]\n" , pname ,i );
}
if( pAdmin[ i ] == 5){
format ( str, sizeof( str), "%s (%d) :: [Dono Oficial]\n" , pname , i);
}
ShowPlayerDialog (playerid, DIALOG_ADMINS, DIALOG_STYLE_MSGBOX, "Administradores Online no momento.", str , "Close" , "" ) ;
count ++;
}