Thread: help with code?

Results 1 to 3 of 3
  1. #1
    whipmaster47's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    0
    My Mood
    Lurking

    help with code?

    Ok so i wanted to try and make a hack ( not make i mean use) so i went the this thread

    https://www.mpgh.net/forum/242-crossf...urce-easy.html

    and i did EXACTLY what it says used his code that he has posted there

    #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 + 0x2AAE80) );
    void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x1F8 );
    _asm
    {
    push szVal;
    call CONoff;
    add esp, 4;
    }
    }
    }
    DWORD WINAPI Main(LPVOID) {
    while(GetModuleHandleA("CShell.dll") == NULL ) {
    Sleep(150);
    }

    bool PlayerGlow = true;
    bool FogEnable = false;
    bool Nosmoke = true;
    bool Whitewalls = false;


    for(; {
    __asm pushad;
    if(GetAsyncKeyState(VK_F2)&1) {
    PlayerGlow = !PlayerGlow;
    }
    if(GetAsyncKeyState(VK_F3)&1) {
    FogEnable = !FogEnable;
    }
    if(GetAsyncKeyState(VK_F4)&1) {
    Nosmoke = !Nosmoke;
    }
    if(GetAsyncKeyState(VK_F9)&1) {
    Whitewalls = !Whitewalls;
    }

    if (Nosmoke) {
    PushToConsole("DrawParticles 1");
    }
    else {
    PushToConsole("DrawParticles 0");
    }

    if (FogEnable) {
    PushToConsole("FogEnable 1");
    }
    else {
    PushToConsole("FogEnable 0");
    }
    if (PlayerGlow) {
    PushToConsole("ScreenGlowEnable 1");

    }
    else {
    PushToConsole("ScreenGlowEnable 0");

    }
    if (Whitewalls) {
    PushToConsole("DrawFlat 1");
    }
    else {
    PushToConsole("DrawFlat 0");
    }
    Sleep(100);
    __asm popad;
    }
    }
    BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
    {
    DisableThreadLibraryCalls(hDll);
    if ( dwReason == DLL_PROCESS_ATTACH )
    {
    MessageBoxA(0, "The Creators Name Here ", "Successfully Injected", 0);
    system("start https://www.mpgh.net");
    CreateThread(NULL, NULL,Main, NULL, NULL, NULL);
    }
    return TRUE;
    }

    that lol and i did debug like it says and all and it came back with There are build erros. Would you like to continue and run the last successful build?

    (YES) (NO)

    what do i do? can any1 help>? or maybe post a code you use that you KNOW works and see if its just that code? Please help

    P.S That code cam out weird but if you go to original thread you'll see it normal thanks

  2. #2
    blackgaming's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Posts
    72
    Reputation
    10
    Thanks
    6
    My Mood
    Aggressive
    ~They say that the PTC command is not working anymore so search some source code to make a new hack

  3. #3
    NOOBJr's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    in NOOB
    Posts
    1,424
    Reputation
    112
    Thanks
    693
    Next time post this in the source code section! The people their no what their talking about!

Similar Threads

  1. need a little help with coding
    By jmonking in forum C++/C Programming
    Replies: 13
    Last Post: 09-14-2009, 08:55 AM
  2. need a little help with coding
    By jmonking in forum C++/C Programming
    Replies: 9
    Last Post: 09-11-2009, 10:57 PM
  3. Help with coding
    By josh906 in forum Suggestions, Requests & Help
    Replies: 0
    Last Post: 09-13-2008, 11:57 PM
  4. Help with codes
    By kalwarbo2008 in forum C++/C Programming
    Replies: 8
    Last Post: 07-26-2008, 08:58 AM
  5. Help With Coding Please
    By pbguy145 in forum WarRock - International Hacks
    Replies: 1
    Last Post: 10-10-2007, 06:52 PM

Tags for this Thread