I am trying to create a logging plugin that logs a specific set of commands that are implemented by metamod plugins.
I know that it is possible to intercept commands with the client_command function (ie kill, say). I also know that it is possible to intercept commands like +attack and +moveleft using prethink. However, what I have not seen (and yes i searched the board for quite a while) is how to intercept custom +namehere commands, such as +hook. Lets say i wanted to intercept +hook from a client, I couldnt use prethink (atleast this is my understanding) becuase it isnt a built in command. I looked at the examples for intercepting +attack and it uses the constant IN_ATTACK or something. I dont think there is a constant for +hook or any other custom +namehere commands.
Is there anyway to intercept custom +namehere commands?