Hotkey
Hey guys i tried to make hotkey but i filed and i need ur help 
i need to make F11 No reload Turned on F12 No reload Turned off
Please Note : This is not my base it's swiftdude one i won't share my base to keep it save from leechers hand

Code:
#include <windows.h>
#define WeaponMgr 0xA68F80
#define NoReload 0x269C
DWORD WINAPI Hacks(LPVOID)
{
bool reload = false;
if(GetAsyncKeyState(VK_F11)&1){ reload = true; Beep(1000,1000);}
if(GetAsyncKeyState(VK_F12)&1){ reload = false; Beep(1000,1000);}
while(1)
{
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr);
if(reload)
{
if (pWeaponMgr)
{
for(int i=0; i<560; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + NoReload) = 100,0; //String is "ReloadAnimRatio"
}
}
}
Sleep(100);
}
}
bool R2H()
{
if ( GetModuleHandleA("CShell.dll") != NULL
&& GetModuleHandleA("ClientFx.fxd") != NULL )
return 1;
return 0;
}
DWORD WINAPI W41t(LPVOID)
{
while ( !R2H()) Sleep(200);
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Hacks, NULL, NULL, NULL);
return 0;
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
MessageBoxA(0, "blah blah blah","blah blah blah", 0);
CreateThread(0,0,(LPTHREAD_START_ROUTINE)W41t,0,0, 0);
}
return 1;
}
Please Note : This is not my base it's swiftdude one i won't share my base to keep it save from leechers hand



