Raised This Month: $ Target: $400
 0% 

query_client_cvar is blocked


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 09-03-2009 , 20:56   Re: query_client_cvar is blocked
Reply With Quote #9

Code
PHP Code:
#include <amxmodx>

public plugin_init() 
{
    
register_plugin"query cvar test" "1.0" "bugsy" );
    
register_clcmd"say test" "cmdTest" );
}

public 
cmdTestid )
    
query_client_cvarid "cl_cmdrate" "HookFunc" );

public 
HookFuncid , const szCVar[] , const szValue[] , const param[] )
    
client_printprint_chat "id=%d cvar=%s value=%s" id szCVar szValue ); 
Result
Code:
id=1 cvar=cl_cmdrate value=30
Also tested using fps_max
Code:
id=1 cvar=fps_max value=72.0
__________________

Last edited by Bugsy; 09-03-2009 at 21:00.
Bugsy 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 15:11.


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