Python1320

SendLua block huehuehuehue

Mar 11th, 2014
449
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.33 KB | None | 0 0
  1. local debug=debug
  2. local getinfo=debug.getinfo
  3. local function trace()
  4.     local i = getinfo(2,'S')
  5.     local s = i.short_src
  6.     if s=="LuaCmd" then
  7.         Say"no"
  8.         error"no"
  9.     end
  10. end
  11.  
  12. local Tag="eek"
  13. hook.Add("CreateMove",Tag,function()
  14.     debug.sethook(trace, "c")
  15. end)
  16.  
  17. hook.Add("SetupMove",Tag,function()
  18.     debug.sethook()
  19. end)
Advertisement
Add Comment
Please, Sign In to add comment