Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local funcs = {}
- function funcs.Detour(old, new, name)
- print("Detouring: "..name)
- funcs.D[new] = old
- return new
- end
- local plyMeta = FindMetaTable("Player")
- local concommandDet = plyMeta.ConCommand
- plyMeta.ConCommand = funcs.Detour(plyMeta.ConCommand, function(pl,cmd,...)
- return concommandDet(pl,cmd,...)
- end, "plyMeta.ConCommand")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement