local oRCC = figure
local oFRead = it
local oFFind = out
local cd = { "skiddo" }
local blue = ( Color(116,187,251,255) )
local gold = ( Color(255,228,0,255) )
function cd.Detours(str)
chat.AddText(blue, "[whatsadetour] ", gold, (str))
end
function file.Read(fn, path)
if string.match(fn, "addons/") or string.match(fn, "lua/") or string.match(fn, ".lua") or string.match(fn, "data/") then
cd.Detours("Blocked file.Read! - Filename: " ..fn.. " Path: " ..path)
surface.PlaySound("buttons/button6.wav")
return false
else
oFRead(fn, path)
end
end
function file.Find(fn, path)
if string.match(fn, "addons/") or string.match(fn, "lua/") or string.match(fn, ".lua") or string.match(fn, "data/") then
cd.Detours("Blocked file.Find! - Filename: " ..fn.. " Path: " ..path)
surface.PlaySound("buttons/button6.wav")
return "ohai :^)"
else
oFFind(fn, path)
end
end
function file.ExistsEx(fn, path)
cd.Detours("Blocked file.ExistsEx Filename: " ..fn.. " Path: " ..path)
surface.PlaySound("buttons/button6.wav")
return false
end
function file.Exists(fn, path)
cd.Detours("Blocked file.Exists - Filename: " ..fn.. " Path: " ..path)
surface.PlaySound("buttons/button6.wav")
return false
end
function file.IsDir(dir, path)
cd.Detours("Blocked file.IsDir - Directory: " ..dir.. " Path: " ..path)
surface.PlaySound("buttons/button6.wav")
return "stop it anti cheeter"
end
function RunConsoleCommand(cmd, args)
if string.find(cmd, "banme") or string.find(cmd, "kickme") or string.find(cmd, "detect") or string.find(cmd, "unbindall") then
cd.Detours("Blocked RunConsoleCommand! - Command: " ..cmd.. " Arguments: " ..args)
return false
end
oRCC(cmd, args)
end
cd.Detours("Loaded!")