What about your anti-cheat?
if SERVER then
// sv_anticheat, started 8/12/13
// -- Networking -- \\
local AddNetworkString = util.AddNetworkString
local NetworkStrings = {
"Cheating1"
}
for k, v in pairs( NetworkStrings ) do
AddNetworkString( v )
end
local function Log( msg )
if !file.Exists( "nLogs.txt", "DATA" ) then
file.Write( "nLogs.txt", "Log started " ..
os.date() .. " \n" )
end
file.Append( "nLogs.txt", "["..
os.date().."]: " .. msg .. "\n" )
end
local function GetCheating()
for k, v in pairs ( player.GetAll() ) do
if v.Detected then continue end
v:SendLua([[
local GetConVarNumber = GetConVarNumber if GetConVarNumber("sv_cheats") != 0 then net.Start( "Cheating1" ) net.SendToServer() end
]])
end
end
timer.Create( "IsUserCheating", 5, 0, GetCheating )
net.Receive( "Cheating1", function( length, client )
print( client:Nick() .. ' is a cheater! [
http://steamcommunity.com/profiles/' .. client:SteamID64() .. ' ] [ ' .. client:SteamID() .. ' ] [ ' .. client:IPAddress() .. ' ]' )
Log( client:Nick() .. ' is a cheater! [
http://steamcommunity.com/profiles/' .. client:SteamID64() .. ' ] [ ' .. client:SteamID() .. ' ] [ ' .. client:IPAddress() .. ' ]' )
client.Detected = true
end )
end