Raised This Month: $51 Target: $400
 12% 

Setinfo list


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
WaZZeR++
Veteran Member
Join Date: Mar 2005
Location: Sweden
Old 05-20-2006 , 05:26   Setinfo list
Reply With Quote #1

Is it possible to get a list of all the setinfos from a player?
WaZZeR++ is offline
Send a message via MSN to WaZZeR++
SubStream
Veteran Member
Join Date: Aug 2005
Location: USA
Old 05-21-2006 , 16:53  
Reply With Quote #2

do you mean all possible fields that can be put into setinfo such as name and others? or do you mean to just get all of their info and list it?
SubStream is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 05-21-2006 , 18:29  
Reply With Quote #3

yes, it is possible.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
WaZZeR++
Veteran Member
Join Date: Mar 2005
Location: Sweden
Old 05-22-2006 , 16:48  
Reply With Quote #4

Quote:
Originally Posted by Twilight Suzuka
yes, it is possible.
Then my next question will be how?
I found this in the SDK:
Code:
#define	MAX_INFO_STRING			256
#define	MAX_SCOREBOARDNAME		32
typedef struct player_info_s
{
	// User id on server
	int		userid;

	// User info string
	char	userinfo[ MAX_INFO_STRING ];
.....
And i think the userinfo char contains the whole setinfo string that you can read from demos, like:
setinfo1/value1/setinfo2/value2....

But how do i access this from amxx?
WaZZeR++ is offline
Send a message via MSN to WaZZeR++
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 05-22-2006 , 18:43  
Reply With Quote #5

it is an engine function

get_user_infobuffer
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
WaZZeR++
Veteran Member
Join Date: Mar 2005
Location: Sweden
Old 05-23-2006 , 01:59  
Reply With Quote #6

Can't find that function...

Did you mean get_info_keybuffer?
WaZZeR++ is offline
Send a message via MSN to WaZZeR++
Reply



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 13:16.


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