Results 1 to 4 of 4
  1. #1
    ezhaxezlife's Avatar
    Join Date
    Sep 2014
    Gender
    male
    Posts
    400
    Reputation
    10
    Thanks
    65

    How do I read local player's weapon ID?

    Code:
    DWORD hWeapon = Read<DWORD>(BaseAddress + DwActiveWeapon);
    int weaponEntId = hWeapon & 0xFFF;
    DWORD DwWeaponBase = Read<DWORD>(DwClient + DwEntityList + (weaponEntId - 1) * 0x10);
    int Weapon_ID = Read<int>(DwWeaponBase + DwWeaponId);
    
    return Weapon_ID;
    This is the way I used to do it and it worked fine before the update. I've changed the offsets, but it isn't working anyway. The return value is 1 no matter what.

  2. #2
    Merccy2's Avatar
    Join Date
    Jan 2015
    Gender
    male
    Posts
    886
    Reputation
    310
    Thanks
    19,668
    My Mood
    Cool
    Quote Originally Posted by ezhaxezlife View Post
    Code:
    DWORD hWeapon = Read<DWORD>(BaseAddress + DwActiveWeapon);
    int weaponEntId = hWeapon & 0xFFF;
    DWORD DwWeaponBase = Read<DWORD>(DwClient + DwEntityList + (weaponEntId - 1) * 0x10);
    int Weapon_ID = Read<int>(DwWeaponBase + DwWeaponId);
    
    return Weapon_ID;
    This is the way I used to do it and it worked fine before the update. I've changed the offsets, but it isn't working anyway. The return value is 1 no matter what.
    change the offsets.
    If you have any questions regarding my hacks, add me on Discord: Merccy#8314

  3. #3
    ezhaxezlife's Avatar
    Join Date
    Sep 2014
    Gender
    male
    Posts
    400
    Reputation
    10
    Thanks
    65
    Quote Originally Posted by Merccy2 View Post
    change the offsets.
    Done that, still doesn't seem to work.

  4. #4
    Sen66's Avatar
    Join Date
    Sep 2012
    Gender
    male
    Location
    In front of my computer
    Posts
    11
    Reputation
    10
    Thanks
    3
    There were 2 updates today, dump new offsets and use them

Similar Threads

  1. [HELP] How do i find Local Player Pointer?
    By klofee in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 6
    Last Post: 09-20-2010, 04:44 PM
  2. [TuT] How to delete read only files.
    By XGelite in forum Visual Basic Programming
    Replies: 0
    Last Post: 10-13-2009, 09:59 AM
  3. For the Idiots Who Want To Learn how 2 Hack Read This:
    By penrd in forum General Hacking
    Replies: 28
    Last Post: 08-26-2009, 02:10 AM
  4. Replies: 5
    Last Post: 07-22-2009, 04:26 PM
  5. How can I get more money or Weapons
    By taker828 in forum Combat Arms Hacks & Cheats
    Replies: 11
    Last Post: 10-15-2008, 06:27 PM

Tags for this Thread