View Single Post
Author Message
ehha
SourceMod Donor
Join Date: Apr 2006
Location: Sibiu
Old 09-06-2009 , 08:30   [how to] hook client settings commands
Reply With Quote #1

I would like to "grab" the moment when a client types developer, for example, in console, also with a argument. I've tried this:
Code:
public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR);     register_clcmd("developer", "check_dev"); } public check_dev(id) {     client_print(0, print_chat, "Hooked!");     read_argv(1, arg, 32) }
Failed.
I know about query_client_cvar & how to use it but this requires a repetitive task to check it constantly.
Thank you.
ehha is offline