Raised This Month: $51 Target: $400
 12% 

[how to] hook client settings commands


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:47.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode