Raised This Month: $48 Target: $400
 12% 

Admin Groups


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   General Purpose       
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-29-2017 , 09:43   Admin Groups
Reply With Quote #1



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.

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.
  • Пример: 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



__________________

Last edited by OciXCrom; 07-17-2018 at 10:03.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
5STAR
Senior Member
Join Date: Apr 2017
Old 04-29-2017 , 12:23   Re: Admin Groups
Reply With Quote #2

I like this great job <3
5STAR is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: SP, Brazil
Old 04-29-2017 , 13:15   Re: Admin Groups
Reply With Quote #3

Gj
__________________
EFFx is offline
Send a message via Skype™ to EFFx
Agression Terrpr
Member
Join Date: Jun 2015
Location: Lithuania
Old 04-30-2017 , 03:20   Re: Admin Groups
Reply With Quote #4

Nice thanks bro <3
Agression Terrpr is offline
Send a message via Skype™ to Agression Terrpr
Ayman Khaled
Senior Member
Join Date: Mar 2017
Location: Palestine
Old 04-30-2017 , 13:48   Re: Admin Groups
Reply With Quote #5

Very nice, i used it on my servers .
__________________
Ayman Khaled is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-26-2018 , 11:27   Re: Admin Groups
Reply With Quote #6


  • Added FLAGS_METHOD option in the .ini file.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Old 02-27-2018, 18:46
grimxxl
This message has been deleted by grimxxl. Reason: Nevermind
Skanix
Junior Member
Join Date: Jan 2018
Location: Algeria
Old 02-28-2018 , 09:40   Re: Admin Groups
Reply With Quote #7

Good Job...
Skanix is offline
Mark.uG
AlliedModders Donor
Join Date: Oct 2014
Old 01-01-2019 , 12:06   Re: Admin Groups
Reply With Quote #8

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.
Mark.uG is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 01-01-2019 , 19:26   Re: Admin Groups
Reply With Quote #9

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.
__________________

Last edited by OciXCrom; 01-01-2019 at 19:27.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:04.


Powered by vBulletin®
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Theme made by Freecode