Raised This Month: $19 Target: $400
 4% 

About QueryClientConVar value


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
farawayf
Senior Member
Join Date: Jan 2019
Old 11-08-2019 , 04:03   About QueryClientConVar value
Reply With Quote #1

PHP Code:
(..., const char[] cvarvalueany value
which is the best way to get clients convar value ? afaik "char[] cvarvalue" can get only string value, so its bypassable by changing only int value of convar, while string shows different.
About "any value", how to use it, what this does ? Can it get int value or the same as string, or even both int and string ?

Last edited by farawayf; 11-08-2019 at 04:03.
farawayf is offline
Crasher_3637
AlliedModders Donor
Join Date: May 2012
Old 11-08-2019 , 18:00   Re: About QueryClientConVar value
Reply With Quote #2

https://sm.alliedmods.net/new-api/co...ryClientConVar

QueryCookie QueryClientConVar(int client, const char[] cvarName, ConVarQueryFinished callback, any value)

"any value" just allows you to get the value that you passed to the callback function (last parameter above). "const char[] cvarvalue" allows you to get the actual value of the convar. If you're asking how to get different types of values, then you can just use the StringTo* functions on the cvarvalue string.

StringToInt(cvarvalue)
StringToFloat(cvarvalue)
__________________
AFK like JFK
Crasher_3637 is offline
farawayf
Senior Member
Join Date: Jan 2019
Old 11-08-2019 , 18:51   Re: About QueryClientConVar value
Reply With Quote #3

I mean that its possible to bypass string value by changing the 4byte type of convar value(some private cheats can do it). So query cvar value will always return like 0 even if 4byte is 1. There is no way to get actual value of convar instead getting string value from client?

Last edited by farawayf; 11-08-2019 at 18:57.
farawayf is offline
Fyren
FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren
Join Date: Feb 2106
Old 11-11-2019 , 01:07   Re: About QueryClientConVar value
Reply With Quote #4

The engine function that's used to query client convars only provides back a string for the value.
Fyren is offline
Reply


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 20:24.


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