Command don't work
#5

Quote:
Originally Posted by The__
Посмотреть сообщение
Try this? I didn't test it.
pawn Код:
CMD:admins(playerid, params[])
{
    if(PlayerInfo[playerid][LoggedIn]) return SendClientMessage(playerid, COLOR_GREY, "NOTLOGGED");
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "----------| Online Admins |----------");
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            new aname[48], atitle[48];
            if(PlayerInfo[i][Level] == 7) { atitle = "Owner"; }
            else if(PlayerInfo[i][Level] == 6) { atitle = "Moderator"; }
            else if(PlayerInfo[i][Level] == 5) { atitle = "Lead Administrator"; }
            else if(PlayerInfo[i][Level] == 4) { atitle = "Senior Administrator"; }
            else if(PlayerInfo[i][Level] == 3) { atitle = "Administrator"; }
            else if(PlayerInfo[i][Level] == 2) { atitle = "Junior Administrator"; }
            else if(PlayerInfo[i][Level] == 1) { atitle = "Trial Administrator"; }
            GetPlayerName(i, aname, sizeof(aname));
            if(AdminDuty[i] == 1)
            {
                format(string, sizeof(string), "[*] [%s] %s (Admin duty: No)", atitle, aname);
                SendClientMessage(playerid, COLOR_LBLUE, string);
            }
            else
            {
                format(string, sizeof(string), "[*] [%s] %s (Admin duty: Yes)", atitle, aname);
                SendClientMessage(playerid, COLOR_LBLUE, string);*/
                return 1;
            }
        }
    }
    return 1;
}
All same.. Btw this:
pawn Код:
if(AdminDuty[i] == 1)
            {
                format(string, sizeof(string), "[*] [%s] %s (Admin duty: No)", atitle, aname);
                SendClientMessage(playerid, COLOR_LBLUE, string);
            }
            else
            {
                format(string, sizeof(string), "[*] [%s] %s (Admin duty: Yes)", atitle, aname);
                SendClientMessage(playerid, COLOR_LBLUE, string);*/
I made it a comment because i don't need it.
Reply


Messages In This Thread
Command don't work *STILL NOT FIXED* - by LeroyII - 01.09.2014, 19:41
Re: Command don't work - by Stinged - 01.09.2014, 19:51
Re: Command don't work - by LeroyII - 01.09.2014, 20:02
Re: Command don't work - by The__ - 01.09.2014, 20:24
Re: Command don't work - by LeroyII - 01.09.2014, 20:41
Re: Command don't work - by Stinged - 01.09.2014, 20:52
Re: Command don't work - by LeroyII - 01.09.2014, 21:01
Re: Command don't work - by LeroyII - 01.09.2014, 21:58
Re: Command don't work - by Isolated - 01.09.2014, 22:12
Re: Command don't work - by LeroyII - 01.09.2014, 22:15

Forum Jump:


Users browsing this thread: 1 Guest(s)