Answered Sprx Coding Help

Status
Not open for further replies.

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:

candy

G59 Terrorist
Staff member
Donator
Messages
1,322
Reaction score
752
Points
973
a0f10bd0ca337f8b215802d592c20db7.png
 

P!X

Head Moderator
Staff member
Head Staff Team
Messages
408
Reaction score
577
Points
878
Thread Closed
 
Status
Not open for further replies.
Top