Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Counter-Strike
You last visited: Today at 22:37

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Question]Counter-Strike

Discussion on [Question]Counter-Strike within the Counter-Strike forum part of the Popular Games category.

Reply
 
Old   #1
 
kalhacker9000's Avatar
 
elite*gold: 0
Join Date: Dec 2006
Posts: 648
Received Thanks: 342
[Question]Counter-Strike

hey guys,
i'm from the kal-online section. but a friend ask me to code a cs 1.6 esp hack.
okay i know what esp is. but i don't know how to program it.
i know, too , that a esp programm is based on the sounds which other players make. so the server send a packet (or something other) to the cs client and the client play a sound. now it's my part:
i have to make a program which set a marker to the place where the player makes a sound...
but how to do it?
kalhacker9000 is offline  
Old 04/21/2009, 16:29   #2
 
elite*gold: 0
Join Date: Oct 2008
Posts: 912
Received Thanks: 188
This is ESP[mean the life and others from other player like: Ammo,Armor,Life,Money and others.]:
[IMG]http://www.*****************/img/wallhackmodels.jpg[/IMG]
With ESP you can make wallhacks and others.I use this hacks:
BONU$PUNKT is offline  
Old 04/21/2009, 16:38   #3

 
Adroxxx's Avatar
 
elite*gold: 15
Join Date: Nov 2005
Posts: 13,021
Received Thanks: 5,323
Yep. ESP (extrasensory perception), means that you can see various things. Like Nick ESP = you see the nicknames of the other players trough walls etc. Or other esp hacks are that you see the life, which weapon the enemy has equipted and so on.
Adroxxx is offline  
Old 04/21/2009, 17:29   #4
 
elite*gold: 0
Join Date: Nov 2008
Posts: 576
Received Thanks: 191
you need the player position and have to find out where the models on your screen. now you can draw the informations eg. draw(health, headx, heady) :P

Code:
void Esp::DrawEsp( void )
{
	if ( !HalFLife2.m_pMyPlayer->BaseEnt() )
		return;

	player_info_t pInfo;	//Get Shit info About players
	Vector vScreen;			//see my name
	Vector vWorldPosition;	//see my name
	Vector vPlayerHead;		//see my name

	for ( int index = 0; index < HalFLife2.m_pEntList->GetHighestEntityIndex(); index++  )
	{
		if ( index == HalFLife2.m_pEngine->GetLocalPlayer() )
			continue;

		IClientEntity* ClientEntity = HalFLife2.m_pEntList->GetClientEntity( index );

		if (	ClientEntity == NULL
			||	ClientEntity->IsDormant() )
			continue;

		CBaseEntity* pBaseEntity = ClientEntity->GetBaseEntity();

		if (	pBaseEntity == NULL 
			||	pBaseEntity->IsDormant() )
			continue;

		int *iTeamIndex = (int*) ((DWORD)pBaseEntity +(DWORD)0x90 );

		DWORD dwGetTeamColor = CHEAT_WHITE;

		if ( HalFLife2.m_pAimbot->GetVisible( HalFLife2.m_pMyPlayer->BaseEnt()->EyePosition(), pBaseEntity->EyePosition(), pBaseEntity ) )//visible
		{
			if( *iTeamIndex == 2 ) //Terrorist
				dwGetTeamColor = CHEAT_RED;

			if( *iTeamIndex == 3 )// Counter-Terrorist
				dwGetTeamColor = CHEAT_BLUE;

			if ( HalFLife2.m_pAimbot->iGetTarget() == index )//Aimed Guy
				dwGetTeamColor = CHEAT_PURPLE;
		}
		else//invisible (hidden guy)
		{
			if( *iTeamIndex == 2 ) //Terrorist
				dwGetTeamColor = CHEAT_ORANGE;

			if( *iTeamIndex == 3 )// Counter-Terrorist
				dwGetTeamColor = CHEAT_GREEN;

			if ( HalFLife2.m_pAimbot->iGetTarget() == index )//Aimed Guy
				dwGetTeamColor = CHEAT_BLACK;
		}


		//get position
		HalFLife2.m_pNeeded->GetWorldSpaceCenter( pBaseEntity , vWorldPosition );
		
		//set position of player on screen
		if ( HalFLife2.m_pNeeded->WorldToScreen( vWorldPosition, vScreen ) )
		{
			//get player info
			if ( HalFLife2.m_pEngine->GetPlayerInfo( index, &pInfo ) )
			{
				//Get Life State
				int *lifestate = (int*) ( ( DWORD )pBaseEntity + ( DWORD )0x87 );
				
				//Get Health
				int *pdwHealth = (int*) ( (DWORD)pBaseEntity + (DWORD)0xDA4 );
				
				//Draw if Alive
				if( *lifestate  == LIFE_ALIVE )
				{
					if ( HalFLife2.m_pNeeded->WorldToScreen( pBaseEntity->EyePosition(), vPlayerHead ) )
					{
						//Set Bounding Box color
						HalFLife2.m_pMatSurface->DrawSetColor( RGBA(dwGetTeamColor) );

						//Draw Bounding Box
						HalFLife2.m_pMatSurface->DrawOutlinedRect( vPlayerHead.x - 20, vPlayerHead.y - 20, vPlayerHead.x + 20, vPlayerHead.y + 60 );
					}
					//Draw ESP Name
					HalFLife2.m_pNeeded->DrawString( vScreen.x, vScreen.y, dwGetTeamColor, "%s", pInfo.name );
					
					//Draw ESP Health
					HalFLife2.m_pNeeded->DrawString( vScreen.x, vScreen.y + 16 , dwGetTeamColor, "%i", *pdwHealth );
				}
			}
		}
	}
}
gamedeception.net
__wadim is offline  
Old 04/21/2009, 18:22   #5
 
kalhacker9000's Avatar
 
elite*gold: 0
Join Date: Dec 2006
Posts: 648
Received Thanks: 342
okay i know what esp means....you don't have to explain it to me but thx :P
thx wadim....i look later on it...but thank you very much
kalhacker9000 is offline  
Reply




All times are GMT +2. The time now is 22:37.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.