Results 1 to 5 of 5
  1. #1
    I love myself
    나도 너를 사랑해

    Former Staff
    Premium Member
    Jhem's Avatar
    Join Date
    Mar 2012
    Gender
    male
    Location
    167,646,447
    Posts
    5,150
    Reputation
    1220
    Thanks
    7,393
    My Mood
    Stressed

    Need Help To Code.

    Can you Help Me...Whats Wrong..

    Code:
    #include<windows.h>
    
    #define WeaponMgr 0x0000000 
    #define BasicPlayerInfo 0x000000
    #define WallMgr 0x00000000
    #define UnlimitedAmmo 0x00000000
    
    while(1)
    {
    DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
    DWORD pWallMgr = *(PDWORD)(CShell+WallMgr);// for STW
    DWORD pBasicPlayerInfo = *(DWORD*)(CShell + BasicPlayerInfo);// BPI
    DWORD pWeaponMgr = *(PDWORD)(CShell+WeaponMgr);// For No Recoil,NoReload,.........
    
    
    if (unlimitedAmmo)
    {
    If(pWeaponMgr)
    {
    for(int i=0 ; i<LooP (according to Feature); i++)// loop is 560 for most of mem hacks cuz u loop through all of weapons
    {
    if ((*DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
    *(float or bool according to hack*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + UnlimitedAmmo) = 90;// this is the value...value differs according to the hack
    }
    }
    }
    
    Sleep(100);
    }
    }
    
     }
     
    DWORD WINAPI GodModeHack(LPVOID)
    {
    return 1;
    }
    BOOL WINAPI DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
    {
    if(GetModuleHandleA("CShell.dll") && GetModuleHandleA("ClientFx.fxd") && !LogIn)
    {
    LogIn = true;
    CreateThread(0,0,(LPTHREAD_START_ROUTINE)GodModeHack,0,0,0);
    DisableThreadLibraryCalls(hDll);
    }
    return 1;
    }
    Error...Need Help..Thanksss

  2. #2
    Sprite's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Behind you
    Posts
    1,279
    Reputation
    12
    Thanks
    1,124
    My Mood
    Psychedelic
    There's no God Mode
    That's for WarRock //
    Unlimited Ammo is patched

  3. #3
    ZigZak's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Posts
    586
    Reputation
    48
    Thanks
    36
    My Mood
    Cold
    As the person above me stated. Where did you get the code from?
    It's for WarRock not CrossFire...

  4. #4
    Threadstarter
    I love myself
    나도 너를 사랑해

    Former Staff
    Premium Member
    Jhem's Avatar
    Join Date
    Mar 2012
    Gender
    male
    Location
    167,646,447
    Posts
    5,150
    Reputation
    1220
    Thanks
    7,393
    My Mood
    Stressed
    So...Can Anyone Help Me...And Addies Need Addies..

  5. #5
    Ryuzaki™'s Avatar
    Join Date
    Apr 2011
    Gender
    male
    Location
    At my headquarter, catching KIRA
    Posts
    1,671
    Reputation
    41
    Thanks
    6,252
    My Mood
    Lurking
    As far as I observed, Warrock base is not far different from CF base I just noticed that every functions they declare void and they call all of that functions in a void thread, they named it "Hack Thread" in this thread, they will check if you are in-game or in the lobby or somewhere else and if you are in-game, that`s the time the calling of the function part will work. But I am not sure though because I just observe

    @Jheamuel123 Here in CF you don`t need to do alot of voids you would do the functions in the "HackThread"

    Just read this tutorial and it will help you alot:
    https://www.mpgh.net/forum/242-crossf...must-read.html



Similar Threads

  1. need help with coding vip console
    By GER-Domi. in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 13
    Last Post: 09-10-2010, 03:28 AM
  2. Need help on coding!!!
    By SnowyHawk in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 25
    Last Post: 09-04-2010, 03:33 AM
  3. [HELP] Need help with code. REWARD
    By deadskulz in forum Visual Basic Programming
    Replies: 14
    Last Post: 05-24-2010, 05:35 AM
  4. Need help converting code.
    By youngbucks in forum C++/C Programming
    Replies: 16
    Last Post: 01-24-2010, 01:02 PM
  5. I need help with codes
    By MATTHEW4422 in forum Combat Arms Help
    Replies: 0
    Last Post: 10-31-2009, 04:41 PM