Solved CoD 4 Internal

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

FloppyWhale

Jr.Coder
Full Member
Nobleman
Jan 12, 2015
65
308
0
Hi guys! I watched Daniel Tutorials for the Fly Hack tutorial and I'm trying to make it internal (Because why not :D). I have no clue what my problem is but when I hold space nothing happens.

Here's the code :
C++:
#include <Windows.h>
#include <iostream>

using namespace std;

DWORD myX = 0x13255C8;
DWORD myY = 0x13255CC;
DWORD myZ = 0x13255C4;

float X, Y, Z;

DWORD hiThere()
{
	while (true)
	{
		if (GetAsyncKeyState(VK_SPACE))
		{
			float newY = *(DWORD*)myY += 0.01;
			*(DWORD*)myY = newY;
		}
	}
}

BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpReserved)
{
	switch (dwReason)
	{
	case DLL_PROCESS_ATTACH:
		CreateThread(0, 0, (LPTHREAD_START_ROUTINE)hiThere, 0, 0, 0);
		MessageBoxA(NULL, "Hacks should be activated automatically.", "Boop!", MB_OK);
	}
	return TRUE;
}
Any help would be greatly appreciated!
 

Broihon

edgy 12 y/o
Escobar Tier VIP
Fleep Tier Donator
Dec 22, 2013
1,745
40,528
316
Hi guys! I watched Daniel Tutorials for the Fly Hack tutorial and I'm trying to make it internal (Because why not :D). I have no clue what my problem is but when I hold space nothing happens.

Here's the code :
C++:
#include <Windows.h>
#include <iostream>

using namespace std;

DWORD myX = 0x13255C8;
DWORD myY = 0x13255CC;
DWORD myZ = 0x13255C4;

float X, Y, Z;

DWORD hiThere()
{
	while (true)
	{
		if (GetAsyncKeyState(VK_SPACE))
		{
			float newY = *(DWORD*)myY += 0.01;
			*(DWORD*)myY = newY;
		}
	}
}

BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpReserved)
{
	switch (dwReason)
	{
	case DLL_PROCESS_ATTACH:
		CreateThread(0, 0, (LPTHREAD_START_ROUTINE)hiThere, 0, 0, 0);
		MessageBoxA(NULL, "Hacks should be activated automatically.", "Boop!", MB_OK);
	}
	return TRUE;
}
Any help would be greatly appreciated!
You're reading/writing a DWORD when you should read/write a float:
C++:
float newY = *(float*)myY += 0.01;
			*(float*)myY = newY;
 

FloppyWhale

Jr.Coder
Full Member
Nobleman
Jan 12, 2015
65
308
0
Вroihon;40579 said:
You're reading/writing a DWORD when you should read/write a float:
C++:
float newY = *(float*)myY += 0.01;
			*(float*)myY = newY;
Ohhh. Thanks!
 
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods