AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Setinfo list (https://forums.alliedmods.net/showthread.php?t=28668)

WaZZeR++ 05-20-2006 05:26

Setinfo list
 
Is it possible to get a list of all the setinfos from a player?

SubStream 05-21-2006 16:53

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?

Twilight Suzuka 05-21-2006 18:29

yes, it is possible.

WaZZeR++ 05-22-2006 16:48

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?

Twilight Suzuka 05-22-2006 18:43

it is an engine function

get_user_infobuffer

WaZZeR++ 05-23-2006 01:59

Can't find that function...

Did you mean get_info_keybuffer?


All times are GMT -4. The time now is 16:28.

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