/admin command Grouped
#1

Hello,

I need help with an /admin command.

I want it to look like

Moderators - <name1>, <name2>, <name3>, <name4> If more than 5 names then next line
Moderators - <name1>, <name2>, <name3>, <name4>
Administrators - <name1>, <name2>, <name3>, <name4> If more than 5 names then next line
Administrators - <name1>, <name2>, <name3>, <name4>
Managers - <name1>, <name2>, <name3>, <name4> If more than 5 names then next line
Managers - <name1>, <name2>, <name3>, <name4>


All I could make is

<Staff> <Name1> - Mod
<Staff> <Name2> - Admin
<Staff> <Name3> - Admin
<Staff> <Name4> - Admin


Please help me with this. I tried searching for the forum for this but I could not find it anywhere.
Reply
#2

like that?
i use dialog because look nice
pawn Код:
CMD:acmds(playerid)
{
    new acmdstring[300];
    if(pInfo[playerid][pAdminLevel] >= 1)
    {
        strcat(acmdstring,"Trial Moderator: /codes /cw /unfreeze /kick \n"); // JUST EXLAMPE
        strcat(acmdstring,"Trial Moderator: /spec /aduty /warn /aduty \n");// JUST EXLAMPE
        strcat(acmdstring,"Trial Moderator: /mute /slap /akill /checkhp \n");// JUST EXLAMPE
    }
    if(pInfo[playerid][pAdminLevel] >= 2)
    {
        strcat(acmdstring,"Moderator: /setweather /ip /nuke /areaduty\n");// JUST EXLAMPE
        strcat(acmdstring,"Moderator: /ounban /oban/jail /unjail \n");// JUST EXLAMPE
        strcat(acmdstring,"Moderator: /warn /spec /specoff /aheli \n");// JUST EXLAMPE
    }
    // NEXT ADMIN LEVEL

    ShowPlayerDialog(playerid,99,DIALOG_STYLE_MSGBOX,"ADMIN COMMANDS",acmdstring,"Close","");
    return 1;
}
Reply
#3

Thats the /adminhelp commands.

I want the /admins to show the online admins but grouped. See example below.

Moderators - <name1>, <name2>, <name3>, <name4> If more than 5 names then next line
Moderators - <name1>, <name2>, <name3>, <name4>
Administrators - <name1>, <name2>, <name3>, <name4> If more than 5 names then next line
Administrators - <name1>, <name2>, <name3>, <name4>
Managers - <name1>, <name2>, <name3>, <name4> If more than 5 names then next line
Managers - <name1>, <name2>, <name3>, <name4>
Reply
#4

can not be possible, because it would duplicate the name admin
pawn Код:
REMOVE!
Reply
#5

It is possible.

See image

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)