Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    MightySaa0d's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Location
    MPGH
    Posts
    602
    Reputation
    14
    Thanks
    208
    My Mood
    Innocent
    He guys i finished making my first hack with some help from Takari (Special thanks to him)

    and when i inject it, it injects fine. the credits message box appears and i login
    (I have inserted Anti [hacktooldetected] code and it works fine

    but when i join a game, the features don't auto on. i haven't added a menu (but doing soon{probably})
    Here is the code. Help me find the problem pelase

    #include<windows.h>

    #define grenades ((i==6)||(i==7)||(i==8)||(i==64)||(i==100)||(i==12 6)||(i==135)||(i==209)||(i==210)||(i==240)||(i==26 3)||(i==272)||(i==338)||(i==382)||(i==383)||(i==38 4))

    #define WeaponMgr 0xA05E48


    #define NoReload 0x2424
    #define WeaponDamage 0x7F8
    #define Shotspread 0x0834
    #define WeaponChange 0x2424
    #define WeaponWeight 0x21D8
    #define WeaponRange 0x07EC
    #define spread 0x2428




    DWORD WINAPI Hacks(LPVOID)
    {

    bool onehit = true;
    bool reload = true;
    bool fragdmg = true;
    bool shotgun = true;
    bool change = true;
    bool weight = true;
    bool range = true;
    bool nospread = true;


    while(1)
    {
    DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
    DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr);
    //DWORD dwPlayerPointer = *(DWORD*)( CShell + PlayerPointer);



    if(onehit)
    {
    if (pWeaponMgr)
    {
    for(int i=0; i<445; i++)
    {
    if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
    *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + WeaponDamage) = 99999;
    }
    }
    }


    if(reload)
    {
    if (pWeaponMgr)
    {
    for(int i=0; i<445; i++)
    {
    if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
    *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoReload) = 0;
    }
    }
    }

    if(fragdmg)
    {
    if (pWeaponMgr)
    {
    for(int i=0; i<445; i++)
    {
    if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL && (grenades))
    *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + WeaponDamage) = 0;
    }
    }
    }

    if(weight)
    {
    if (pWeaponMgr)
    {
    for(int i=0; i<445; i++)
    {
    if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
    *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + WeaponWeight) = 0;
    }
    }
    }


    if(shotgun)
    {
    if (pWeaponMgr)
    {
    for(int i=0; i<445; i++)
    {
    if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
    *(BYTE*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + Shotspread) = 5;
    }
    }
    }

    if(WeaponChange)
    {
    if (pWeaponMgr)
    {
    for(int i=0; i<445; i++)
    {
    if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
    *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + change) = 999;
    }
    }
    }

    if(range)
    {
    if (pWeaponMgr)
    {
    for(int i=0; i<445; i++)
    {
    if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
    *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + WeaponRange) = 99999;
    }
    }
    }

    if(spread)
    {
    if (pWeaponMgr)
    {
    for(int i=0; i<445; i++)
    {
    if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
    *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + nospread) = 0;
    }
    }
    }

    BYTE nop = 0x90;
    DWORD d, ds;

    VirtualProtect((LPVOID)(CShell+0x85723), 17, PAGE_EXECUTE_READWRITE, &d);

    for (int i=0; i<17;i++)
    memcpy((LPVOID)(CShell+0x85723+i), &nop, 1);

    VirtualProtect((LPVOID)(CShell+0x85723), 17, d, &ds);

    Sleep(100);
    }
    }



    bool IsGameReadyForHook()
    {
    if(GetModuleHandleA("CShell.dll") != NULL
    && GetModuleHandleA("ClientFx.fxd") != NULL)
    return true;
    return false;
    }

    DWORD WINAPI Wait(LPVOID)
    {
    while(!IsGameReadyForHook()) Sleep(200);
    CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Hacks, NULL, NULL, NULL);
    return false;
    }

    BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
    {
    DisableThreadLibraryCalls(hDll);

    if ( dwReason == DLL_PROCESS_ATTACH )
    {
    MessageBoxA(0, "Made by MightySaa0d, Special thanks to: Takari" , "Cross Fire NA Hack" ,0);

    CreateThread(0,0,(LPTHREAD_START_ROUTINE)Wait,0,0, 0);
    }
    return 1;
    }

    Some 1 help?!
    Last edited by MightySaa0d; 09-08-2011 at 07:25 AM.
    Quote Originally Posted by Jacket View Post
    I'm sexy as fuck.

    Tired of being like him?
    Then be his master and step on him just like you step of crickets! (cockroaches)


    Thanks to the GalacticGods tutorial (By me). You will become an expert in coding just like him!

    Joke


    Just take my advice seriously and read here!!!!!!!!!!
    AND become like SwiftDude and G-Force!
    https://www.mpgh.net/forum/242-crossf...ml#post5248338

  2. #2
    giniyat101's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Location
    Not telling.
    Posts
    1,935
    Reputation
    130
    Thanks
    1,380
    My Mood
    Dead
    well.
    the main thread is killed while the game is loading.
    so you have to use a bypass with manual injection after the game loads

  3. #3
    MightySaa0d's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Location
    MPGH
    Posts
    602
    Reputation
    14
    Thanks
    208
    My Mood
    Innocent
    Quote Originally Posted by giniyat101 View Post
    well.
    the main thread is killed while the game is loading.
    so you have to use a bypass with manual injection after the game loads
    But when the game begins
    and i do manual inject, the credits message box doesn't appear which makes me understand the hack isnt injected
    Quote Originally Posted by Jacket View Post
    I'm sexy as fuck.

    Tired of being like him?
    Then be his master and step on him just like you step of crickets! (cockroaches)


    Thanks to the GalacticGods tutorial (By me). You will become an expert in coding just like him!

    Joke


    Just take my advice seriously and read here!!!!!!!!!!
    AND become like SwiftDude and G-Force!
    https://www.mpgh.net/forum/242-crossf...ml#post5248338

  4. #4
    giniyat101's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Location
    Not telling.
    Posts
    1,935
    Reputation
    130
    Thanks
    1,380
    My Mood
    Dead
    Quote Originally Posted by MightySaa0d View Post
    But when the game begins
    and i do manual inject, the credits message box doesn't appear which makes me understand the hack isnt injected
    lets imagine crossfire has three steps:

    some function (create window etc) >> loading textures weapon info etc >> anything else (after loading)

    you inject on step one so message box appears
    but when step two begins your thread is killed
    just use bypass and manual inject (in step three)

  5. #5
    [Fetty]Alex's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Location
    C:\Matrix\Users
    Posts
    68
    Reputation
    10
    Thanks
    7
    My Mood
    Sneaky
    Quote Originally Posted by giniyat101 View Post
    lets imagine crossfire has three steps:

    some function (create window etc) >> loading textures weapon info etc >> anything else (after loading)

    you inject on step one so message box appears
    but when step two begins your thread is killed
    just use bypass and manual inject (in step three)
    What he said



    To Do List
    Done []
    Not Done []

    Buy Brain.exe []
    Best Matrix Fan []
    Banned in CrossFire []
    Banned in CrossFire EU []
    Make a To Do List []

  6. #6
    Nexuz2011's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Location
    Philippines
    Posts
    163
    Reputation
    8
    Thanks
    209
    My Mood
    Cool
    update your WeaponMgr Addies!!...
    My Remix!!
    PARTY MUSIC 2012 (CLUB MIX)
    https://soundcloud.com/electro_tehj/p...-club-mix-2012

    CROSSFIRE PH HACK w/ HOOK

  7. #7
    XarutoUsoCrack's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Location
    CFAL Honra & Glória Server
    Posts
    1,087
    Reputation
    51
    Thanks
    2,543
    My Mood
    Relaxed
    LOL YOU LEECHED MY BASE FUCK YOU YOUR LEECHER !!!!

  8. #8
    giniyat101's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Location
    Not telling.
    Posts
    1,935
    Reputation
    130
    Thanks
    1,380
    My Mood
    Dead
    Quote Originally Posted by XarutoUsoCrack View Post
    LOL YOU LEECHED MY BASE FUCK YOU YOUR LEECHER !!!!
    it is not your base
    it is swiftdude's

  9. #9
    Skulhead = hacked.'s Avatar
    Join Date
    Jun 2011
    Gender
    male
    Posts
    521
    Reputation
    10
    Thanks
    225
    My Mood
    Bored
    Quote Originally Posted by giniyat101 View Post
    it is not your base
    it is swiftdude's
    Catched.

  10. The Following User Says Thank You to Skulhead = hacked. For This Useful Post:

    giniyat101 (09-08-2011)

  11. #10
    XarutoUsoCrack's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Location
    CFAL Honra & Glória Server
    Posts
    1,087
    Reputation
    51
    Thanks
    2,543
    My Mood
    Relaxed
    Quote Originally Posted by Skulhead = hacked. View Post
    Catched.
    i creat my new base !
    its leeched my functions !
    Last edited by XarutoUsoCrack; 09-08-2011 at 11:06 AM.

  12. #11
    CrossRaiders's Avatar
    Join Date
    May 2009
    Gender
    male
    Posts
    1,586
    Reputation
    29
    Thanks
    1,214
    Leecher. This is SwiftDude's Base.

  13. #12
    A$IAN's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Germany
    Posts
    5,654
    Reputation
    274
    Thanks
    2,010
    My Mood
    Amused
    ALL SHUT THE FUCK UP
    Just cuz u guys have the same code it is leeched?
    I do my codes myself and it looks almost like that shit
    I just dont do all in one line like swiftdude does
    I do
    DWORD WeaponLoop = *(DWORD*)(Weapon+(4*i));
    if(WeaponLoop)
    {
    blabla
    }

    All the same shit
    ~Donater since 19th October 2011~
    ~Ex-Crossfire Minion || Resigned on 4th February 2012 ~
    Da fuck

  14. #13
    [G]enesis's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Location
    Italy,Rome ............. Posts: 7,429
    Posts
    999
    Reputation
    -1
    Thanks
    344
    My Mood
    Happy
    Quote Originally Posted by XarutoUsoCrack View Post
    i creat my new base !
    its leeched my functions !
    Fuck off stupid BR, it's @Swiftdude 's base
    Last edited by [G]enesis; 09-08-2011 at 02:38 PM.

  15. #14
    Parody's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Posts
    383
    Reputation
    10
    Thanks
    16
    My Mood
    Amused
    Good job for your 1st hack made (:

  16. #15
    [G]enesis's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Location
    Italy,Rome ............. Posts: 7,429
    Posts
    999
    Reputation
    -1
    Thanks
    344
    My Mood
    Happy
    @Nexuz2011 Could you say the new please? I need it too . I hope only WeaponMgr is changed or i'll lose my norecoil before publish XD

    Edit: I have 0xA2A7E8 but my features doesnt work, tried 2 different addys, 3 days ago was working maybe they changed addys?
    Last edited by [G]enesis; 09-08-2011 at 02:42 PM.

Page 1 of 2 12 LastLast

Similar Threads

  1. My hack work but features don't! (code included)
    By MightySaa0d in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 8
    Last Post: 09-08-2011, 12:40 PM
  2. Every hack work but lag...
    By Midrash in forum Combat Arms Help
    Replies: 6
    Last Post: 07-30-2010, 10:57 AM
  3. Gellins D3D menu work but features crash!
    By Mr.Magicman in forum Combat Arms Help
    Replies: 0
    Last Post: 06-01-2010, 09:24 AM
  4. Hacks Work But Don't Work.
    By Rhynn0 in forum Combat Arms Help
    Replies: 1
    Last Post: 02-05-2010, 03:58 PM
  5. mpgh public hack works, but i dont know how to work it
    By skope323 in forum Combat Arms Hacks & Cheats
    Replies: 5
    Last Post: 12-24-2008, 12:27 PM