AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   Admin Groups (https://forums.alliedmods.net/showthread.php?t=296805)

OciXCrom 04-29-2017 08:43

Admin Groups
 

Description
  • Adds a menu that allows you to view all admins, VIP users, etc. The menu can be accessed by the commands set in the .ini file. By default they are (in chat): /admins, /admin, /vips, /vip, /users.

Settings
  • The settings can be found in the [Settings] section in the file configs/AdminGroups.ini.
    • MENU_COMMANDS = /admin, /admins, /vip, /vips, /users -- commands that open the menu. If the first character is "/" or "!", it will be registered as a chat command.
    • MENU_ACCESS = 0 -- the flag needed to access the menu. If set to "0", everyone will have access.
    • MENU_PERPAGE = 7 -- number of groups per page in the menu.
    • MENU_SOUND = buttons/blip1.wav -- the sound when the menu is opened.
    • CHAT_PREFIX = &x04[Admin Groups] -- the chat prefix.
    • FLAGS_METHOD = 1 -- whether players need to have all or at least one of the needed group flags.
    • EXIT_TO_MAIN = 1 -- whether or not to go back to the main menu after exiting the group sub-menu.

Setting up the groups
  • The groups can be added/changed/removed in the [Settings] section in the file configs/AdminGroups.ini.
  • On a new line add the name of the group, the character "=" and the flag(s).
  • Example: Test Admin = e -- players with flag "e" will be in the group "Test Admin"
  • You can also add a separate flag for viewing the players in the group.
  • Example: Server Admin = abcdeimnu l -- players with flags "abcdeimnu" will be in the group "Server Admin", but only players with flag "l" will be able to see them.

Additional information and download link

https://raw.githubusercontent.com/Oc...using_this.png
https://raw.githubusercontent.com/Oc...plugin_lab.png
https://raw.githubusercontent.com/Oc...ad_default.png

5STAR 04-29-2017 11:23

Re: Admin Groups
 
I like this great job <3

EFFx 04-29-2017 12:15

Re: Admin Groups
 
Gj

Agression Terrpr 04-30-2017 02:20

Re: Admin Groups
 
Nice thanks bro <3

Ayman Khaled 04-30-2017 12:48

Re: Admin Groups
 
Very nice, i used it on my servers :D.

OciXCrom 02-26-2018 10:27

Re: Admin Groups
 
https://img.shields.io/badge/update-...2018-green.svg
  • Added FLAGS_METHOD option in the .ini file.

Skanix 02-28-2018 08:40

Re: Admin Groups
 
Good Job...

Mark.uG 01-01-2019 11:06

Re: Admin Groups
 
Why would this not work?

Code:

[Settings]

# Adding "/" or "!" in front will make it a chat command.
MENU_COMMANDS = /admin, /admins, /vip, /vips, /users

# The flag required to open the menu. If set to "0", everyone will have access.
MENU_ACCESS = 0

# Number of groups displayed on each page.
MENU_PERPAGE = 7

# The sound that is played when opening the menu. "!" = no sound.
MENU_SOUND = buttons/blip1.wav

# Prefix for chat messages.
CHAT_PREFIX = &x04[Admin Groups]

# 0 = checks if the user has AT LEAST ONE of the flags required for the group
# 1 = checks if the user has ALL of the flags required for the group
FLAGS_METHOD = 1

[Groups]
# <name> = <flags> [view flag]

TrialAdmins = bcistu
Soldier = bcisur
Lieutenant = bcdeimsu
MadeMen = bcdefimnsu
Capo = bcdefijmnosu
WiseGuys = abcdefghijkmnsu
Enforcers = abcdefghijklmnopsu
Dons = abcdefghijkmnosu
Veteran = bcdefimnstu
Legends = abcdefghijklopqsu
Founder = abcdefghijklmnopqsu

It puts me in TrailAdmins not Founder.

OciXCrom 01-01-2019 18:26

Re: Admin Groups
 
Groups on top have priority over the ones below them. If you have the required flags for more than one group, you'll be put in the group that is first in the list, in this case "TrialAdmins". If you want "Founder" to have prioirty over "TrialAdmins", put it above "TrialAdmins", not below like you did.

grimxxl 05-05-2019 12:36

Re: Admin Groups
 
How about adding a feature, that allows you to return to the menu when hitting 8, when viewing one of the groups?


All times are GMT -4. The time now is 09:22.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.