Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cl_herpac.lua
- found on some dumb server owned by a dumbass
- if SERVER then return end
- if CLIENT then
- local g = table.Copy(_G)
- local r = g.debug.getregistry()
- chat.AddText(Color(255, 0, 0, 255), "[HERP-AC]: ", Color(255, 255, 255, 255), "This server is running HERP-AC. An Anti-Cheat System.", Color(0, 255, 0, 255))
- function CheckVars()
- local AllowCSLua = GetConVar("sv_allowcslua"):GetInt()
- local Cheats = GetConVar("sv_cheats"):GetInt()
- local TimeScale = GetConVar("host_timescale"):GetInt()
- if AllowCSLua != 0 then
- net.Start("allowcslua_infraction")
- net.SendToServer()
- end
- if Cheats != 0 then
- net.Start("cheats_infraction")
- net.SendToServer()
- end
- if not (TimeScale == 1) then
- net.Start("timescale_infraction")
- net.SendToServer()
- end
- g.rawset(_G, "RunConsoleCommand", g.RunConsoleCommand)
- g.rawset(_G, "GetConVar", g.GetConVar)
- end
- CheckVars()
- timer.Create( "CheckVars", 0.001, 0, CheckVars )
- function oRunConsoleCommand(cmd, ...)
- return g.RunConsoleCommand(cmd, ...)
- end
- function oGetConVar(convar)
- return g.GetConVar(convar)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment