Making a base

Posts 1–6 of 6 · Page 1 of 1
Making a base
can anyone help me how to make a base. i read the post on how to make a base but im really confuse on how to do it.
this is nop.newbie codes, is this a complete hack or a base only? where is the base part on this codes??

Code:
#include <windows.h>
#include <iostream>
#include <fstream>
using namespace std;

#define grenades ((i==6)||(i==7)||(i==8)||(i==64)||(i==100)||(i==12  6)||(i==135)||(i==209)||(i==210)||(i==240)||(i==26  2)||(i==263)||(i==272)||(i==288)||(i==313)||(i==33  8)||(i==357)||(i==382)||(i==383)||(i==384)||(i==39  1)||(i==416)||(i==423)||(i==424)||(i==425)||(i==43  8)||(i==473)||(i==481)||(i==500)||(i==513)||(i==51  9)||(i==554))
#define flash ((i==7)||(i==383)||(i==520))
#define smoke ((i==8)||(i==64)||(i==65))
#define WeaponMgr 0xA974A0
#define AmmoDamage 0x7F8


bool antiallboms = true;
bool Weaponhack = true ;


int  StartHack() 
{
    while(GetModuleHandleA("CShell.dll") == 0){Sleep(50); }   
    

    DWORD CShell     = (DWORD)GetModuleHandleA("CShell.dll");
    DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr);


	// log Weapon ID + name
        if (pWeaponMgr){
			std::ofstream file;
    file.open("Logger.txt");
        for(int i=0; i<1000; i++){
			DWORD wapens = *(DWORD*)(pWeaponMgr +(4*i));
			if (wapens){
			char * weaponname = (char*)(wapens + 0x0008);
          file << " ID: " << dec << i << " Name: " << (LPCTSTR)weaponname << ".\n";          
			}
                       
        }

		file.close();
        }

     // anti bom
        if (antiallboms){
		int szd = sizeof(DWORD);;
		for (int i = 0; i < 1000; i++){
			DWORD* dwTwo = (DWORD*)(pWeaponMgr + 0x04 * i);
			if (flash||smoke){
			memcpy((DWORD*)(pWeaponMgr+i*szd),(DWORD*)(pWeapon  Mgr+6*szd),szd);   
            }

			if (*dwTwo&&grenades) {
				PFLOAT items = (PFLOAT)(*dwTwo+AmmoDamage);
				if (*items) {
					*items = 0.0f;                                              
				}
			}
		}
		}

		// change M16=>Golden AK-47...
		if (Weaponhack){
			int szd = sizeof(DWORD);;
			for (int i = 0; i < 1000; i++){
					memcpy((DWORD*)(pWeaponMgr+25*szd),(DWORD*)(pWeapo  nMgr+56*szd),szd); 
				}
				
				
				}


               
       return true;
      }
	


BOOL APIENTRY DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved){
    if(fdwReason == DLL_PROCESS_ATTACH){ 
     StartHack();   // xtrap DETECTED if you CreateThread
	} 
    return TRUE;
}
Quote Originally Posted by shizzle08 View Post
can anyone help me how to make a base. i read the post on how to make a base but im really confuse on how to do it.
this is nop.newbie codes, is this a complete hack or a base only? where is the base part on this codes??

Code:
#include <windows.h>
#include <iostream>
#include <fstream>
using namespace std;

#define grenades ((i==6)||(i==7)||(i==8)||(i==64)||(i==100)||(i==12  6)||(i==135)||(i==209)||(i==210)||(i==240)||(i==26  2)||(i==263)||(i==272)||(i==288)||(i==313)||(i==33  8)||(i==357)||(i==382)||(i==383)||(i==384)||(i==39  1)||(i==416)||(i==423)||(i==424)||(i==425)||(i==43  8)||(i==473)||(i==481)||(i==500)||(i==513)||(i==51  9)||(i==554))
#define flash ((i==7)||(i==383)||(i==520))
#define smoke ((i==8)||(i==64)||(i==65))
#define WeaponMgr 0xA974A0
#define AmmoDamage 0x7F8


bool antiallboms = true;
bool Weaponhack = true ;


int  StartHack() 
{
    while(GetModuleHandleA("CShell.dll") == 0){Sleep(50); }   
    

    DWORD CShell     = (DWORD)GetModuleHandleA("CShell.dll");
    DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr);


	// log Weapon ID + name
        if (pWeaponMgr){
			std::ofstream file;
    file.open("Logger.txt");
        for(int i=0; i<1000; i++){
			DWORD wapens = *(DWORD*)(pWeaponMgr +(4*i));
			if (wapens){
			char * weaponname = (char*)(wapens + 0x0008);
          file << " ID: " << dec << i << " Name: " << (LPCTSTR)weaponname << ".\n";          
			}
                       
        }

		file.close();
        }

     // anti bom
        if (antiallboms){
		int szd = sizeof(DWORD);;
		for (int i = 0; i < 1000; i++){
			DWORD* dwTwo = (DWORD*)(pWeaponMgr + 0x04 * i);
			if (flash||smoke){
			memcpy((DWORD*)(pWeaponMgr+i*szd),(DWORD*)(pWeapon  Mgr+6*szd),szd);   
            }

			if (*dwTwo&&grenades) {
				PFLOAT items = (PFLOAT)(*dwTwo+AmmoDamage);
				if (*items) {
					*items = 0.0f;                                              
				}
			}
		}
		}

		// change M16=>Golden AK-47...
		if (Weaponhack){
			int szd = sizeof(DWORD);;
			for (int i = 0; i < 1000; i++){
					memcpy((DWORD*)(pWeaponMgr+25*szd),(DWORD*)(pWeapo  nMgr+56*szd),szd); 
				}
				
				
				}


               
       return true;
      }
	


BOOL APIENTRY DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved){
    if(fdwReason == DLL_PROCESS_ATTACH){ 
     StartHack();   // xtrap DETECTED if you CreateThread
	} 
    return TRUE;
}
Oh, Another filipino.

Matuto ka muna ng basics, Matutulungan ka ng link na ito: http://www.mpgh.net/forum/242-crossf...must-read.html then yung addys mu mali, yung addys at pointers mu pang CFNA yan. Baguhin mu refer ka sa thread ko: http://www.mpgh.net/forum/320-crossf...pse-patch.html kung kailangan mu pa ng tulong just PM me.

Then pde mu itong tanggalin sa base mu:

Code:
// log Weapon ID + name
        if (pWeaponMgr){
			std::ofstream file;
    file.open("Logger.txt");
        for(int i=0; i<1000; i++){
			DWORD wapens = *(DWORD*)(pWeaponMgr +(4*i));
			if (wapens){
			char * weaponname = (char*)(wapens + 0x0008);
          file << " ID: " << dec << i << " Name: " << (LPCTSTR)weaponname << ".\n";          
			}
                       
        }

		file.close();
        }
yng code na yn for weapon logs lang, tapos yung addy para dun sa anti all boom, parang addy lang yun nung 1 hit kill same cla ng addy.

Translation:

Learn the basics first, this link will help you: http://www.mpgh.net/forum/242-crossf...must-read.html then your addys were wrong, that pointers and addys is for CFNA only, Change it refer to my thread: http://www.mpgh.net/forum/320-crossf...pse-patch.html if you need more help just PM me.

Then you could erase this code:

Code:
// log Weapon ID + name
        if (pWeaponMgr){
			std::ofstream file;
    file.open("Logger.txt");
        for(int i=0; i<1000; i++){
			DWORD wapens = *(DWORD*)(pWeaponMgr +(4*i));
			if (wapens){
			char * weaponname = (char*)(wapens + 0x0008);
          file << " ID: " << dec << i << " Name: " << (LPCTSTR)weaponname << ".\n";          
			}
                       
        }

		file.close();
        }
That code is for weapon log only, then the addy for anti all boom is just like the 1 hit kill, they have the same addy.

Press thanks If I helped you
so you mean this base is for cfna only?? can't understand this tutorial Brimir can you post your old base so i can it for refrence
Quote Originally Posted by shizzle08 View Post
so you mean this base is for cfna only?? can't understand this tutorial Brimir can you post your old base so i can it for refrence
well who knows test it on other versions like CFEU i think it will work
but remember to update addys + offsets
that why some hacks are detected because of old addys and offsets? to make it work again i should updated them am i correct?
Quote Originally Posted by shizzle08 View Post
that why some hacks are detected because of old addys and offsets? to make it work again i should updated them am i correct?
if your game crashes, your addys were wrong. But if a XTRAP message comes out, your base is detected.
Posts 1–6 of 6 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?