UnhappyC++ Tutorial........Needs Correcting.........

Posts 1–12 of 12 · Page 1 of 1
C++ Tutorial........Needs Correcting.........
Guys am new to C++ and i want to know how to make a hack....THAT'S THE ONLY REASON AM LEARNING C++ so from what i
read is...:
1-Open C++ and select New project then..... Win32 Project (am a little bit confused about win 32 project cuz Philong told me to make CTR application so i dont know which one and then......... write a name and press ok...then press Next.....
Then Choose DLL..............and then Finish....... (CORRECT IF SOMETHING WRONG )

2-Get a source code which includes:
Addy's and Offsets like:
0xA65EEC

and write #define NoReload 0xA65EEC.....(i know this is full of Mistakes but am very new to C++ so can u correct ?)

and a hack code like:

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

if(onehit)
{
if (pWeaponMgr)
{
for(int i=0; i<560; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + OneHit ) = 9999;
}


}
}
if(noreload)
{
if (pWeaponMgr)
{
for(int i=0; i<560; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoReload) = 100;
}
}



}
if(nochange)
{
if (pWeaponMgr)
{
for(int i=0; i<560; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoChange) = 0.0f;
}


}
}
if(noweight)
{
if (pWeaponMgr)
{
for(int i=0; i<560; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoWeight) = 0.0f;
}


}
}
if(nospread)
{
if (pWeaponMgr)
{
for(int i=0; i<560; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoSpread) = 0.0f;
}


}
}
if(unlimitedammo)
{
if (pWeaponMgr)
{
for(int i=0; i<560; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + UnlimitedAmmo) = 90;
}


}
}
Sleep(100);
}

}
And the rest which i dont know what is it... (Hoping u would tell me and help and not saying Learn C++)
3-the make debug

4- THEN............................???? (dunno)
I know I seem a little bit dumb but am Not -.- (am still a Newbie)
You have 1 x } to mutch.
Post it in code tags, and give it tabs:

Code:
while(1)
{
	DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
	DWORD pWeaponMgr = *(DWORD*)(CShell+WeaponMgr);

	if(onehit)
	{
		if (pWeaponMgr)
		{
			for(int i=0; i<560; i++)
			{
				if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
					*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + OneHit ) = 9999;
			}


		}
	}
	if(noreload)
	{
		if (pWeaponMgr)
		{
			for(int i=0; i<560; i++)
			{
				if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
					*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoReload) = 100;
			}
		}



	}
	if(nochange)
	{
		if (pWeaponMgr)
		{
			for(int i=0; i<560; i++)
			{
				if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
					*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoChange) = 0.0f;
			}


		}
	}
	if(noweight)
	{
		if (pWeaponMgr)
		{
			for(int i=0; i<560; i++)
			{
				if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
					*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoWeight) = 0.0f;
			}


		}
	}
	if(nospread)
	{
		if (pWeaponMgr)
		{
			for(int i=0; i<560; i++)
			{
				if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
					*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoSpread) = 0.0f;
			}


		}
	}
	if(unlimitedammo)
	{
		if (pWeaponMgr)
		{
			for(int i=0; i<560; i++)
			{
				if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
					*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + UnlimitedAmmo) = 90;
			}


		}
	}
	Sleep(100);
}

}
This is not a tut, this is just some useless code.
0xA65EEC is in this case not an offset.
You don't need "Win32 Project" do you even know what that is?
9999 is not a float, that is an int.
You can do this al in 1 for loop. You wast a lot of CPU power.

And this is just a part of the code.
Quote Originally Posted by Brimir View Post
You have 1 x } to mutch.
Post it in code tags, and give it tabs:

Code:
while(1)
{
	DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
	DWORD pWeaponMgr = *(DWORD*)(CShell+WeaponMgr);

	if(onehit)
	{
		if (pWeaponMgr)
		{
			for(int i=0; i<560; i++)
			{
				if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
					*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + OneHit ) = 9999;
			}


		}
	}
	if(noreload)
	{
		if (pWeaponMgr)
		{
			for(int i=0; i<560; i++)
			{
				if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
					*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoReload) = 100;
			}
		}



	}
	if(nochange)
	{
		if (pWeaponMgr)
		{
			for(int i=0; i<560; i++)
			{
				if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
					*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoChange) = 0.0f;
			}


		}
	}
	if(noweight)
	{
		if (pWeaponMgr)
		{
			for(int i=0; i<560; i++)
			{
				if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
					*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoWeight) = 0.0f;
			}


		}
	}
	if(nospread)
	{
		if (pWeaponMgr)
		{
			for(int i=0; i<560; i++)
			{
				if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
					*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoSpread) = 0.0f;
			}


		}
	}
	if(unlimitedammo)
	{
		if (pWeaponMgr)
		{
			for(int i=0; i<560; i++)
			{
				if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
					*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + UnlimitedAmmo) = 90;
			}


		}
	}
	Sleep(100);
}

}
This is not a tut, this is just some useless code.
0xA65EEC is in this case not an offset.
You don't need "Win32 Project" do you even know what that is?
9999 is not a float, that is an int.
You can do this al in 1 for loop. You wast a lot of CPU power.

And this is just a part of the code.
then reply with a good tut -.- was expecting more from ya
u know what....if no one it going to make a tut by vid or steps or give good instructions then am not going to try to code shit.. =.=
Quote Originally Posted by moathebest View Post
u know what....if no one it going to make a tut by vid or steps or give good instructions then am not going to try to code shit.. =.=
Look at the stiky's....
There is a topic of mine xD
Quote Originally Posted by moathebest View Post
u know what....if no one it going to make a tut by vid or steps or give good instructions then am not going to try to code shit.. =.=

Hmm..
Do you realy thinks a coder Cares if you code or now?
Quote Originally Posted by Royku View Post

Hmm..
Do you realy thinks a coder Cares if you code or now?
then what ever..!>
Quote Originally Posted by moathebest View Post
then what ever..!>
i dont say STOP coding..
but you cant ask Coders to make Tuts for you..
just reads some books and you will learn..
Quote Originally Posted by Royku View Post
i dont say STOP coding..
but you cant ask Coders to make Tuts for you..
just reads some books and you will learn..
well i read a part of the stickied C++ tut but didnt get
MY LORD.SwiftBase Leeched ?????
use a simple loop.

if(???) {
*(float*)(CShell + 0x???) = ?;
}
First of all
WHERE is your MainDLL ..?
Posts 1–12 of 12 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us