Ulysses

General => Developers Corner => Topic started by: 3RB on October 02, 2015, 06:21:19 AM

Title: some help
Post by: 3RB on October 02, 2015, 06:21:19 AM
i want to make admin tab for pointshop only for rank OWNER i found this

PS.Config.SuperAdminCanAccessAdminTab = true

how can i make it only for OWNER i tryed this but it doesn't work

PS.Config.OWNERCanAccessAdminTab = true
Title: Re: some help
Post by: Caustic Soda-Senpai on October 02, 2015, 03:34:15 PM
ITEM.AllowedUserGroups = { "owner" }
Title: Re: some help
Post by: 3RB on October 03, 2015, 07:57:07 AM
Thats for pointshop items i want it for pointshop admin tab
Title: Re: some help
Post by: roastchicken on October 03, 2015, 08:33:46 AM
In order to do that, you would have to modify the code of pointshop deeper. This poinshop (_Undefined's, I assume) is made to work with just the default Garry's Mod groups: superadmin, admin, and user. This is a recurring theme in addons, and you will have to modify each one if you want to allow only an "owner" group.

For this reason, many people here on the forum suggest that you use superadmin as it was intended: as the highest rank. Get a simple chat tags plugin (there is at least one that I know of in the 'Releases' section) and change your tag to  "Owner" while still being in the superadmin group. You can read more on the whole owner group thing here: http://forums.ulyssesmod.net/index.php/topic,6291.0.html (http://forums.ulyssesmod.net/index.php/topic,6291.0.html).