Results 1 to 8 of 8
  1. #1
    conman1136's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    348
    Reputation
    10
    Thanks
    89
    My Mood
    Inspired

    source code help!

    here is what i have been working on. i have bloods base.
    when i inject it nothing happens. sorry i am new to this.. pls no rage! what is wrong with the code?

    #include <Windows.h>
    #include <iostream>

    using namespace std;

    void __cdecl PushToConsole(char* szVal )
    {
    DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
    if( dwCShell != NULL )
    {
    DWORD *LTClient = ( DWORD* )( (dwCShell + 0x28BCE0) );
    void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x1F8 );
    _asm
    {
    push szVal;
    call CONoff;
    add esp, 4;
    }
    }
    }

    BOOL WINAPI Main (LPVOID)
    {
    bool boxes = true;
    bool nosky = false;
    bool worldframe = false;
    bool playerframe = false;
    bool nogun = false;
    bool CursorCenter = false;
    bool DrawParticles = false;

    while(1)
    {
    if(GetAsyncKeyState(VK_NUMPAD1)&1)
    {
    boxes = !boxes;
    }
    if(GetAsyncKeyState(VK_NUMPAD2)&1)
    {
    nosky = !nosky;
    }
    if(GetAsyncKeyState(VK_NUMPAD3)&1)
    {
    worldframe = !worldframe;
    }
    if(GetAsyncKeyState(VK_NUMPAD4)&1)
    {
    playerframe = !playerframe;
    }
    if(GetAsyncKeyState(VK_NUMPAD5)&1)
    {
    nogun = !nogun;
    }
    if(GetAsyncKeyState(VK_NUMPAD6)&1)
    {
    CursorCenter = !CursorCenter;
    }
    if(GetAsyncKeyState(VK_NUMPAD7)&1)

    DrawParticles = !Drawparticles;
    }

    if (boxes)
    PushToConsole("ModelDebug_DrawBoxes 1");
    else
    PushToConsole("ModelDebug_DrawBoxes 0");

    if (nosky)
    PushToConsole("DrawSky 0");
    else
    PushToConsole("DrawSky 1");

    if (worldframe)
    PushToConsole("WireFrame 1");
    else
    PushToConsole("WireFrame 0");

    if (playerframe)
    PushToConsole("WireFrameModels 1");
    else
    PushToConsole("WireFrameModels 0");

    if (nogun)
    PushToConsole("DrawGuns 0");
    else
    PushToConsole("DrawGuns 1");

    if (CursorCenter)
    PushToConsole("CursorCenter 1");
    else
    PushToConsole("CursorCenter 0");

    if (no smoke)
    PushToConsole("DrawParticles 1");
    else
    PushToConsole("DrawParticles 0");

    Sleep(100);
    }
    }

    bool Ready(void)
    {
    if( GetModuleHandleA("CShell.dll")!= NULL)
    return true;
    return false;
    }

    DWORD WINAPI dwMainThread(LPVOID)
    {
    while (!Ready())
    Sleep(200);
    CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Main, NULL, NULL, NULL);
    return 0;
    }

    BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
    {
    DisableThreadLibraryCalls(hDll);
    if ( dwReason == DLL_PROCESS_ATTACH )
    {
    MessageBoxA(0, "Coded By Conman", "Injected", 0);
    CreateThread(NULL, NULL, dwMainThread, NULL, NULL, NULL);
    }
    return TRUE;
    }
    please help me!

  2. #2
    conman1136's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    348
    Reputation
    10
    Thanks
    89
    My Mood
    Inspired
    CAN SOMEONE PLEASE HELP ME!?!?!?!?!

  3. #3
    lauwy's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    522
    Reputation
    19
    Thanks
    1,106
    Your LTClient is outdated..

    Here I post a source after the update:
    https://www.mpgh.net/forum/242-crossf...-my-hacks.html

    That one is working.

  4. #4
    Swiftdude's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    Illinois.
    Posts
    12,572
    Reputation
    1130
    Thanks
    2,995
    My Mood
    Cynical
    LT client is outdated and xtrap detects hotkeys
    Still love you Giggletron

  5. #5
    mrkiller2010's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    In CrossFire
    Posts
    724
    Reputation
    12
    Thanks
    311
    My Mood
    Yeehaw
    Yes swiftdude is right and make sure renew the LTc client blood uloaded

  6. #6
    lauwy's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    522
    Reputation
    19
    Thanks
    1,106
    Hotkey's still work for me :P
    Need some help to get back on track

    Find the pointer to the D3D9 Device (Not usefull for Cross)

    https://www.mpgh.net/forum/242-crossf...ice-lauwy.html

    Fix olly if scanning doesn't work

    https://www.mpgh.net/forum/242-crossf...ing-fails.html

    Unpack cshell.dll

    https://www.mpgh.net/forum/242-crossf...shell-dll.html

  7. #7
    Hahaz's Avatar
    Join Date
    Sep 2008
    Gender
    male
    Location
    Matrix World
    Posts
    1,170
    Reputation
    64
    Thanks
    4,091
    My Mood
    Bored
    Quote Originally Posted by lauwy View Post
    Hotkey's still work for me :P
    how?


    .

  8. #8
    lauwy's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    522
    Reputation
    19
    Thanks
    1,106
    On windows 7 64x they work. On xp 32 bit they don't work.

    But registerhotkey works with xp also
    Need some help to get back on track

    Find the pointer to the D3D9 Device (Not usefull for Cross)

    https://www.mpgh.net/forum/242-crossf...ice-lauwy.html

    Fix olly if scanning doesn't work

    https://www.mpgh.net/forum/242-crossf...ing-fails.html

    Unpack cshell.dll

    https://www.mpgh.net/forum/242-crossf...shell-dll.html

Similar Threads

  1. Source Code help plz
    By hunter7890 in forum Call of Duty Modern Warfare 2 Coding / Programming / Source Code
    Replies: 2
    Last Post: 06-14-2011, 01:48 AM
  2. [Help] Source Code Help !
    By **HACKER** in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 5
    Last Post: 03-04-2011, 03:03 PM
  3. [HELP] Source Code Help
    By jonnyboy9985 in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 10
    Last Post: 08-12-2010, 06:14 PM
  4. Source Code help
    By nicklus in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 8
    Last Post: 07-27-2010, 08:19 PM
  5. [Help] Source code +Help+Release
    By maxius12 in forum CrossFire Hacks & Cheats
    Replies: 33
    Last Post: 02-26-2010, 09:22 PM