1. Open Microsoft Visual Studio, or Visual C++ Express:
2. Go to File > New > Project.
3. Select 'Win32 Project' as your project type.
4. In the next dialog, go to setting and check 'DLL'...then click Finish
5. Go To dllmain.cpp and Remove all the writings in it
6.write ur code and then Debug By pressing the green arrow button at top..Or go up and press Debug>Start Debugging
Ur Code should be something like this:
Code:
#include <windows.h> or #include "stdafx.h"
#define 0xaddy..
while(1)
{
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD pWallMgr = *(PDWORD)(CShell+WallMgr);// for STW
DWORD pBasicPlayerInfo = *(DWORD*)(CShell + BasicPlayerInfo);// BPI
DWORD pWeaponMgr = *(PDWORD)(CShell+WeaponMgr);// For No Recoil,NoReload,.........
if (unlimitedAmmo)
{
If(pWeaponMgr)
{
for(int i=0 ; i<LooP (according to Feature); i++)// loop is 560 for most of mem hacks cuz u loop through all of weapons
{
if ((*DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
*(float or bool according to hack*)((*(DWORD*)((*(DWORD*)(CShell+addy of weapon mgr or if u defined weapon mgr just write weapon mgr directly)) +(4*i))) + UnlimitedAmmo) = 90;// this is the value...value differs according to the hack
}
}
}
^^^ No Reload should contain this...other it wont work
if(noreload)
.....like the below but use diffrent addies
PS: THIS IS SWIFTDUDE'S BASE IT IS THE EASIEST WAY FOR A NEW C++ JUST USE IT AND MAKE ANOTHER FEATURES LIKE IT BUT CHANGE THE NAME,LOOP,VALUE AND ADDIE AND UPDATE THE ADDIES AND IF U ARE GONNA USE IT THEN PUT CREDITS AND DONE BE A NOOB
Other way is 2 follow Brimir's TUT on how to Make a Base it's stickied..
and if u wanna find addies the follow moathebest's tut for unpacking CShell
if u didnt understand anything from the following thats cuz u dont know C++ u Should go To C++ programming on MPGH
there u will find a sticky for book resources of C++ and it will help u....And if u dont understand something then ask CF Source code section and i GUESS they will help U ...
Plz tell me if i did any thing illegal cuz I just joined from a couple of hours..and dont call me a leecher i only put this to help others...
Credits:
Some of this was made by [MPGH]flameswor10 20%
other 70% is by me
Edit if u wanna make a D3D Hack this method wont work.. i suggest u Search Qmo's TUT for making a simple D3D Menu..it will help u a little bit