Results 1 to 2 of 2
  1. #1
    ltuck1990's Avatar
    Join Date
    Nov 2014
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    0

    #include <window.h>

    Says "Illegal Preprocessor Directive"

    #include <windows.h>

    bool IsGameReadyForHook()
    {
    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* )( 0x377E7810 );
    DWORD CNADDIE = 0x46F670;
    void* Send = ( void* )*( DWORD* )(CNADDIE);
    void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
    __asm
    {
    push szCommand;
    call CONoff;
    add esp,4;
    }
    }

  2. #2
    Coder.DiabloX's Avatar
    Join Date
    Jul 2015
    Gender
    male
    Location
    France
    Posts
    1
    Reputation
    10
    Thanks
    4
    My Mood
    Amazed
    use this code

    #include <windows.h>
    bool hReady()
    {
    if(GetModuleHandle("ClientFX.fxd") != NULL
    && GetModuleHandle("CShell.dll") != NULL
    && GetModuleHandle("d3d9.dll") != NULL )
    return TRUE;
    return FALSE;
    }

    void hCreateFont(LPDIRECT3DDEVICE9 pDevice)
    {
    if(pFont == NULL)
    {
    D3DXCreateFont(pDevice, 14, 6, 500, 1, 0, 1, 0, 4, 0 | (0<<4), "Calibri", &pFont);
    }
    else
    {
    if(hDevice != pDevice)
    {
    hDevice = pDevice;

    try
    {
    if(pFont != 0) pFont->Release();

    } catch (...) {}

    pFont = 0;
    D3DXCreateFont(pDevice, 14, 6, 500, 1, 0, 1, 0, 4, 0 | (0<<4), "Calibri", &pFont);
    }
    }
    }

Similar Threads

  1. Replies: 27
    Last Post: 10-03-2014, 07:15 AM
  2. [Preview] New MAT China Hack Includ Window XP MAT CIB AK XSHOT SUBA Wall Hack
    By Cambodia in forum Mission Against Terror Hacks & Cheats
    Replies: 16
    Last Post: 04-02-2013, 08:48 AM
  3. [Tutorial] So you wanna start a Minecraft Server? (including full Setup) (WINDOWS)
    By rcharityman in forum Minecraft Tutorials
    Replies: 6
    Last Post: 12-04-2012, 01:13 AM
  4. [Help] INCLUDE windows.h [ help me qmo.. ]
    By adherizky in forum Piercing Blow Hack Coding/Source Code
    Replies: 3
    Last Post: 11-26-2011, 09:39 AM
  5. Windows Live Beta - Go Here Quick!
    By Dave84311 in forum General
    Replies: 6
    Last Post: 12-08-2008, 02:35 PM