get_user_info()
I'm playing around with client information, and if anyone has ANY information, AT ALL, regarding set_user_info() or get_user_info(), it would be greatly appreciated.
My main question, though, is this: Does anyone have a list of information variables that can be retrieved from a client (cl_updaterate, etc.)? I'm asking this because it seems that the funcwiki isn't completely accurate in explaining this command: Quote:
I don't believe the most important commands (such as ex_interp and the cl_bob commands) are able to be retrieved through this function, and I was hoping someone could either A) prove me wrong, or B) tell me a way in which this information could be printed to a player's console (or used in code). |
You can try typing 'cvarlist' in console... That should give you all clientside variables... minus the sv_ and mp_ ones... those would be for hosting a server...
Beyond that, I know the 'team' variable is not the way to find their team. Looking at the documentation... BillyTheKid submitted: Quote:
Does that help at all? |
That cvarlist thing is cool... I didn't know about that.
Obviously, the client cvars interact with the server, and so therefore can probably be gathered from the server and reproduced and used. If a server can modify that information, I should hope they'd be able to retrieve it all also. With the team variable, I realize there are other commands for that information, but the commands I'm focusing on don't seem to have an obvious way of being identified. As for what Billy The Kid wrote, I read it and disagree with some of the information, mostly in that I don't think cl_cmdrate and fps_max are able to be obtained by get_user_info(). I'll have to test this further, but I'm 72.6% sure right now that get_user_info won't gather that information. With all that said, thanks for trying to help. The cvarlist thing will help to identify all the client commands available, but I still have more research to do, and any other help is appreciated. |
get/set_client_info() can only be used with the variables that are set with setinfo (at least i think so)
use query_client_cvar() to fetch cvar values from the client dll http://www.amxmodx.org/funcwiki.php?go=func&id=854 |
Dude p3tsin, you're the man. I think this is exactly what I needed.
Two more things, though... Do you know anything about how to get the variables set with setinfo, and do you know anything other than what the funcwiki says about how to use query_client_cvar? Thanks again. |
| All times are GMT -4. The time now is 16:41. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.