Thread: Need Code Help.

Results 1 to 12 of 12
  1. #1
    [CF]Hackers's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Location
    Narnia
    Posts
    612
    Reputation
    10
    Thanks
    46

    Need Code Help.

    I have a code, but i think im missing something.
    but im not sure what.
    So can you help me.
    Please don't make fun of me, If the code completely wrong. It's my first time.
    Don't rage either.

    ////addies 01/05/2011
    #define WeaponMgr 0xA0F338
    #define NoReload 0x2420
    #define WeaponDamage 0x07F8

    float Hithard = 999.0f;
    float FragDmg = 0.0f;
    ////hotkeys toggle + beep sounds
    if(GetAsyncKeyState(VK_F9) || GetAsyncKeyState(VK_NUMPAD0) &1) { onehit = true; Beep(512, 100); }
    if(GetAsyncKeyState(VK_F10) || GetAsyncKeyState(VK_NUMPAD1) &1) { reload = true; Beep(512, 100); }
    if(GetAsyncKeyState(VK_F11) || GetAsyncKeyState(VK_NUMPAD2) &1) { fragdmg = true; Beep(512, 100); }

    //one hit kill
    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) = Hithard;
    }
    }
    }
    ////no reload
    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) = 100;
    }
    }
    }
    It's just a basic hack i want to make, for now.
    dont rage plz.




  2. #2
    Jigsaw's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Moon
    Posts
    23,219
    Reputation
    852
    Thanks
    2,089
    /moved

    You will receive better assistance here.
    DEHUMANIZE YOURSELF
    AND FACE TO BLOODSHED

  3. #3
    Terell.'s Avatar
    Join Date
    Oct 2009
    Gender
    male
    Location
    JAMAICAA
    Posts
    6,923
    Reputation
    273
    Thanks
    1,163
    My Mood
    Angry
    Have you gotten any errors ?

    Warrock Minion 8-13-2011 - N/A
    A.V.A Minion since 11-1-11 - 11-12-11

  4. #4
    FileCorrupt's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Posts
    658
    Reputation
    -2
    Thanks
    30
    My Mood
    Amazed
    Needs WINAPI Stuff, Hooks, And #include <windows.h>.
    Edit: Don't Gernades Need To Be Defined Also?
    Last edited by FileCorrupt; 09-04-2011 at 08:03 PM.

  5. #5
    Terell.'s Avatar
    Join Date
    Oct 2009
    Gender
    male
    Location
    JAMAICAA
    Posts
    6,923
    Reputation
    273
    Thanks
    1,163
    My Mood
    Angry
    Not necessarily considering we have no idea what part of his hack this is Could be his base detours or whatever else is needed in CF.

    Warrock Minion 8-13-2011 - N/A
    A.V.A Minion since 11-1-11 - 11-12-11

  6. #6
    FileCorrupt's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Posts
    658
    Reputation
    -2
    Thanks
    30
    My Mood
    Amazed
    I'm Assuming That You Have The Rest Of Swiftdude's Base In There Too? These Are His Functions.

  7. #7
    Terell.'s Avatar
    Join Date
    Oct 2009
    Gender
    male
    Location
    JAMAICAA
    Posts
    6,923
    Reputation
    273
    Thanks
    1,163
    My Mood
    Angry

    @[CF]Hackers
    Could you provide some more info on the snippet you posted, for example what it is ?

    Warrock Minion 8-13-2011 - N/A
    A.V.A Minion since 11-1-11 - 11-12-11

  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
    just post the full code.
    and every one know it is swiftdude's base.

  9. #9
    [[SeXergy]]'s Avatar
    Join Date
    Aug 2011
    Gender
    male
    Posts
    417
    Reputation
    27
    Thanks
    130
    My Mood
    Sneaky
    Yep, we all know this is swifts base..

  10. #10
    [CF]Hackers's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Location
    Narnia
    Posts
    612
    Reputation
    10
    Thanks
    46
    Quote Originally Posted by [[SeXergy]] View Post
    Yep, we all know this is swifts base..
    Yeah alright, I was asking, I wasn't gonna leech Jesus.

  11. #11
    [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
    @[CF]Hackers You have missed addys, and missing ready2hook, wait and maindll
    Ps: Missing also credits to swiftdude

  12. #12
    giniyat101's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Location
    Not telling.
    Posts
    1,935
    Reputation
    130
    Thanks
    1,380
    My Mood
    Dead
    @[CF]Hackers
    your weapon mgr is wrong
    use 0xA2A7E8
    and no reload is 0x2424

Similar Threads

  1. [Help Request] Need Code Help.
    By [CF]Hackers in forum CrossFire Help
    Replies: 10
    Last Post: 09-10-2011, 10:20 AM
  2. I need Codes For warrock PH help me new Coder here
    By windowsxp925 in forum WarRock Philippines Hacks
    Replies: 13
    Last Post: 02-05-2011, 03:14 AM
  3. Need coding help
    By freetodownload in forum Combat Arms Discussions
    Replies: 1
    Last Post: 06-16-2010, 11:46 PM
  4. Bypass needed (not coding help)
    By IPAWN in forum C++/C Programming
    Replies: 22
    Last Post: 11-08-2009, 06:13 AM
  5. [Help] Coding help needed
    By desi4u in forum CrossFire Hacks & Cheats
    Replies: 20
    Last Post: 10-02-2009, 01:56 PM