Anti Cheat Help

I need some help help with a little script that I am working on with removing hooks and things.

function Remove()
    for k, v in pairs ( hook.GetTable() ) do
        for x, y in pairs(v) do
                hook.Remove(k, y)

How would I make the following things work with this.

  • How would I make it run on a player who is cheating, I know how to check for ConCommands bypassed
  • How would I make it run a ban command. I have tried

for a, b in pairs( player.GetAll() ) do

then under the hook.Remove

BanCheater() -- This is a function I have

but that doesn’t work for me.

Any help would be appreciated!

[editline]11th August 2013[/editline]

Alright nvm about the top. I got that fixed now.
How would I make it find hooks that are not normal and add them to a table so no matter what happens what hook you make it will remove it?