I have looked around other forums and can't find the answer anywhere. Can anyone help me?
static void Main(string[] args) {
csProcess = Process.GetProcessesByName("notepad").FirstOrDefault();
if (csProcess == null) { return; } // notepad isn't running
modules = csProcess.Modules;
foreach(ProcessModule module in modules) {
if (module.ModuleName == "client.dll") {
int ClientDLL = Mem.Module("client.dll");
}
int LocalPlayer = ReadProcessMemory(ClientDLL + m_dwLocalPlayer);
int LocalTeam = ReadProcessMemory(LocalPlayer + m_iTeamNum);
int CrossHairID = ReadProcessMemory(LocalPlayer + m_iCrossHairID);
int EmemyinCrossHair = ReadProcessMemory(ClientDLL + m_dwEntityList +
((CrossHairID - 1) * EntLoopDist));
int EnemyTeam = ReadProcessMemory(EnemyInCrossHair + m_iTeamNum);
int EnemyHealth = ReadProcessMemory(EnemyinCrossHair + m_iHealth);
if (EnemyHealth > 0 && EnemyTeam != LocalTeam) {
mouse_event(MOUSEEVENTF_LEFTDOWN, Control.MousePosition.X,
Control.MousePosition.Y, 0, 0);
mouse_event(MOUSEEVENTF_LEFTUP, Control.MousePosition.X,
Control.MousePosition.Y, 0, 0);
}
}
}
I need step by step instructions please.