Solvedhi help with Fullbright

Posts 1–3 of 3 · Page 1 of 1
hi help with Fullbright
Code:
#include <windows.h>

DWORD WINAPI TestFunction( LPVOID lpParam )
{
        while (true) {
		if ((GetAsyncKeyState(VK_NUMPAD8) & 1))  {
		        //On
			* ( DWORD* ) 0x5F9690C = 4;
				
		} else if ((GetAsyncKeyState(VK_NUMPAD7) & 1))  {
			//reset;
			* ( DWORD* ) 0x5F9690C = 9;
                }
	}
	  
        Sleep(200);
        return 0;
}

BOOL WINAPI DllMain (HINSTANCE hModule, DWORD dwAttached, LPVOID lpvReserved)
{
    if (dwAttached == DLL_PROCESS_ATTACH) {
        CreateThread(NULL,0,&TestFunction,NULL,0,NULL);
    }
    return 1;
}
this works but why my game lag
Get a better pc

now seriously... put the Sleep(200) inside the while loop.. otherwise it is useless.. that might help you a bit. Also you can increase the sleep to like 5000 or 10000. The value only resets itself when changing map so you don't need to keep writing every single second.
man ur right and thanx 4 the help
Posts 1–3 of 3 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

Talk with us