Já que n consegui tirar o DC da minha base msm ta ae o Telekill e o Semi OPK.
esse é so criar um novo item no Header File e add esse codigo.
Quote:
//================================================== =========//
// TeleKill//
//================================================== =========//
extern LPD3DXFONT myFont;
extern LPD3DXLINE pLine;
bool bFont;
class PointerTo;
class _Object;
class PlayerInfo;
class WeaponInfo;
class WeaponMgr;
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;
__int32 Health;
};
Agora add a funão
Quote:
void xTeleKillx(LPDIRECT3DDEVICE9 pDevice); {
DWORD posptr, posy;
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);
}
}
}
}
}
}
#endif
Endereços do Telekill e semi OPK
Quote:
#define ClientInfoMgr 0x3779CDAC
#define LocalPlayer 0x371529C0
#define PlayerByIndex 0x37151B40
#define PlayerRandom 0x377E0EA8
#define PlayerOffSet 0x00066F34
#define Teleport 0x377E0FA8
#define PlayerManager 0x377DEA34
#define PlayerManager 0x377DEA34
#define DrawPrimitive 0x90ff48
#define Clientinfo 0x3779CDAC
Semi OPK
Quote:
void xSemiOPKx(LPDIRECT3DDEVICE9 pDevice); {
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 *)ADDR_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);
}
}
}
É isso.
Créditos: Messi por me passar, Hacker striker por arruma os endereços e tira o erro.