[HELP]/admins <Show current admins online by ID, Name, Rank and Duty>
#3

pawn Code:
if(strcmp(cmd, "/admins", true) == 0)
{
    SendClientMessage(playerid, COLOR_RED, " ** Admins online: **");
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(PlayerInfo[i][pAdmin] >= 1)
            {
                GetPlayerName(i, sendername, sizeof(sendername));
                format(string, 100, "%i: %s ( %i ) Duty: %i", PlayerInfo[i][pAdmin], sendername, i, PlayerInfo[i][pAOnDuty]);
                SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)