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

Decoding voice_showbanned


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ARES[ro]
Senior Member
Join Date: Apr 2010
Old 07-29-2011 , 01:49   Decoding voice_showbanned
Reply With Quote #1

how to decode voice_showbanned hex output?
like this one
2866FFFFFFC4FFFFFFAEFFFFFFFFFFFFFFBCFFFFFFD6F FFFFFB4FFFFFF9112FFFFFFEEFFFFFFF3534C4042
how to find ip? im guessing is the last 32 bit or something...
__________________
okay

Last edited by ARES[ro]; 07-29-2011 at 01:51.
ARES[ro] is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 07-29-2011 , 08:53   Re: Decoding voice_showbanned
Reply With Quote #2

voice_banmgr.cpp

Code:
bool CVoiceBanMgr::Init(char const *pGameDir)
{
	Term();

	char filename[512];
	_snprintf(filename, sizeof(filename), "%s/%s", pGameDir, g_pBanMgrFilename);

	// Load in the squelch file.
	FILE *fp = fopen(filename, "rb");
	if(fp)
	{
		int version;
		fread(&version, 1, sizeof(version), fp);
		if(version == BANMGR_FILEVERSION) // xPaw: BANMGR_FILEVERSION = 1
		{
			fseek(fp, 0, SEEK_END);
			int nIDs = (ftell(fp) - sizeof(version)) / 16;
			fseek(fp, sizeof(version), SEEK_SET);

			for(int i=0; i < nIDs; i++)
			{
				char playerID[16];
				fread(playerID, 1, 16, fp);
				AddBannedPlayer(playerID);
			}			
		}

		fclose(fp);
	}

	return true;
}
__________________
xPaw is offline
ARES[ro]
Senior Member
Join Date: Apr 2010
Old 07-30-2011 , 14:11   Re: Decoding voice_showbanned
Reply With Quote #3

Ty so no ip only steamid cool.
__________________
okay

Last edited by ARES[ro]; 07-30-2011 at 14:16.
ARES[ro] is offline
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 14:02.


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