Results 1 to 5 of 5
  1. #1
    Codder's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Location
    :)
    Posts
    400
    Reputation
    12
    Thanks
    645
    My Mood
    Hot

    someone help please?

    then .. could someone tell me if this lowers source code is working?

    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 + 0x299D40) );
    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 Skeleton = false;
    bool FogEnable = false;
    bool CursorCenter = false;
    
    while(1)
    {
    __asm pushad;
    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)
    {
    Skeleton = !Skeleton;
    }
    if(GetAsyncKeyState(VK_NUMPAD7)&1)
    {
    FogEnable = !FogEnable;
    }
    if(GetAsyncKeyState(VK_NUMPAD8)&1)
    {
    CursorCenter = !CursorCenter;
    }
    
    if (CursorCenter)
    PushToConsole("CursorCenter 1");
    else 
    PushToConsole("CursorCenter 0");
    
    if (FogEnable)
    PushToConsole("FogEnable 1");
    else
    PushToConsole("FogEnable 0");
    
    if (Skeleton) {
    PushToConsole("ModelDebug_DrawSkeleton 1"); 
    }
    else {
    PushToConsole("ModelDebug_DrawSkeleton 0"); 
    }
    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");
    __asm popad;
    
    Sleep(100);
    }
    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, "", "", 0);
    CreateThread(NULL, NULL, dwMainThread, NULL, NULL, NULL);
    }
    return TRUE;
    }
    Last edited by Archangel; 05-21-2011 at 04:59 PM.

  2. #2
    Takari's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    Cross Fire Section
    Posts
    11,889
    Reputation
    574
    Thanks
    1,966
    My Mood
    Cool
    Not working.
    PushToConsole method isn't working anymore.
    [IMG]https://i1114.photobucke*****m/albums/k538/ImminentJM/takari.png[/IMG]




     
    Goal:
    10,000 Posts - 10/13/2011
    Become Minion - Not Done
    Become Donator - 07/29/2011
    1000 Thanks - Done - 07/25/2011
    2000 Thanks - Not Done
    Thanks Archangel for my 1,000 Thanks.
    Thanks Keroaplt for my Signature.

  3. The Following User Says Thank You to Takari For This Useful Post:

    Codder (05-21-2011)

  4. #3
    Codder's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Location
    :)
    Posts
    400
    Reputation
    12
    Thanks
    645
    My Mood
    Hot
    thank you
    /closed pls

  5. #4
    Jigsaw's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Moon
    Posts
    23,219
    Reputation
    852
    Thanks
    2,089
    Reuqest Close
    @Shane
    @Gayrab
    DEHUMANIZE YOURSELF
    AND FACE TO BLOODSHED

  6. #5
    Archangel's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    Between Both Worlds
    Posts
    8,866
    Reputation
    1021
    Thanks
    9,003
    My Mood
    Angelic
    /closed + marked as solved