Hi.
To check his value of a CVAR (
name is this case) you can try to use:
Code:
const char * name = engine->GetClientConVarValue(engine->IndexOfEdict(pEntity), "name" );
Now when you use for example:
Code:
Q_snprintf(gBuffer,128,"His name is: %s \n",name);
It will return his name, because we used "name" for the CVAR "name".
It's difficult, another one:
Code:
const char * name = engine->GetClientConVarValue(engine->IndexOfEdict(pEntity), "sensitivity" );
Now when you use for example:
Code:
Q_snprintf(gBuffer,128,"His sensitivity is: %d \n",name);
Again, the thingy we set (
name) is 'asking' for the sensitivity.
(%d = numeric)
Maybe this can help?