Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if SERVER then
- local ULXComs = {}
- ULXComs["ulx asay"] = true
- ULXComs["ulx thetime"] = true
- ULXComs["ulx copyid"] = true
- ULXComs["ulx profile"] = true
- ULXComs["ulx motd"] = true
- ULXComs["ulx menu"] = true
- local OverRideGroups = {}
- OverRideGroups["superadmin"] = true
- OverRideGroups["senior-admin"] = true
- hook.Add("ULibCommandCalled", "aids", function(ply, command, args)
- print(ply)
- if ply == NULL then return true end
- if OverRideGroups[ply:GetUserGroup()] then return true end
- if ULXComs[command] then return true end
- if ply:Team() != TEAM_STAFF then
- ply:ChatPrint( "Please become 'Staff on Duty' to preform this action!" )
- return false
- end
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement