Conteúdo já existente :]
olhe as páginas anteriores que irá achar o mesmo conteúdo!
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.
Agora add a funão//================================================== =========//
// 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;
};
Endereços do Telekill e semi OPKvoid 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
Semi OPK#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
É isso.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);
}
}
}
Créditos: Messi por me passar, Hacker striker por arruma os endereços e tira o erro.
Last edited by lucaslucas50; 01-13-2012 at 08:06 AM. Reason: EDIT
Conteúdo já existente :]
olhe as páginas anteriores que irá achar o mesmo conteúdo!
Procurou muito bem.
https://www.mpgh.net/forum/397-combat...ill-e-opk.html
Just a wanderer from the beginnings of this site.
An old Combat Arms' sections active member and hacker (just what I thought when I was a child).
My IM doesn't work. Send me a private message instead.
Name changes:
bruno2204
The Rev.
BioHuman
Element™
Just a wanderer from the beginnings of this site.
An old Combat Arms' sections active member and hacker (just what I thought when I was a child).
My IM doesn't work. Send me a private message instead.
Name changes:
bruno2204
The Rev.
BioHuman
Element™
onde que o seu está melhor ?
unica diferença é que o seu tem Adress atualizado.
que por sinal, tambem já é existente nos topicos de Endereços.
Ja foi postado