Solved [CSS] Getting player names

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

squeenie

Hacker
Meme Tier VIP
Dank Tier Donator
Mar 6, 2013
677
5,478
37
Hi all. I'm trying to grab the player names but they just come out as garbage.
The address for me is "client.dll"+00500858 + an extra 0x38 to get to the start. They increment by groups of 0x140.

I'm using this to read them in
C++:
ReadProcessMemory(fProcess.__HandleProcess, (PBYTE*)(fProcess.__dwordClient + dw_NameOffset + (0x140*i)), &PlayerInfo[i].name, sizeof(10), NULL);
I've attached 3 pictures (pending approval), hope they help you help me.

Cheers

EDIT: I'm using an out of date 2010 version of css
 

Attachments

Last edited:

brinkz

Coder
Meme Tier VIP
Sep 3, 2012
209
1,688
12
What you actually are using is the Radarstruct:
C++:
typedef struct MapPlayer_s {
		int		index;		// player's index
		int		userid;		// user ID on server
		int		icon;		// players texture icon ID
		Color   color;		// players team color
		char	name[MAX_PLAYER_NAME_LENGTH];
		int		team;		// N,T,CT
		int		health;		// 0..100, 7 bit
		Vector	position;	// current x,y pos
		QAngle	angle;		// view origin 0..360
		Vector2D trail[MAX_TRAIL_LENGTH];	// save 1 footstep each second for 1 minute
	} MapPlayer_t;
So you see the Name is at MapPlayer_t + 0x38
So you can read out player data like this:
C++:
DWORD dwRadarStruct;
MapPlayer_s Target;

Memory::Read( dwClient + OFFSETS_RADARSTRUCT/*0x4013B8*/, &dwRadarStruct, 4 );
Memory::Read( dwRadarStruct + ( Entity->iPlayerIndex - 1 ) * 0x140, &Target, sizeof( Target ) );
// Player name is Target.name then
 

brinkz

Coder
Meme Tier VIP
Sep 3, 2012
209
1,688
12
Sry didn't saw the extra 0x38, my bad. upload the images to an imagehoster an we can help you faster.
Edit: And don't read it out with one RPM it is a Pointer, but with two.
 
Last edited:

squeenie

Hacker
Meme Tier VIP
Dank Tier Donator
Mar 6, 2013
677
5,478
37
Sry didn't saw the extra 0x38, my bad. upload the images to an imagehoster an we can help you faster.
Edit: And don't read it out with one RPM it is a Pointer, but with two.
Thanks bro, the two RPM's worked, can't believe I didn'e see that in the first place ~_~
I'm guessing because this is the radar struct that's why information isn't being updated very regularly? I'm making a little external radar and it doesn't show any enemy players till you at least see them and is slow to update when they are far away. If so, is there a better way to get enemy positions?
 
Last edited:

brinkz

Coder
Meme Tier VIP
Sep 3, 2012
209
1,688
12
Actually no, the Radarstruct is the best place the get player position if they aren't rendered by the games engine. Actually their Position should update once a second if their model isn't rendered, else it should update frequently
 

squeenie

Hacker
Meme Tier VIP
Dank Tier Donator
Mar 6, 2013
677
5,478
37
Actually no, the Radarstruct is the best place the get player position if they aren't rendered by the games engine. Actually their Position should update once a second if their model isn't rendered, else it should update frequently
Hmm mine only seem to update when I have line of sight or they're nearby. Is this just because its an old build? Or because Im using bots?
 
Last edited:
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Similar threads

Community Mods