PostSimple Noflash

Posts 16 of 6 · Page 1 of 1
Simple Noflash
Hello there i want to share Noflash
2 min Noflash
Have Fun

Code:
while (true)
	{
		INT32 localPlayer = mem.Read<INT32>(ClientDLL + localPlayerOffset);
		if (enable)
		{
			if (mem.Read<float>(localPlayer + flashMaxAlphaOffset) > 0.0f)
			{
				mem.Write<float>(localPlayer + flashMaxAlphaOffset, 0.0f);
			}
		}
		else if (mem.Read<float>(localPlayer + flashMaxAlphaOffset) == 0.0f)
		{
			mem.Write<float>(localPlayer + flashMaxAlphaOffset, 255.0f);
		}
	}
Quote Originally Posted by Azuki View Post
wrong section- @Mayion
Yeah i know i was too lazy to find the right section i know that there are good moderators move it Sorry .!
Don't forget to add a sleep in your while.
Quote Originally Posted by Merccy2 View Post
Don't forget to add a sleep in your while.
Thanks /tooshort
Gotta some questions:

I used this snippet:

Function
Code:
void SetFlashDuration(float fDuration)
{
	if( mem.ReadNew<float>(DwLocalPlayer + flashDurationOffset) > 0.0f ) {
		mem.WriteNew<float>(DwLocalPlayer + flashDurationOffset, 0);
	}
}
And made it as a thread

Code:
DWORD WINAPI NF(LPVOID params)
{
	cout << "NoFlash thread is running..." << endl;
	while (!GetAsyncKeyState(PanicVkeyCode))
	{
		Sleep(1);

		if (GetAsyncKeyState(PanicVkeyCode))
		{
			ExitThread(0);
		}
		
		if(noFlashEnabled) {

			SetFlashDuration(0);
		}
	}	
}
But this isn't working:

Code:
CreateThread(0, 0x1002, &NF, 0, 0, 0);
No compile errors at all.
I'm using this with the PolyLoader Compiler.

Any suggestions?

- - - Updated - - -

Code:
 if (GetAsyncKeyState(*desired key*) < 0 && GetAsyncKeyState(*desired key*) < 0) SetFlashDuration(0);
Would be this better? Does this work?
Posts 16 of 6 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?