Help /admins
#3

Here's mine, change it to your liking.

pawn Code:
CMD:admins(playerid, params[])
{
    SendClientMessage(playerid, -1, ""COL_ORANGE"--- | Online Administrators | ---");
    new count = 0;
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(!IsPlayerConnected(i)) continue;
        if(!pInfo[i][pAdmin]) continue;
        new string[90], playersname[MAX_PLAYER_NAME];
        GetPlayerName(i, playersname, sizeof(playersname));
        switch(pInfo[i][pAdmin])
        {
            case 1: format(string, sizeof(string), ""COL_ORANGE"Trial Administrator: {FFFFFF}%s (%i)", playersname, i);
            case 2: format(string, sizeof(string), ""COL_ORANGE"Server Administrator: {FFFFFF}%s (%i)", playersname, i);
            case 3: format(string, sizeof(string), ""COL_ORANGE"Senior Administrator: {FFFFFF}%s (%i)", playersname, i);
            case 4: format(string, sizeof(string), ""COL_ORANGE"General Administrator: {FFFFFF}%s (%i)", playersname, i);
            case 5: format(string, sizeof(string), ""COL_ORANGE"Head Administrator: {FFFFFF}%s (%i)", playersname, i);
            case 6: format(string, sizeof(string), ""COL_ORANGE"Server Director: {FFFFFF}%s (%i)", playersname, i);
            default: continue;
        }
        SendClientMessage(playerid, -1, string);
        count++;
    }
    if(!count) SendClientMessage(playerid, -1, ""COL_ORANGE"There are no Administrators Online");
    return 1;
}
Reply


Messages In This Thread
Help /admins - by KamilPolska - 27.06.2020, 15:31
Re: Help /admins - by ilogbc - 27.06.2020, 15:39
Re: Help /admins - by Lexless - 27.06.2020, 15:44
Re: Help /admins - by KamilPolska - 28.06.2020, 13:28
Re: Help /admins - by Kwarde - 28.06.2020, 15:13
Re: Help /admins - by KamilPolska - 28.06.2020, 17:55
Re: Help /admins - by Kwarde - 28.06.2020, 18:13
Re: Help /admins - by Chams - 28.06.2020, 18:47
Re: Help /admins - by KamilPolska - 05.07.2020, 17:39
Re: Help /admins - by DarkMaster - 09.07.2020, 11:13

Forum Jump:


Users browsing this thread: 1 Guest(s)