Well man I wold help you but I don't know where to start here...
Im pretty good with C# but never did any c++. This code calls the Kernel32.dll to read memory from CS:GO. My question is, how would I identify if my crosshair is on a enemy or not?
Code:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Diagnostics; using System.Runtime.InteropServices; namespace test { public partial class Form1 : Form { public Form1() { InitializeComponent(); } const int PROCESS_WM_READ = 0x0010; [DllImport("kernel32.dll")] public static extern IntPtr OpenProcess(int dwDesiredAccess, bool bInheritHandle, int dwProcessId); [DllImport("kernel32.dll")] public static extern bool ReadProcessMemory(int hProcess, int lpBaseAddress, byte[] lpBuffer, int dwSize, ref int lpNumberOfBytesRead); private void Form1_Load(object sender, EventArgs e) { Process process = Process.GetProcessesByName("csgo")[0]; IntPtr processHandle = OpenProcess(PROCESS_WM_READ, false, proces*****); } } }
Well man I wold help you but I don't know where to start here...
I know this is c++ but since you were really good in c# I guess you can translate it.
C++ really is the language for writing to memory, I just hate you can't make any nice forms with it. Anyways you would have to import the players' base address and see who is a teammate and whos an enemy.
MPGH Staff History:
Minion: 02-12-2013 - 6-28-2013
Former Staff: 6-28-2013 - 7-14-2014
Minion: 7-14-2014 - 1-3-2015
Minion+: 1-3-2015 - 6-1-2015
Moderator: 6-1-2015 - 10-2-2016
Global Moderator: 10-2-2016 - Current
Current Sections:
DayZ Mod & Standalone Hacks & Cheats
BattleOn Games Hacks, Cheats & Trainers
Minecraft Hacks
Other Semi-Popular First Person Shooter Hacks
Blackshot Hacks & Cheats
Need For Speed World Hacks
Other First Person Shooter Hacks
CounterStrike: Global Offensive Hacks
Garry's Mod Hacks & Cheats
Donating:
If you want to donate money to me I take Bitcoin & Paypal, PM me for either of these if you're interested and thanks.
Top Donators: (Awesome People)
FanticSteal $75.00
smurf_master $58.00 <- Best DayZ Gear Seller
Fujiyama $25.00
[MPGH]Black $10.00
[MPGH]Hova $10.00
xJudgez $4.54
[MPGH]Normen's Sheep $3.50
eminemlover $1.50
Brony?
https://www.mpgh.net/forum/groups/1728-mpgh-bronies.html
MPGH Staff History:
Minion: 02-12-2013 - 6-28-2013
Former Staff: 6-28-2013 - 7-14-2014
Minion: 7-14-2014 - 1-3-2015
Minion+: 1-3-2015 - 6-1-2015
Moderator: 6-1-2015 - 10-2-2016
Global Moderator: 10-2-2016 - Current
Current Sections:
DayZ Mod & Standalone Hacks & Cheats
BattleOn Games Hacks, Cheats & Trainers
Minecraft Hacks
Other Semi-Popular First Person Shooter Hacks
Blackshot Hacks & Cheats
Need For Speed World Hacks
Other First Person Shooter Hacks
CounterStrike: Global Offensive Hacks
Garry's Mod Hacks & Cheats
Donating:
If you want to donate money to me I take Bitcoin & Paypal, PM me for either of these if you're interested and thanks.
Top Donators: (Awesome People)
FanticSteal $75.00
smurf_master $58.00 <- Best DayZ Gear Seller
Fujiyama $25.00
[MPGH]Black $10.00
[MPGH]Hova $10.00
xJudgez $4.54
[MPGH]Normen's Sheep $3.50
eminemlover $1.50
Brony?
https://www.mpgh.net/forum/groups/1728-mpgh-bronies.html
it's possible with C#, but using Pinvoke is very unpleasant and C# is way slower language than C++. Also with game hacking you have to use WinAPI instead of .net libraries so just go for C++. Way faster, cannot be decompiled EASILY back to source, easier since you have to work with winAPI.