DWORD posptr, posy;
if((*(BYTE *)GameStatus == 1) && TeleKill) {
GetPlayerByIndex = (lpGetPlayerByIndex)PlayerByIndex;
unsigned long ulThis = *(unsigned long *)ClientInfoMgr;
GetLocalPlayer = (lpGetLocalPlayer)(LocalPlayer);
for(INT i = 0; i < 16; i++) {
PlayerInfo *pPlayer = GetPlayerByIndex(ulThis, i, 0);
PlayerInfo *pLocal = GetLocalPlayer(ulThis);
if(pPlayer != 0 && pPlayer->obj != 0 && pPlayer->IsDead == 0) {
posptr = (DWORD)GetModuleHandle("ClientFX.fxd");
posptr += 0x00066F34;
memcpy(&posy,(VOID *)(posptr), 4);
if(TeleKill) {
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);
if((*(BYTE *)GameStatus == 1) && TeleKill)
memcpy((VOID *)Invisible, (VOID *)(PBYTE)"\x01", 1);
else
memcpy((VOID *)Invisible, (VOID *)(PBYTE)"\x00", 1);
}
}
}
}
}
