Solved Health Esp

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

kartal0746

Newbie
Full Member
Sep 15, 2013
14
389
1
C++:
#include <Windows.h>
#include <sstream>
#include <iostream> 
#include <math.h>  
#include "HackProcess.h"
#include <vector>
#include <algorithm>   
#define PI 3.14159265
CHackProcess fProcess;  
int can;
using namespace std;  
#define F6_Key 0x75
#define RIGHT_MOUSE 0xA0
#define left_MOUSE 0x20

#define FL_ONGROUND 129
int NumOfPlayers = 32;
const DWORD dw_PlayerCountOffs = 0x554E10;//Engine.dll
const DWORD Player_Base = 0x478A3C;//0x00574560;
const DWORD dw_mTeamOffset = 0x22C;//client
const DWORD dw_Health = 0x9C;//client
const DWORD dw_Pos = 0x2BC;//client
const DWORD EntityPlayer_Base = 0x478A4C;
const DWORD EntityLoopDistance = 0x10;
const DWORD ad = 0xCFC;
const DWORD mermioffset = 0x10;
bool b_ShotNow = false;
const DWORD dw_Attack = 0x3AAB14;//client
int i_Shoot = 5;
int i_DontShoot = 4;
const DWORD dw_crosshairOffs = 0x3C57D8;//Client.dll
const DWORD ofsett = 0x120C;
const DWORD mermiadress = 0x478DCC;//Client.dll
const DWORD mermiofset = 0x4D8;
const DWORD dw_m_angRotation = 0x381858;
const DWORD dw_vMatrix = 0x5296F8;
const DWORD dw_antiFlick = 0x5296C4;
const DWORD sekmemeofset = 0x1264;
const DWORD yercekimi = 0xBC;
const DWORD m_ArmorValue = 0xC04;

const DWORD paraadres = 0x37B224;
const DWORD paraofset = 0x11AC;
const DWORD sv_cheats = 0x55495C;
const DWORD zoomaofset = 0x7CC;




void DrawESP(int x, int y, int distance)
{
	 

	if (MyPlayer.zom == 90 | MyPlayer.zom == 0 )
	{
		int width = 18100 / distance;
		int height = 36000 / distance;
		DrawBorderBox(x - (width / 2), y - height, width, height, 3);
	}
	if (MyPlayer.zom == 40)
	{
		int width = 30000 / distance;
		int height = 85000 / distance;
		DrawBorderBox(x - (width /2), y - height, width, height, 3);
	}

	if (MyPlayer.zom == 10 )
	{
		int width = 190000 / distance;
		int height = 330000 / distance;
		DrawBorderBox(x - (width / 2), y - height, width, height, 3);
	}

	if (MyPlayer.zom == 55)
	{
		int width = 20100 / distance;
		int height = 60000 / distance;
		DrawBorderBox(x - (width / 2), y - height, width, height, 3);
	}

	if (MyPlayer.zom == 15)
	{
		int width = 100000 / distance;
		int height = 230000 / distance;
		DrawBorderBox(x - (width / 2), y - height, width, height, 3);
	}

	//Sandwich ++
	DrawLine((m_Rect.right - m_Rect.left) / 2,
		m_Rect.bottom - m_Rect.top, x, y,
		SnapLineCOLOR);


	std::stringstream ss;
	ss << (int)distance/36;
	

	char * distanceInfo = new char[ss.str().size() + 1];
	strcpy(distanceInfo, ss.str().c_str());

	DrawString(x, y, TextCOLOR, distanceInfo);
	DrawString(x-10, y, TextCOLOR, "[");
	DrawString(x + 15, y, TextCOLOR, "m]");


	
	
		
	/*std::stringstream sss;
	sss << ((int)PlayerList[1].Health);
		char * arsa = new char[sss.str().size() + 1];
		strcpy(arsa, sss.str().c_str());
		DrawString(x-25, y, TextCOLOR, arsa);

		std::stringstream ssss;
		sss << ((int)PlayerList[2].Health);
		char * arsas = new char[ssss.str().size() + 1];
		strcpy(arsas, ssss.str().c_str());
		DrawString(x - 25, y, TextCOLOR, arsas);*/

		

		delete[] distanceInfo;
	
}

void ESP()
{
	GetWindowRect(FindWindow(NULL, "Counter-Strike Source"), &m_Rect);

	for(int i = 0; i < NumOfPlayers; i ++)
	{
		PlayerList[i].ReadInformation(i);

		if(PlayerList[i].Health < 2)
			continue;

		if(PlayerList[i].Team == MyPlayer.Team)
			continue;

		float EnemyXY[3];
		if(WorldToScreen(PlayerList[i].Position, EnemyXY))
		{
			DrawESP(EnemyXY[0] - m_Rect.left, EnemyXY[1] - m_Rect.top, Get3dDistance(MyPlayer.Position, PlayerList[i].Position));
		}

	}




}


int main()
{
	

	//Do we have OUR CSS GAME?
	
	fProcess.RunProcess(); 
	cout << "Oyun Bulundu. Hack calisiyor..." << endl; 
	cout << "-------Ozellikler--------" << endl;
	cout << "---Aimbot--- Left Mouse" << endl; 
	cout << "---BoxEsp---" << endl;
	cout << "---DistanceEsp---" << endl;
	cout << "---SnapLine---" << endl; 
	cout << "---TrigerBot---" << endl;
	cout << "---NoRecoil---" << endl;
	cout << "---NoSpread---" << endl;
	cout << "---FullArmor---" << endl;
	cout << "---FullHealth---" << endl;
	cout << "---InfMoney---" << endl;
	cout << "---Sv_CheatS = 1 ---" << endl;


	ShowWindow(FindWindowA("ConsoleWindowClass", NULL), true);
	TargetWnd = FindWindow(0, "Counter-Strike Source");


	HDC HDC_Desktop = GetDC(TargetWnd);
	SetupDrawing(HDC_Desktop, TargetWnd);
	for(;;)
	{
		DWORD server;
		DWORD client;
		DWORD engine;
		int yercekimi1 = 129;
		int ARMOR = 100;
		int para = 16000;
		int sa = 0;
		int sv_cheat = 1; 
		ReadProcessMemory(fProcess.__HandleProcess, (PBYTE*)(fProcess.__dwordVGui + Player_Base), &server, sizeof(DWORD), NULL);
		ReadProcessMemory(fProcess.__HandleProcess, (PBYTE*)(fProcess.__dwordClient + paraadres), &client, sizeof(DWORD), NULL);
		ReadProcessMemory(fProcess.__HandleProcess, (PBYTE*)(fProcess.__dwordEngine + Player_Base), &engine, sizeof(DWORD), NULL);
		WriteProcessMemory(fProcess.__HandleProcess, (PBYTE*)(server + sekmemeofset), &sa, 4, NULL);
		WriteProcessMemory(fProcess.__HandleProcess, (PBYTE*)(server + yercekimi), &yercekimi1, 1, NULL);
		WriteProcessMemory(fProcess.__HandleProcess, (PBYTE*)(server + m_ArmorValue), &ARMOR, 4, NULL);
		WriteProcessMemory(fProcess.__HandleProcess, (PBYTE*)(server + dw_Health), &ARMOR, 4, NULL);
		WriteProcessMemory(fProcess.__HandleProcess, (PBYTE*)(client + paraofset), &para, 4, NULL);
		WriteProcessMemory(fProcess.__HandleProcess, (PBYTE*)(fProcess.__dwordEngine + sv_cheats), &sv_cheat, 4, NULL);


		MyPlayer.ReadInformation();
		Aimbot();
		ESP();
		TriggerBot();
	
	}
	

	return 0;
}


How do I add esp health and name ?
I try this code


for( int a = 0 ; a< numofplayer; a ++)
{


std::stringstream ssss;
sss << ((int)PlayerList[a].Health);
char * arsas = new char[ssss.str().size() + 1];
strcpy(arsas, ssss.str().c_str());
DrawString(x - 25, y, TextCOLOR, arsas);
}

Help pls.(Thanks for hlp)
 
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods