game close using while

Posts 1–6 of 6 · Page 1 of 1
game close using while
I tested various sources in my device, and tested parts at parts and i detected what if using while and sleep in the source, the game close, but removing, the cheat don't work.

please help

sorry my bad english
oh, Same thing here with crossfire arx
Code:
BOOL IsGameHooked ()
{
 if ( GetModuleHandleA("CShell.dll") != 0 && GetModuleHandleA("ClientFx.fxd") != 0 )
  return true;
 return false;
}
 
VOID HookThread ( LPVOID )
{
 while (!IsGameHooked())
  Sleep(250);
 
 while ( true )
 {
	 YouWall();
 }
}
No need for more ...


Credits for Xaruto, Xaruto do not know ... and NetworkMgr
I would guess that you mean with device a hook like endscene and in a hook you already have a loop so if you use while(1) it will be crash because you are trying to make a loop inside from a loop. And if you use sleep inside the hook it will be call sleep the whole time and the game will freeze.
you are freezing the game thread ...
create a new thread or just do your stuff without loop and your hook should call your function ..
Quote Originally Posted by I2espect View Post
you are freezing the game thread ...
create a new thread or just do your stuff without loop and your hook should call your function ..
RETURNED MAKING HACKS AND SOURCES?
Posts 1–6 of 6 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us