Results 1 to 7 of 7
  1. #1
    Dr.Coder7's Avatar
    Join Date
    May 2013
    Gender
    male
    Posts
    7
    Reputation
    10
    Thanks
    0

    Unhappy UnliAmmo Memory Not Work

    UnliAmmo Memory Not Work, whats wrong?

    >>#define ADR_MemUnliammo 0x00957F08
    [HTML]
    DWORD ammo;

    void UnliAmmo()
    {
    DWORD dwPlayerPtr = *(DWORD*)ADR_PlayerPointer;
    if(dwPlayerPtr != 0){

    if (GetAsyncKeyState(VK_F8)) //record ammo
    {
    ammo = *(int*)ADR_Unliammo;
    }

    if(GetAsyncKeyState(VK_F5) &1) //on
    {
    *(int*)ADR_Unliammo = 0;
    }

    if(GetAsyncKeyState(VK_F6) &1) //off
    {
    *(int*)ADR_Unliammo = ammo ;
    }
    }}
    [/HTML]

    im already use Cpacth but not working!

    [HTML]#include <windows.h>
    #include "CPatch.h"


    #define ADR_PlayerPointer 0x00
    #define ADR_ServerPointer 0x00
    #define ADR_Unliammo 0x00



    CPatch pammo (ADR_Unliammo , 6);

    DWORD *ingame= (DWORD*)ADR_PlayerPointer;
    DWORD *outgame= (DWORD*)ADR_ServerPointer;


    void ammoon()
    {
    if(GetAsyncKeyState(VK_F5) &1)
    {
    MessageBeep(MB_ICONINFORMATION);
    *(int*)ADR_Unliammo= 6;
    pammo.PatchOnce ((void *)"\x00\x00\x00\x00",4);
    }
    }

    void ammooff()
    {
    if(GetAsyncKeyState(VK_F6) &1)
    {
    MessageBeep(MB_ICONINFORMATION);
    *(int*)ADR_Unliammo= 0;


    pammo.RestorePatch();
    }
    }


    void HackThread()
    {
    for(;; )
    {
    if(*ingame)
    {
    rapidfire();
    invisible();
    ammoon();
    ammooff();
    }
    if(*outgame)
    {
    }
    Sleep(200);
    }
    }
    [/HTML]

  2. #2
    MJCreado's Avatar
    Join Date
    Oct 2011
    Gender
    male
    Location
    Germany
    Posts
    557
    Reputation
    58
    Thanks
    810
    My Mood
    Bored
    wag po kase lagi C&P ginagawa wag ganun.

    https://www.mpgh.net/forum/365-warroc...ml#post6014234

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

    EarlDakz (05-06-2013)

  4. #3
    Dr.Coder7's Avatar
    Join Date
    May 2013
    Gender
    male
    Posts
    7
    Reputation
    10
    Thanks
    0
    Sir do you a rigth address i think the prob is in address

  5. #4
    dungzkii's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Location
    #defiine ADR_MPGH
    Posts
    1,473
    Reputation
    10
    Thanks
    2,175
    My Mood
    Sneaky
    @Dr.Coder7

    Code:
    #define UnlimitedAmmo 0x0098894C

  6. #5
    Dr.Coder7's Avatar
    Join Date
    May 2013
    Gender
    male
    Posts
    7
    Reputation
    10
    Thanks
    0
    @dungzkii request current dump

  7. #6
    F l a p J a c K ™'s Avatar
    Join Date
    Jul 2012
    Gender
    male
    Location
    WarRock PH Force
    Posts
    1,737
    Reputation
    10
    Thanks
    1,472
    My Mood
    Bitchy
    tol dpat kasi may record ammo ) void recordammo )

    A good coder is someone who always looks both ways before crossing a one-way street.
    ~Doug Linder

    Ramzking Injector: Press Here
    MPGH member since: 07-18-2012











  8. #7
    WhiteHat PH's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Location
    Some Where I Belong
    Posts
    1,350
    Reputation
    25
    Thanks
    3,099
    My Mood
    Aggressive
    @F l a p J a c K ™ 2ol meron nman ata ^^

    if (GetAsyncKeyState(VK_F8)) //record ammo
    {
    ammo = *(int*)ADR_Unliammo;
    }






    When Im gone dont forget me cause I will come back someday.



    Youtube Channel


     


Similar Threads

  1. Why is this code not working ? memory hacking
    By xXsc00pedXx in forum C++/C Programming
    Replies: 8
    Last Post: 03-26-2013, 06:45 AM
  2. Prestige not Working(Memory Hacking) & Ollydbg
    By Bluthera in forum Visual Basic Programming
    Replies: 7
    Last Post: 02-28-2010, 08:33 AM
  3. why warrock not working now??
    By tolik13 in forum WarRock - International Hacks
    Replies: 4
    Last Post: 07-09-2006, 03:27 PM
  4. WPE not work
    By trekpik in forum WarRock - International Hacks
    Replies: 3
    Last Post: 07-09-2006, 10:09 AM