helpI want to make a hack NoMenü with if-grind. but do not know how to declare if. you can help me? I'm still learning and am not yet arrived in the if-grind. Ich möchte ein NoMenü hack machen mit if-schleifen. weiß aber nicht wie ich if deklarieren soll. könnt ihr mit weiterhelfen? Ich bin noch am lernen und noch nicht bei den if-schleifen angekommen.
Here i made for you some examples #ifdef _ITEM_ #define _ITEM_ //Function #endif if(CH_FUNCTION == 1) // 1 = On | 0 = Off { //Function *(float*)DW_FUNCTION = 1; // On } //Ending Function
Code: #ifdef Fast Ammo #define ADR_PLAYERPOINTER 0x00A69C88 #define ADR_FASTAMMO 0x008AE96C if(CH_Fastammo == 1) { DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER; if(dwPlayerPtr != 0) { *(float*)ADR_FASTAMMO = 5000000; } } #endif then I start hack nothing happens ingame Is this right?
Originally Posted by MezzoX Code: #ifdef Fast Ammo #define ADR_PLAYERPOINTER 0x00A69C88 #define ADR_FASTAMMO 0x008AE96C if(CH_Fastammo == 1) { DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER; if(dwPlayerPtr != 0) { *(float*)ADR_FASTAMMO = 5000000; } } #endif then I start hack nothing happens ingame Is this right? Wrong code, i explain it to you 0042967A B9 6CE98A00 MOV ECX,Dumped_W.008AE96C this is our dump, the addie will be 0x008AE96C code: #define ADR_FastAmmo 008AE96C if(CH_Fastammo == 1) { DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER; if(dwPlayerPtr != 0) { *(float*)ADR_FASTAMMO = 10; } } // If you use NoMenu add the next code: #define ADR_FastAmmo 008AE96C void FastAmmo() { DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER; if(dwPlayerPtr != 0) { *(float*)ADR_FASTAMMO = 10; } } //Make sure you add "FastAmmo();" to your Ingame Hackthread