Anti-Cheat Help

I’m looking for ways to find people running commands related to cheats. I’m not exactly sure what you would do. Is there a way to view peoples’ archived commands to see if any of them are illegal ones? If someone could give me an idea/write a little bit of code, that’d be great. I’ll make an outline below to make it easier:

[lua]function AntiCheat(ply, cmd, args)
if not ply:IsAdmin() then
ply:ChatPrint(“You are not an admin!”);
elseif ply:IsAdmin() then
for k, v in pairs(player.GetAll()) do
if string.find(string.lower(v:Nick()), string.lower(args)) != nil then
–do the check for cheats on v
ply:ChatPrint(“No players found with that name”);
concommand.Add(“check_cheats”, AntiCheat)[/lua]

Thanks in advance!