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(id, lvl, cid)
{
if( ! ( cmd_access( id , lvl , cid , 2 ) ) )
return PLUGIN_HANDLED
new arg[32];
read_argv(1 , arg , 31)
new player = cmd_target( id, arg, 1)
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
}