I create a hack using that code but when i click at any hotkey the hack is not activated, did someone can help me?
[PHP]// THIS CODE IS MADE BY =_FAITH_=
#include <windows.h>
#include <shellapi.h>
#pragma comment(lib,"shell32.lib")
void __cdecl PushToConsole( const char* szCommand )
{
DWORD *LTCient = ( DWORD* )( 0x377FD9F0 );
void* CONoff = ( void* )*( DWORD* )( *LTCient + 0x208 );
__asm
{
push szCommand;
call CONoff;
add esp, 4;
}
}
bool IsGameReadyForHook()
{
if( GetModuleHandleA( "d3d9.dll" ) != NULL
&& GetModuleHandleA( "ClientFX.fxd" ) != NULL
&& GetModuleHandleA( "CShell.dll" ) != NULL )
return true;
return false;
}
void MemCopy(void* Dest, const void* Src, int Len)
{
DWORD OldProtect;
DWORD OldProtect2;
VirtualProtect(Dest, Len, PAGE_EXECUTE_READWRITE, &OldProtect);
memcpy(Dest, Src, Len);
VirtualProtect(Dest, Len, OldProtect, &OldProtect2);
FlushInstructionCache(GetCurrentProcess(), Dest, Len);
}
void main()
{
MessageBoxA(NULL," detroydcoding.********.com ","Detroyd Hotkeys 1.0",MB_OK);
while (!IsGameReadyForHook()){
Sleep(20);
}
bool boxes = false;
bool fps = false;
while(true){
if(GetAsyncKeyState(VK_NUMPAD1)<0){
if(boxes){
PushToConsole("ModelDebug_DrawBoxes 0");
PushToConsole("SkelModelStencil 0");
boxes = false;
} else {
PushToConsole("ModelDebug_DrawBoxes 1");
PushToConsole("SkelModelStencil 1");
boxes = true;
}
}
if(GetAsyncKeyState(VK_NUMPAD3)<0){
if(fps){
PushToConsole("ShowFps 1");
fps = false;
} else {
PushToConsole("ShowFps 0");
fps = true;
}
}
Sleep(20);
}
}
BOOL APIENTRY DllMain( HMODULE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
ShellExecute;
CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)&main, NULL, 0,NULL);
break;
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}[/PHP]
[PHP]1>------ Build started: Project: test], Configuration: Debug Win32 ------
1>Compiling...
1>base.cpp
1>c:\users\usuario\desktop\test]\test]\base.cpp(75) : warning C4551: function call missing argument list
1>Linking...
1>LINK : C:\Users\usuario\Desktop\test]\Debug\test].dll not found or not built by the last incremental link; performing full link
1>Embedding manifest...
1>Build log was saved at "file://c:\Users\usuario\Desktop\test]\test]\Debug\BuildLog.htm"
1>test] - 0 error(s), 1 warning(s)
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped =========

/PHP]
Srry for the english, google tradutor sucks!