What's new

Question Player Team Index/Name

S

StenchOfDeth

Enthusiast
Messages
163
Reaction score
22
Points
80
Sin$
0
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
 
XeCrash

XeCrash

C++, C# Coder/Support
Hidden Devils
Free Hoster Seasoned Veteran Programmer
Messages
691
Solutions
1
Reaction score
149
Points
300
Sin$
0
Are you trying use this in a menu or through a tool
 
Upvote 0
XeCrash

XeCrash

C++, C# Coder/Support
Hidden Devils
Free Hoster Seasoned Veteran Programmer
Messages
691
Solutions
1
Reaction score
149
Points
300
Sin$
0
And your trying to get the players team name?
 
Upvote 0
S

StenchOfDeth

Enthusiast
Messages
163
Reaction score
22
Points
80
Sin$
0
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:
Upvote 0
TreyZ1337

TreyZ1337

Getting There
Messages
138
Reaction score
101
Points
190
Sin$
7
Code:
int getTeam(int Client)
{
    return *(int *)((0x82F99580 + (Client * 0x3980)) + 0x33D4);
}
 
Upvote 0
Top Bottom
Login
Register