💬 Ingame menu
nice its an awesome idea for a menu work fine 

i have change the offset nd pointer and dont work -.- 

I compiled and got this,
I'm a sort-of a noob at C++ mind helping me out? :/
Code:
1>------ Build started: Project: CFMenu, Configuration: Debug Win32 ------ 1> menu.cpp 1>menu.obj : error LNK2019: unresolved external symbol "public: void __thiscall CMenu::Nav(void)" (?Nav@CMenu@@QAEXXZ) referenced in function "unsigned long __stdcall menu(void *)" (?menu@@YGKPAX@Z) 1>menu.obj : error LNK2019: unresolved external symbol "public: void __thiscall CMenu::AddItem(char *,char * *,unsigned long *)" (?AddItem@CMenu@@QAEXPADPAPADPAK@Z) referenced in function "unsigned long __stdcall menu(void *)" (?menu@@YGKPAX@Z) 1>menu.obj : error LNK2019: unresolved external symbol "public: bool __thiscall CMenu::Ready(void)" (?Ready@CMenu@@QAE_NXZ) referenced in function "unsigned long __stdcall menu(void *)" (?menu@@YGKPAX@Z) 1>menu.obj : error LNK2019: unresolved external symbol "public: __thiscall CMenu::CMenu(char *)" (??0CMenu@@QAE@PAD@Z) referenced in function "unsigned long __stdcall menu(void *)" (?menu@@YGKPAX@Z) 1>c:\users\aguilda\documents\visual studio 2010\Projects\CFMenu\Debug\CFMenu.dll : fatal error LNK1120: 4 unresolved externals ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I commented the old menu source and added this one
and compiled. o.e
Code:
#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);
}
}
@giniyat101 Thanks works fine for me.
a question what is the string of "VisibleState" in OllyDbg ?
For me to seek the crossfire AL
and the offsets 
Give-me Only Strings
a question what is the string of "VisibleState" in OllyDbg ?
For me to seek the crossfire AL
Code:
pMenu->VisibleState = CShell + >>>> 0x37DB44 <<<<---- THIS

Give-me Only Strings
Code:
#define ID_MSG 0x1C -> vertex lock failed #define ID_NOR 0x16 -> :( #define ID_AFK 0x37 -> :(
Similar Threads
Visual Basic Programmingingame menu for hacks???
3 Call of Duty Modern Warfare 2 Server / GSC ModdingaIW Host tool v2 (+ ingame mod menu) [alterIW]KL 11 Call of Duty 7 - Black Ops Hacks & CheatsBlack Tomato M 0.3.1 BETA - Ingame Admin Menu
23 Programming Tutorial RequestsIngame Menu Hack (C++)PA 6 Combat Arms Europe Hacksingame menuVY 6

