Hack Function not working after leaving the room

Posts 1–7 of 7 · Page 1 of 1
Hack Function not working after leaving the room
Why does NoFlash not work after the match finished?

Code:
int main()

{
	
	cout << "searching for cs:go" << endl;
	gameWindow = FindWindow(NULL, "Counter-Strike: Global Offensive");

	
	while (!gameWindow)
	{
		
		gameWindow = FindWindow(NULL, "Counter-Strike: Global Offensive");
		Sleep(300);
	}

	Memory.Process("csgo.exe");

	
	
	DWORD dwBaseAddress = Memory.GetModuleBaseAddress("client.dll");
	DWORD dwlocalplayer = Memory.ReadMemory<DWORD>(dwBaseAddress + offsets.m_localplayer);

	noFlash();   // void function to call
	
	
	

	return 0;


	

	}
Because your localplayer has updated so check your localplayer every 5 sec or so, and if that doesnt work give us the source of "noFlash()"
First, turn your attach ("process") function into a bool, so you can use it like this:

Code:
std::cout << "Searching for cs:go!" << std::endl;
while (!Memory.Process("csgo.exe")
{
      Sleep(100);
}
Second, you dont use loop/thread, or if u use any loop it is inside noFlash(), you should show the noFlash function if you need someone to help you...
Code:
void noFlash()

{
	while (true)

	{


		if (offsets.noFlashenabled) {              //noFlashenabled is always true (type:bool)


			float fLocalPlayerFlashMaxAlpha = Memory.ReadMemory<float>(dwlocalplayer + offsets.m_flashMaxAlpha);
			if (fLocalPlayerFlashMaxAlpha > 0.f)
				Memory.WriteMemory<float>(offsets.dwlocalplayer + offsets.m_flashMaxAlpha, 0.f);
		}


		Sleep(1);
	}
Your no flash function isn't updating the localplayer, which changes whenever the map changes or you connect to a new server.
Quote Originally Posted by PhY'z View Post
Second, you dont use loop/thread, or if u use any loop it is inside noFlash(), you should show the noFlash function if you need someone to help you..
Thanks fixed it. Apparently found some use in <thread> lol
/Solved & closed.
Posts 1–7 of 7 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us