Hello Mpgh!

I've been wanting to make a Combat Arms hack for sometime now, so I thought I'd start of reading various guides on how to make one. I am completely new to C++ aand would like to know if I'm doing it right and how to add push notifications into this hack, this hopefuly is a menu hack I am making, I am not sure.

For example, CoderNever's guide:
https://www.mpgh.net/forum/207-combat...arms-hack.html

And found some Addies here:
https://www.mpgh.net/forum/207-combat...es-7-10-a.html

And some useful functions:
https://www.mpgh.net/forum/207-combat...functions.html

I've read all of it, and this is what I've made:

Code:
#include <windows.h>
system("start https://www.mpgh.net/");
bool IsGameReadyForHook()
bool norecoil = false;
{
if( GetModuleHandleA( "d3d9.dll"     ) != NULL 
&& GetModuleHandleA( "ClientFX.fxd" ) != NULL 
&& GetModuleHandleA( "CShell.dll"   ) != NULL )
return true;
return false;
}
void __cdecl PushToConsole( const char* szCommand )
{
DWORD *LTClient = ( DWORD* )( 0x3778BFB0 );
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
__asm
{
push szCommand;
call CONoff;
add esp, 4;
}
}	
void main()
{
while(true)
{
PushToConsole("SkelModelStencil 1");
}
void NoRecoilon()
{
	memcpy((LPVOID)0x3741A550, "\x90\x90\x90", 3);
	memcpy((LPVOID)0x3740AA99, "\x90\x90\x90", 3);
	memcpy((LPVOID)0x3741A564, "\x90\x90\x90", 3);
	memcpy((LPVOID)0x3741A567, "\x90\x90\x90", 3);
	memcpy((LPVOID)0x3741A570, "\x90\x90\x90", 3);
}
void NoRecoiloff()
{
	memcpy((LPVOID)0x3741A550, "\xD8\x66\x54", 3);
	memcpy((LPVOID)0x3740AA99, "\xD9\x46\x54", 3);
	memcpy((LPVOID)0x3741A564, "\xD9\x5E\x54", 3);
	memcpy((LPVOID)0x3741A567, "\xD9\x46\x48", 3);
	memcpy((LPVOID)0x3741A570, "\xD9\x5E\x48", 3);
}
}
DWORD WINAPI HackThread(LPVOID)
{
while( !IsGameReadyForHook() )
Sleep(100);
main();
return 0;
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
CreateThread(NULL, NULL, HackThread, NULL, NULL, NULL);
}
return TRUE;
}
I'm just experiementing with the no recoil addy wondering if this is how you put it in the code thing, and is "bool norecoil = false;" global variable in the right place? If anyone can point me in the right direction, I will deeply appreciate it.