Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local meta = FindMetaTable("Player")
- --[[---------------------------------------------------------
- Stuff For Administration Under Root
- -----------------------------------------------------------]]
- local oldf_IsSuperAdmin = meta:IsSuperAdmin
- function meta:IsSuperAdmin()
- if self:GetPData("IsRoot") then
- return true
- end
- ------
- oldf._IsSuperAdmin()
- end
- function meta:IsRoot()
- -- Admin SteamID need to be fully authenticated by Steam!
- if ( self.IsFullyAuthenticated && !self:IsFullyAuthenticated() ) then return false end
- if self:GetPData("IsRoot") then
- if !self:IsUserGroup("owner") then ulx.adduser( nil, self, "owner" ) end -- Need to figure out how to find the highest rank
- -- The above makes it so that we can not be demoted.
- return true
- end
- -- Below we need a way to check if the group is above superadmin.
- -- I have no idea how to do this...
- -- The PData will also be set here.
- end
Advertisement
Add Comment
Please, Sign In to add comment