class PointerTo;
class _Object;
class PlayerInfo;
class CILTDrawPrim;
typedef PlayerInfo *(__thiscall *lpGetPlayerByIndex)(unsigned long ulThis, INT index, INT unk);
lpGetPlayerByIndex GetPlayerByIndex;
typedef PlayerInfo *(__thiscall *lpGetLocalPlayer)(unsigned long ulThis);
lpGetLocalPlayer GetLocalPlayer;
class PointerTo
{
public:
CHAR pad[4];
PlayerInfo *first;
__int32 index;
};
class _Object
{
public:
CHAR Pad[4];
D3DXVECTOR3 origin;
};
class PlayerInfo
{
public:
__int32 Unknown0;
__int32 index;
__int32 Unknown1;
__int32 Unknown2;
CHAR Name[12];
CHAR unknown3[12];
_Object *obj;
CHAR unknown4[68];
__int32 Team;
__int32 unknown5;
__int8 IsDead;
};
DWORD posptr, posy;
if((*(BYTE *)GameStatus == 1) && TeleKill == 1 && (*(BYTE *)HP >= 1)) {
if((*(BYTE *)HP >= 1)){
memcpy((VOID *)Invisible, (VOID *)(PBYTE)"\x01", 1);
}
else if(*(BYTE *)HP < 1){
memcpy((VOID *)Invisible, (VOID *)(PBYTE)"\x00", 1);
}
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);
}
}
}
}
}
.