helpers->StartQueryCvarValue(pPlayer,"mat_dxlevel");

void CDBlockerPlugin::OnQueryCvarValueFinished( QueryCvarCookie_t iCookie,
edict_t *pPlayerEntity, EQueryCvarValueStatus eStatus, const char
*pCvarName, const char *pCvarValue )
{
    if(strcmpi(pCvarName == "mat_dxlevel")
    {
        //Do stuff here
    }
}

2009/12/13 Gilles <[email protected]>

> Hi, how can i get the values of client info, like mat_dxlevel.
>
> i tried to use
> engine->GetClientConVarValue( engine->IndexOfEdict(pEntity), "mat_dxlevel"
> )
> returns nothing, while i try it with the "name" it correctly returns
> the client name.
> Any way to do this correctly?
>
> Any help is welcome, thanks in advance!
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to