I want to hook the command "exec". Therefore, I tried to hook the function with register_clcmd("exec","cmd_refuse").
However, whatever I execute any configs, function "cmd_refuse" still not run. I think it's because "exec" is a client command, AMXX can't hook "exec". Then can I hook this function "exec" in another ways in AMXX? I just want to prevent execute configs in my server.
Please help~
Sorry for my poor English.