Online admins in dialog
#2

Код:
CMD:admins(playerid,params[])
{
    new A_String[ 150 ], count = 0, AdminPos[ 30 ];
	foreach(Player, i)
 	{
  		if( Bit4_Get( AdminLevel, i ) >= 1 || IsPlayerAdmin( i ) )
    	{
     		if(      Bit4_Get( AdminLevel, i ) == 1 ) AdminPos = ""#RED"Newbie Admin";
       		else if( Bit4_Get( AdminLevel, i ) == 2 ) AdminPos = ""#RED"Moderator";
         	else if( Bit4_Get( AdminLevel, i ) == 3 ) AdminPos = ""#RED"Administrator";
          	else if( Bit4_Get( AdminLevel, i ) == 4 ) AdminPos = ""#RED"Head Administrator";
           	else if( Bit4_Get( AdminLevel, i ) == 5 ) AdminPos = ""#RED"Server Owner";
           	else if( IsPlayerAdmin(        i )      ) AdminPos = ""#RED"RCON Admin";

            format( A_String, sizeof( A_String ),"%s"#GREEN"%s[ID:%d] "#YELLOW"- "#BLUE"%s \n", A_String, GetName( i ), i, AdminPos );
            ShowPlayerDialog( i, A_D_ON , 0, ""#WHITE"Online Admins", A_String, "OK", "" );
            count++;
          }
 		else if( count == 0 )
        {
            ShowPlayerDialog( i, A_D_ON, 0, "Admins Online", ""WHITE"No Admins Online!", "OK", "" );
        }
	}
    return 1;
}
Change admin variables to make compatible with your script
Reply


Messages In This Thread
Online admins in dialog - by BGMike - 02.07.2012, 16:52
Re: Online admins in dialog - by rVar - 02.07.2012, 16:54
Re: Online admins in dialog - by Yashas - 02.07.2012, 16:55
Re: Online admins in dialog - by BGMike - 02.07.2012, 18:16
Re: Online admins in dialog - by Universal - 02.07.2012, 18:35
Re: Online admins in dialog - by BGMike - 02.07.2012, 19:21
Re: Online admins in dialog - by Universal - 02.07.2012, 19:43
Re: Online admins in dialog - by BGMike - 02.07.2012, 20:08
Re: Online admins in dialog - by BGMike - 03.07.2012, 11:39

Forum Jump:


Users browsing this thread: 1 Guest(s)