Hello guys.
It is possible to create one new cvar in client (ex: abc_cvar) and check the value and do something ?
I try this:
PHP Code:
public client_connect(id){
if (!is_user_bot(id))
query_client_cvar(id, "abc_cvar", "cvar_result_func");
}
public cvar_result_func(id, const cvar[], const value[]){
new name[32];
get_user_name(id, name, 31);
new fValue = str_to_num(value)
if (fValue < 1)
{
log_amx("Client %d(%s) connect with abc_cvar ^"%s^"", id, name, value);
//do something
}
}