Problem with online administrators.
#1

Hey, I've got a command like /admins, but in-game it won't to show the current online admins.

PHP код:
    if (strcmp(cmd"/admins"true) == 0)
    {
        if(
IsPlayerConnected(playerid))
        {
            
SendClientMessage(playeridCOLOR_GREY"Admins Online:");
              for(new 
0PLAYERSi++)
            {
                if(
IsPlayerConnected(i))
                {
                    if(
PlayerInfo[playerid][pAdmin] == 0)
                    {
                        if(
PlayerInfo[i][pAdmin] >= && PlayerInfo[i][pAdmin] <= 5000)
                        {
                            new 
admtext[64];
                            if(
PlayerInfo[i][pAdmin] == 5000) { admtext "Server Developer"; }
                            else if(
PlayerInfo[i][pAdmin] == 1338) { admtext "Head Administrator"; }
                            else if(
PlayerInfo[i][pAdmin] == 3) { admtext "Administrator Level 3"; }
                            else if(
PlayerInfo[i][pAdmin] == 2)    { admtext "Administrator Level 2"; }
                            else if(
PlayerInfo[i][pAdmin] == 1) { admtext "Administrator Level 1"; }
                            else { 
admtext "Lead Administrator"; }
                            
GetPlayerName(isendernamesizeof(sendername));
                            if(
AdminDuty[i] == 0)
                            {
                                
format(stringsizeof(string), "(%s) %s (ID: %d) Adminduty: No",admtextGetPlayerNameEx(i), i);
                                
SendClientMessage(playeridCOLOR_GREYstring);
                            }
                            else
                            {
                                
format(stringsizeof(string), "(%s) %s (ID: %d) Adminduty: Yes",admtextGetPlayerNameEx(i), i);
                                
SendClientMessage(playeridCOLOR_GROVEstring);
                            }
                        }
                    }
                }
            }
        }
        return 
1;
    } 
+REP Promised for helpers.
Reply


Messages In This Thread
Problem with online administrators. - by DemME - 24.05.2014, 16:09
Re : Problem with online administrators. - by S4t3K - 24.05.2014, 16:13
Re: Problem with online administrators. - by Barnwell - 24.05.2014, 16:14
Re: Problem with online administrators. - by iFiras - 24.05.2014, 16:14
Re: Problem with online administrators. - by Jefff - 24.05.2014, 16:15
Re: Problem with online administrators. - by Jacksta21 - 24.05.2014, 16:16
Re: Problem with online administrators. - by DemME - 24.05.2014, 16:46

Forum Jump:


Users browsing this thread: 2 Guest(s)