Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. local nothing = function() end
  2.  
  3. if ULib then
  4. ULib.kick = nothing
  5. ULib.ban = nothing
  6. ULib.addBan = nothing
  7. end
  8.  
  9. if FAdmin then
  10. local tbl = {
  11. "kick",
  12. "ban",
  13. "jail",
  14. "UnJail",
  15. "ClearDecals",
  16. "StopSounds",
  17. "CleanUp"
  18. }
  19. for i=1, #tbl do
  20. FAdmin.Commands.AddCommand(tbl[i], nothing)
  21. end
  22. end
  23.  
  24. local meta = debug.getregistry().Player
  25.  
  26. meta.Ban = nothing
  27. meta.Kick = nothing
  28. game.KickID = nothing
  29.  
  30. local _ = RunConsoleCommand
  31. function RunConsoleCommand(command, ...)
  32. if command == "addip" then return end
  33. _(command, ...)
  34. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement