Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local fragmentBlacklist =
- {
- "aimbot",
- "aimware",
- "esp",
- "gdaap",
- "hack",
- "wallhack"
- }
- timer.Simple (30,
- function ()
- pcall (
- function ()
- for commandName, _ in pairs (concommand.GetTable ()) do
- for _, fragment in ipairs (fragmentBlacklist) do
- if string.find (commandName, fragment) then
- net.Start ("CAC_BanMe")
- net.WriteString ("concommand")
- net.WriteString (commandName)
- net.SendToServer ()
- end
- end
- end
- for eventName, eventTable in pairs (hook.GetTable ()) do
- for hookName, f in pairs (eventTable) do
- for _, fragment in ipairs (fragmentBlacklist) do
- if string.find (hookName, fragment) then
- net.Start ("CAC_BanMe")
- net.WriteString ("hook")
- net.WriteString (eventName)
- net.WriteString (hookName)
- net.SendToServer ()
- end
- end
- end
- end
- end
- )
- end
- )
Advertisement
Add Comment
Please, Sign In to add comment