Advertisement
Guest User

Untitled

a guest
Feb 21st, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. if SERVER then
  2. local ULXComs = {}
  3. ULXComs["ulx asay"] = true
  4. ULXComs["ulx thetime"] = true
  5. ULXComs["ulx copyid"] = true
  6. ULXComs["ulx profile"] = true
  7. ULXComs["ulx motd"] = true
  8. ULXComs["ulx menu"] = true
  9.  
  10. local OverRideGroups = {}
  11. OverRideGroups["superadmin"] = true
  12. OverRideGroups["senior-admin"] = true
  13.  
  14. hook.Add("ULibCommandCalled", "aids", function(ply, command, args)
  15. print(ply)
  16. if ply == NULL then return true end
  17. if OverRideGroups[ply:GetUserGroup()] then return true end
  18. if ULXComs[command] then return true end
  19. if ply:Team() != TEAM_STAFF then
  20. ply:ChatPrint( "Please become 'Staff on Duty' to preform this action!" )
  21. return false
  22. end
  23. end)
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement