ULX

Author Topic: IsAdmin, IsSuperAdmin and groups  (Read 3495 times)

0 Members and 1 Guest are viewing this topic.

Offline Tommy228

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
IsAdmin, IsSuperAdmin and groups
« on: August 28, 2013, 04:21:24 AM »
Hey,
I am the developper of this addon and I have some issues with ULX and the way it handles user groups. A lot of servers are creating user groups like "moderator", "owner" and I'm using Player.IsAdmin and Player.IsSuperAdmin to check if they are admins or not, but that doesn't work as gmod doesn't consider them as admins. Could you please give me a workaround? I want my addon to be compatible with all admins mods, not only ulx.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6213
  • Karma: 394
  • Project Lead
Re: IsAdmin, IsSuperAdmin and groups
« Reply #1 on: August 28, 2013, 04:59:12 AM »
The behavior as given is correct. In ULib, if a group inherits from admin, IsAdmin will return true, as you would expect. I'm not sure what the problem is.
Experiencing God's grace one day at a time.

Offline Tommy228

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: IsAdmin, IsSuperAdmin and groups
« Reply #2 on: August 28, 2013, 05:03:19 AM »
I thought it was only inheriting user rights, so that's fine. thanks

Offline DJ Mikey

  • Newbie
  • *
  • Posts: 17
  • Karma: 0
Re: IsAdmin, IsSuperAdmin and groups
« Reply #3 on: August 31, 2013, 03:45:25 PM »
if its any consolation, i am using your amazing addon on my server.  I dont have any issues atm.  Ill have my admins test it later.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: IsAdmin, IsSuperAdmin and groups
« Reply #4 on: August 31, 2013, 04:21:31 PM »
I see people here ask about damage logs all the time.
I'll send them your addon's way if I see anyone ask again.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming