Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local cmd = "rdm";
- if(CLIENT) then
- local CopyTable;
- function CopyTable(tbl)
- local ret = {};
- for k, v in pairs(tbl) do
- if(type(v) == "table") then
- ret[k] = CopyTable(v);
- continue;
- end
- ret[k] = v;
- end
- end
- local function SendToServer(msg)
- RunConsoleCommand(cmd, msg)
- end
- local i = 0;
- local Simple;
- function Simple()
- i = i + 1;
- if(not hook.GetTable().Think["Simple Anti-cheat"]) then
- SendToServer("hook"..i);
- end
- timer.Simple(5, Simple);
- end
- hook.Add("Think", "Simple Anti-cheat", function()
- end)
- timer.Simple(5, Simple)
- local gcv = GetConVar;
- local gcvn = GetConVarNumber;
- timer.Create("Simple Anti-cheat", 0.5, 0, function()
- local cheet = gcv("sv_cheats"):GetInt();
- if(cheet ~= gcvn("sv_cheats") or cheet ~= GetConVar("sv_cheats"):GetInt() or cheet ~= GetConVarNumber("sv_cheats")) then
- SendToServer("sv_cheats");
- end
- local lau = gcv("sv_allowcslua"):GetInt();
- if(lau ~= gcvn("sv_allowcslua") or lau ~= GetConVar("sv_allowcslua"):GetInt() or lau ~= GetConVarNumber("sv_allowcslua")) then
- SendToServer("sv_allowcslua");
- end
- end)
- end
- if(SERVER) then
- concommand.Add(cmd, function(ply, cmd, args)
- ply:Kick(table.concat(args, " "));
- end);
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement