What's new

Unsolved Player Team Index/Name

S

StenchOfDeth

Enthusiast
Messages
163
Reaction score
22
Hi,

I've searched hi & low on how to get a player's team name or index. I know how to do this in MW2 (teamIndex = Playerstate + 0x3250), but I don't for MW3. Does anyone have the offset for this or perhaps a different approach that works?

thanks,
frank
 
X

XeCrash

C++, C# Coder/Support
Messages
690
Reaction score
144
Are you trying use this in a menu or through a tool
 
X

XeCrash

C++, C# Coder/Support
Messages
690
Reaction score
144
And your trying to get the players team name?
 
S

StenchOfDeth

Enthusiast
Messages
163
Reaction score
22
yes, it can be by client index or player name, but I prefer index

EDIT: and I don't necessarily need a player's team name. It can by the player's team index. Just long as I can make a distinction among the players in order to determine which team they're on.
 
Last edited:
T

TreyZ1337

Getting There
Messages
138
Reaction score
101
Code:
int getTeam(int Client)
{
    return *(int *)((0x82F99580 + (Client * 0x3980)) + 0x33D4);
}
 
S

StenchOfDeth

Enthusiast
Messages
163
Reaction score
22
Code:
int getTeam(int Client)
{
    return *(int *)((0x82F99580 + (Client * 0x3980)) + 0x33D4);
}

0x33D4 was the offset that I needed to make it all work. Thanks a ton!
 
Top Bottom