Author Topic: some help  (Read 2212 times)

0 Members and 1 Guest are viewing this topic.

Offline 3RB

  • Newbie
  • *
  • Posts: 25
  • Karma: 0
some help
« 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

Offline Caustic Soda-Senpai

  • Sr. Member
  • ****
  • Posts: 469
  • Karma: 54
  • <Insert something clever here>
    • Steam Page
Re: some help
« Reply #1 on: October 02, 2015, 03:34:15 PM »
ITEM.AllowedUserGroups = { "owner" }
« Last Edit: October 02, 2015, 03:35:59 PM by syst3M4TiK »
Once you get to know me, you'll find you'll have never met me at all.

Offline 3RB

  • Newbie
  • *
  • Posts: 25
  • Karma: 0
Re: some help
« Reply #2 on: October 03, 2015, 07:57:07 AM »
Thats for pointshop items i want it for pointshop admin tab

Offline roastchicken

  • Respected Community Member
  • Sr. Member
  • *****
  • Posts: 476
  • Karma: 84
  • I write code
Re: some help
« Reply #3 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.
« Last Edit: October 03, 2015, 08:35:17 AM by roastchicken »
Give a man some code and you help him for a day; teach a man to code and you help him for a lifetime.