DWORD WINAPI Wait(LPVOID) is useless, you can use Wait to do the hacks later, like this:
Code:
DWORD WINAPI Wait(LPVOID)
{
Sleep(9000);
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Hacks, NULL, NULL, NULL);
return 0;
}
And Weaponc = Cshell+weaponc, so you need to rewrite this:
Code:
if((*(DWORD*)((*(DWORD*)(Cshell+weaponc))+(4*i))) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(Cshell+weaponc))+(4*i))) + NoReload) = 100;
Weaponc + 4*i = the weapon, you can make a pointer to the DWORD*
the weapon + 0x2424 = reload time,you can make a pointer to the DWORD*
I think that crossfire will detect this:
Write a loop at a different way. A way were you can break out
And why you don't make a thread for the hacks, and a thread for the hotkey's? Then you can do the hotkey cheak realtime and then you don't need to wait for the hacks.
And why you make the hotkey part that way? Now you only can enable.
I see that you don't use the function that I posted, but it is useless here, If you want to change the weapon names you need to use it. But if I were you I let them in your project. They can be usefull some time
