
pMenu->MessageFunc = CShell + 0x84570; pMenu->VisibleState = CShell + 0x37DB44; pMenu->PTC = CShell + 0x35AC34;
char* optOffOn[] = {"Off", "On", NULL};
add a pMenu->Nav()
#include <windows.h>
#include "menu.h"
DWORD WINAPI menu(LPVOID lpParam)
{
//Create the new menu
CMenu* pMenu = new CMenu("giniyat101");
//Wait until we are ready
do
{
Sleep(100);
} while (!pMenu->Ready());
//CShell base address
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
//Pass the pointers to the menu
pMenu->MessageFunc = CShell + 0x84570;
pMenu->VisibleState = CShell + 0x37DB44;
pMenu->PTC = CShell + 0x35AC34;
//Our options
//MUST TERMINATE WITH NULL!!!
char* optOffOn[] = {"Off", "On", NULL};
//variables to store current state
DWORD noreload = 0;
DWORD nochange = 0;
DWORD wallhack = 0;
//Add some items
pMenu->AddItem("No reload", optOffOn, &noreload);
pMenu->AddItem("No change", optOffOn, &nochange);
pMenu->AddItem("Wall hack", optOffOn, &wallhack);
//Lets begin memory hacks
while (1)
{
DWORD pWeaponMgr = *(DWORD*)(CShell+0xAB2940);
if (pWeaponMgr)
{
for (int i=0; i<650; i++)
{
DWORD pWeapon = *(DWORD*)(pWeaponMgr+i*4);
if (pWeapon)
{
if (noreload)
*(FLOAT*)(pWeapon+0x26C4) = 100.0f;
else
*(FLOAT*)(pWeapon+0x26C4) = 1.0f;
if (nochange)
*(FLOAT*)(pWeapon+0x26C8) = 100.0f;
else
*(FLOAT*)(pWeapon+0x26C8) = 1.0f;
}
}
}
if (wallhack)
memcpy((VOID*)0x6CE76C, "\x00\x00\x00\x00\x00\x00", 6);
else
memcpy((VOID*)0x6CE76C, "\x01\x01\x01\x01\x01\x01", 6);
//Must place in a while(1)
pMenu->Nav();
Sleep(100);
}
}
BOOL WINAPI DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
{
if (dwReason == DLL_PROCESS_ATTACH)
{
DisableThreadLibraryCalls(hDll);
CreateThread(NULL, NULL, menu, NULL, NULL, NULL);
}
}
please`?
//never saw them changed but you will need to change them for CFPH #define ID_MSG 0x1C #define ID_NOR 0x16 #define ID_AFK 0x37


#define ID_MSG 0x1D #define ID_NOR 0x17 #define ID_AFK 0x47 pMenu->MessageFunc = CShell + 0x7FF30; pMenu->VisibleState = CShell + 0x38AC04; pMenu->PTC = CShell + 0x35EC54;