Click thanks button agin!
Code:
Invis :
if (Invis==0)
{
const BYTE inviis[1] = {0x2C};
{
DWORD dwProtect;
VirtualProtect((void*)(Invis), 1, PAGE_EXECUTE_READWRITE, &dwProtect);
memcpy((void*)(Invis), &inviis, 1);
VirtualProtect((void*)(Invis), 1, dwProtect, NULL);
}
}
else
{
if (Invis==1)
{
const BYTE inviis[1] = {0x1C};
{
DWORD dwProtect;
VirtualProtect((void*)(Invis), 1, PAGE_EXECUTE_READWRITE, &dwProtect);
memcpy((void*)(Invis), &inviis, 1);
VirtualProtect((void*)(Invis), 1, dwProtect, NULL);
}
}
}
STW :
if (CH_scope)
{
const BYTE stw[6] = {0x90, 0x90, 0x90, 0x90, 0x90, 0x90};
{
DWORD dwProtect;
VirtualProtect((void*)(stw_addie1), 6, PAGE_EXECUTE_READWRITE, &dwProtect);
memcpy((void*)(stw_addie1), &stw, 6);
VirtualProtect((void*)(stw_addie1), 6, dwProtect, NULL);
}
}
else
{
const BYTE STWoff[3] = {0x8b, 0x51, 0x38};
{
DWORD dwProtect;
VirtualProtect((void*)(stw_addie1), 3, PAGE_EXECUTE_READWRITE, &dwProtect);
memcpy((void*)(stw_addie1), &STWoff, 3);
VirtualProtect((void*)(stw_addie1), 3, dwProtect, NULL);
}
}
ESP :
if (CH_Esp==0)
{
const BYTE espp[1] = {0x75};
{
DWORD dwProtect;
VirtualProtect((void*)(esp1), 1, PAGE_EXECUTE_READWRITE, &dwProtect);
memcpy((void*)(esp1), &espp, 1);
VirtualProtect((void*)(esp1), 1, dwProtect, NULL);
}
}
else
{
if (CH_Esp==1)
{
const BYTE espp[1] = {0x74};
{
DWORD dwProtect;
VirtualProtect((void*)(esp1), 1, PAGE_EXECUTE_READWRITE, &dwProtect);
memcpy((void*)(esp1), &espp, 1);
VirtualProtect((void*)(esp1), 1, dwProtect, NULL);
}
}
}
Boneshot :
if (CH_Boneshot==0)
{
const BYTE bone[2] = {0x85, 0xC0};
{
DWORD dwProtect;
VirtualProtect((void*)(boneshot1), 2, PAGE_EXECUTE_READWRITE, &dwProtect);
memcpy((void*)(boneshot1), &bone, 2);
VirtualProtect((void*)(boneshot1), 2, dwProtect, NULL);
}
}
else
{
if (CH_Boneshot==1)
{
const BYTE bone[1] = {0x31};
{
DWORD dwProtect;
VirtualProtect((void*)(boneshot1), 1, PAGE_EXECUTE_READWRITE, &dwProtect);
memcpy((void*)(boneshot1), &bone, 1);
VirtualProtect((void*)(boneshot1), 1, dwProtect, NULL);
}
}
}
if (DoCrosshair)( LPDIRECT3DDEVICE8 )pDevice
;{
D3DCOLOR xcolor = D3DCOLOR_ARGB( 255, 0, 0, 255 ); //set color
int size = 18, strong = 3; // size and width/length
int iCenterX = GetSystemMetrics( 0 ) / 2;
int iCenterY = GetSystemMetrics( 1 ) / 2;
if( iCenterX < 20 && iCenterY < 20 )
{
iCenterX = ( GetSystemMetrics( 0 ) / 2 );
iCenterY = ( GetSystemMetrics( 1 ) / 2 );
}
D3DRECT rec2 = { iCenterX- size, iCenterY, iCenterX+ size, iCenterY+ strong};
D3DRECT rec3 = { iCenterX, iCenterY- size, iCenterX+ strong,iCenterY+ size};
pDevice->Clear(1, &rec2, D3DCLEAR_TARGET, xcolor, 0, 0);
pDevice->Clear(1, &rec3, D3DCLEAR_TARGET, xcolor, 0, 0);
}
if (Mapname)
{
sprintf (maapname, "[[-- Mapname --]] %s", (ADR_MAPNAME));
DrawText(maapname, 400,10, D3DCOLOR_ARGB( 255, 255, 255, 255 ), abc1234);
}
///////////////////////ROOM HACKS//////////////////////////////////////////////////////
if (RM)
{
DWORD dwPlayerPointer = *(DWORD*)Serverpointer;
if(dwPlayerPointer != 0)
{
*(long*)(dwPlayerPointer + OS_ROOMMASTER) = *(long*)(dwPlayerPointer + OS_PLAYER);
}
}
if (SM)
{
DWORD dwPlayerPointer = *(DWORD*)Serverpointer;
if(dwPlayerPointer != 0)
{
*(long*)(dwPlayerPointer + OS_SUPERMASTER) = *(long*)(dwPlayerPointer + OS_PLAYER);
}
}
if (Moreexp)
{
DWORD dwPlayerPointer = *(DWORD*)Serverpointer;
if(dwPlayerPointer != 0)
{
*(long*)(dwPlayerPointer + OS_50EXP) = 5;
}
}
if (Moredinner)
{
DWORD dwPlayerPointer = *(DWORD*)Serverpointer;
if(dwPlayerPointer != 0)
{
*(long*)(dwPlayerPointer + OS_50DINAR) = 5;
}
}
if (CH_Glasswalls) // on
{
if(GetAsyncKeyState(VK_SHIFT) &1)
{
*(int*)0xC44C78 = 0, 4;
}
}
else
if (CH_Glasswalls) // off
{
if(GetAsyncKeyState(VK_SHIFT) &1)
{
*(int*)0xC44C78 = 123456789;
}
}






