será que alguma Class está errada?
o erro que reportei parece causado por Class errada.
o erro que reportei parece causado por Class errada.

// Endereços
#define PlayerRandom 0x3783F360
#define PlayerOffSet 0x00066F34
#define GameStatus 0x3780C6E8
// Declaravéis
INT TeleKill, OPK;
VOID SemiTelekillESemiOPK(VOID)
{
DWORD player, position, target;
player = (DWORD)GetModuleHandle("ClientFX.fxd");
player += PlayerOffSet;
memcpy(&position, (VOID *)(player), 4);
position += 0xCC;
memcpy(&target, (VOID *)(PlayerRandom), 4);
target += 0xCC;
if((*(BYTE *)GameStatus == 1) && TeleKill) {
if((target > 0xCC && position > 0xCC)
&& (target > 0xC8 && position > 0xC8)
&& (target > 0xD0 && position > 0xD0)) {
*(FLOAT *)position = *(FLOAT *)target;
*(FLOAT *)(position + 0x4) = *(FLOAT *)(target + 0x4);
*(FLOAT *)(position - 0x4) = *(FLOAT *)(target - 0x4);
}
}
if((*(BYTE *)GameStatus == 1) && OPK) {
if((target > 0xCC && position > 0xCC)
&& (target > 0xC8 && position > 0xC8)
&& (target > 0xD0 && position > 0xD0)) {
*(FLOAT *)target = *(FLOAT *)position;
*(FLOAT *)(target + 0x4) = *(FLOAT *)(position + 0x4);
*(FLOAT *)(target - 0x4) = *(FLOAT *)(position - 0x4);
}
}
}

CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)TELEKILL, NULL, NULL, NULL);
VOID TELEKILL(VOID)
{
while(1) {
if(TeleKill) xTeleKillx();
Sleep(1);
}
}
VOID xTeleKillx()
{
DWORD posptr, posy;
if((*(BYTE *)GameStatus == 1) && TeleKill) {
GetPlayerByIndex = (lpGetPlayerByIndex)PlayerByIndex;
unsigned long ulThis = *(unsigned long *)ClientInfoMgr;
GetLocalPlayer = (lpGetLocalPlayer)LocalPlayer;
posptr = (DWORD)GetModuleHandle("ClientFX.fxd");
posptr += 0x00066F34;
memcpy(&posy,(VOID *)posptr, 4);
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) {
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);
}
}
}
}
}
}
