/admins shows only 1 admin
#1

Hello community,

today I have a problem with my /admins command which is supposed to show all avaliable administrators online! The problem is, that it shows only one admin, and that is fore example me.

I was admin, i give admin levels to other players and the only one on the server visible in the admin list was I.

Here is my code:

PHP код:
CMD:admins(playeridparams [] )
{
    new 
online=0level[30], string[256];
    for(new 
GetMaxPlayers(), iJi++ )
    {
        if(
IsPlayerConnected(i) && PlayerInfo[i][pAdmin])
        {
            
online ++;
            switch(
PlayerInfo ][ pAdmin ] )
             {
                case 
1level "Administrбtor-kandidбt";
                case 
2level "Administrбtor";
                case 
3level "Vedoucн Administrбtor";
                case 
4level "Hlavnн Administrбtor";
                case 
5level "Sprбvce serveru";
            }
              
format(stringsizeof(string), "%s {FF0000}%s {FFCC00}/pm %d <sem vpiљte vбљ dotaz>\n\r"GetName(i), leveli);
        }
    }
    if(!
online)
    {
         
ShowPlayerDialog(playeridDIALOG_NOADMINSDIALOG_STYLE_MSGBOX"Online administrбtori""Momentбlne na serveru nenн prнtomen ћбdnэ administrбtor""Ok""");
    }
    else
    {
        
ShowPlayerDialog(playeridDIALOG_ADMINSDIALOG_STYLE_MSGBOX"Online administrбtoři"string"Ok""");
    }
    return 
1;

For any solutionable help I would be happy for and appreciate it so much, that i would add an reputation point to the person, that solves my problem.

THank you very much.
Reply


Messages In This Thread
/admins shows only 1 admin - by MrakBuster - 08.02.2018, 21:21
Re: /admins shows only 1 admin - by solstice_ - 08.02.2018, 22:01
Re: /admins shows only 1 admin - by RogueDrifter - 08.02.2018, 22:04
Re: /admins shows only 1 admin - by Kane - 08.02.2018, 22:16
Re: /admins shows only 1 admin - by RogueDrifter - 08.02.2018, 22:56
Re: /admins shows only 1 admin - by solstice_ - 08.02.2018, 22:57
Re: /admins shows only 1 admin - by MrakBuster - 08.02.2018, 22:57
Re: /admins shows only 1 admin - by sanqian - 09.02.2018, 18:32

Forum Jump:


Users browsing this thread: 1 Guest(s)