DWORD posptr, posy;
if(Pl0x && Crack) {
GetPlayerByIndex2 = (lpGetPlayerByIndex2)PlayerByIndex;
unsigned long ulThis = *(unsigned long *)ClientInfoMgr;
GetLocalPlayer2 = (lpGetLocalPlayer2)(LocalPlayer);
for(INT i = 0; i < 16; i++) {
PlayerInfo *pPlayer = GetPlayerByIndex2(ulThis, i, 0);
PlayerInfo *pLocal = GetLocalPlayer2(ulThis);
if(pPlayer != 0 && pPlayer->obj != 0 && pPlayer->IsDead == 0) {
posptr = (DWORD)GetModuleHandle("ClientFX.fxd");
posptr += 0x00066F34;
WriteOpCode(&posy,(VOID *)(posptr), 4);
if(Pl0x) {
if(pPlayer->Team != pLocal->Team) {
*(FLOAT *)(posy + 0xC8) = (pPlayer->obj->origin.x + 100.0f);
*(FLOAT *)(posy + 0xCC) = (pPlayer->obj->origin.y + 100.0f);
*(FLOAT *)(posy + 0xD0) = (pPlayer->obj->origin.z);
}
}
}
}
}
