Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local charset = "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890"
- math.randomseed(os.clock())
- function randomString(length)
- local ret = {}
- local r
- for i = 1, length do
- r = math.random(1, #charset)
- table.insert(ret, charset:sub(r, r))
- end
- return table.concat(ret)
- end
- local id = math.random(100000000,999999999)
- local chars = randomString(6)
- _G["RRunConsoleCommand"..id..chars] = _G["RRunConsoleCommand"..id..chars] or _G["RunConsoleCommand"]
- local blacklist = {
- ["lua_dumptimers_sv"] = true,
- }
- _G["RunConsoleCommand"] = function(name, ...)
- if blacklist[name] then return end
- _G["RRunConsoleCommand"..id..chars](name, ...)
- end
- debug.getregistry()[2].RunConsoleCommand = _G["RunConsoleCommand"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement