UnholyTalonTSi
Insane-Known Member
- Messages
- 3
- Reaction score
- 0
- Points
- 351
I am having problems with the same team check for my esp. My esp is on friendly and enemy, but i only want it on enemy.
Code:
int clientInfo(int ID)
{
* *int Centity = *(int*)(0x7BD010);
* * return Centity + 0x1FE04C + (ID * 0x594);
}
bool SameTeam(int Client)
{
* * if (cstrcmp(Dvar_GetString("ui_gametype"), "dm") == 0)
* * {
* * * * return true;
* * }
* * else
* * {
* * * * *if ((int*)(clientInfo(Client) + 0x24) != (int*)(clientInfo(me) + 0x24))
* * * * {
* * * * * * return true;
* * * * }
* * * * else
* * * * {
* * * * * * return false;
* * * * }
* * }
}
if(!SameTeam(i))
{
* *if (Visibility(0, CEntity(i), 0x803003))
* * {
* * * * DrawBorderBox(&Centity_s, HeadPosition, FootPosition, gESP);
* * }
* * else
* * {
* * * *DrawBorderBox(&Centity_s, HeadPosition, FootPosition, rESP);
* * }
}
Last edited: