/admins command isen't working ...
#4

pawn Код:
dcmd_admins(playerid,params[])
{
    #pragma unused params
    if(IsPlayerConnected(playerid))
    {
        new AdminGuy[MAX_PLAYER_NAME];
        new string[50 + MAX_PLAYER_NAME];
        SendClientMessage(playerid, COLOR_WHITE, "Current Online Admins:");
        SendClientMessage(playerid, COLOR_WHITE, "__________________");
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            new lvl = pInfo[i][adminlevel];
            if(lvl > 0)
            {
                GetPlayerName(i, AdminGuy, sizeof(AdminGuy));
                format(string, sizeof(string), "Name: %s - Admin Level: %d", AdminGuy, lvl);
                SendClientMessage(playerid, COLOR_BLUE, string);
             }
        }
        SendClientMessage(playerid, COLOR_WHITE, "___________________");
    }
    return 1;
}
Not tested but must work.
Reply


Messages In This Thread
/admins command isen't working ... - by Danny - 28.08.2010, 08:36
Re: /admins command isen't working ... - by Claude - 28.08.2010, 09:06
Re: /admins command isen't working ... - by Calgon - 28.08.2010, 09:09
Re: /admins command isen't working ... - by Jochemd - 28.08.2010, 09:37

Forum Jump:


Users browsing this thread: 1 Guest(s)