After a lot of of searching, I found that there is actually a function in sourcemod which provides access to the data. I found an example here: http://fs.alliedmods.net/index.php?getfile=322
The important command is here: new returnvalue = GetPlayerDecalFile (client, SprayHash, 32); spray sprays decal decals downloads sourcemod plugin Hopefully with the keywords above no one else will run into this problem. Carl On Thu, Oct 8, 2009 at 4:30 PM, Tony Paloma <[email protected]> wrote: > If the player is currently in the server, you can get the path to his or > her > spray via code: > > player_info_t info; > engine->GetPlayerInfo( ent_num, &info ); > > if ( info.customFiles[0] && info.customFiles[0] != -1 ) > { > char logohex[16]; > Q_binarytohex( (byte *)&info.customFiles[0], sizeof( info.customFiles[0] > ), logohex, sizeof( logohex ) ); > > // ... > } > > If you're trying to get who owns a particular spray file after the player > has left, you won't be able to unless you write something to log it for > each > player. > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Carl > Sent: Thursday, October 08, 2009 1:02 PM > To: Half-Life dedicated Linux server mailing list > Subject: Re: [hlds_linux] Server Spray Files > > I actually tried doing a crc32 checksum of one of the files before asking > here, but it didnt match so I was out of ideas. I can write up a little > eventscripts plugin to do something when the player activates, I just dont > know how to find the mapping from the player to the file. > > Carl > > On Thu, Oct 8, 2009 at 3:54 PM, Tony Paloma <[email protected]> > wrote: > > > The file names are just hashes of the file contents. You won't be able to > > map it back to a player if that's all you have. > > > > -----Original Message----- > > From: [email protected] > > [mailto:[email protected]] On Behalf Of Carl > > Sent: Thursday, October 08, 2009 12:13 PM > > To: Half-Life dedicated Linux server mailing list > > Subject: [hlds_linux] Server Spray Files > > > > Hey hlds_linux, > > > > Im trying to find out how the files on the downloads directory (IE, the > > sprays) are connected to the players that uploaded them. Is there a way > to > > find out the userid, ip, or steamid of the player that uploaded the file? > I > > looked on the Valve developer wiki and didnt get any good results. I'm > > really not sure where to ask this question, so linux server admins seems > a > > reasonable place to ask. > > > > Carl > > _______________________________________________ > > To unsubscribe, edit your list preferences, or view the list archives, > > please visit: > > http://list.valvesoftware.com/mailman/listinfo/hlds_linux > > > > > > _______________________________________________ > > To unsubscribe, edit your list preferences, or view the list archives, > > please visit: > > http://list.valvesoftware.com/mailman/listinfo/hlds_linux > > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlds_linux > > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlds_linux > _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux

