Raised This Month: $ Target: $400
 0% 

query_client_cvar


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
killergirl
Senior Member
Join Date: Jul 2010
Old 03-16-2011 , 12:18   query_client_cvar
Reply With Quote #1

If I execute the command on my self it works, if I execute on other players the console is empty. Why?

PHP Code:
#include <amxmodx>
#include <amxmisc>

public plugin_init()
{
    
register_plugin("TEST","1.0","KG")
    
    
register_concmd("amxx_check","checkPlayer",ADMIN_BAN,"<name> - info. players")
}

public 
checkPlayer(idlvlcid)
{
    if( ! ( 
cmd_accessid lvl cid ) ) )
        return 
PLUGIN_HANDLED
        
    
new arg[32];
    
    
read_argv(arg 31)
    
    new 
player cmd_targetidarg1)
    
    if( !
player)
        return 
PLUGIN_HANDLED
        
    query_client_cvar
(player"rate""cvar_result")
    
    return 
PLUGIN_CONTINUE
}

public 
cvar_result(id, const cvar[], const value[])
{
    
console_print(id"rate is: %s"value)
    
    return 
PLUGIN_HANDLED

killergirl is offline
 


Thread Tools
Display Modes

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 14:30.


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