Ulysses

General => Developers Corner => Topic started by: Tommy228 on August 28, 2013, 04:21:24 AM

Title: IsAdmin, IsSuperAdmin and groups
Post by: Tommy228 on August 28, 2013, 04:21:24 AM
Hey,
I am the developper of this addon (http://facepunch.com/showthread.php?t=1301766) 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.
Title: Re: IsAdmin, IsSuperAdmin and groups
Post by: Megiddo 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.
Title: Re: IsAdmin, IsSuperAdmin and groups
Post by: Tommy228 on August 28, 2013, 05:03:19 AM
I thought it was only inheriting user rights, so that's fine. thanks
Title: Re: IsAdmin, IsSuperAdmin and groups
Post by: DJ Mikey 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.
Title: Re: IsAdmin, IsSuperAdmin and groups
Post by: JamminR 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.