Simple OPK Function ( Only Against Bots )

Posts 1–9 of 9 · Page 1 of 1
Simple OPK Function ( Only Against Bots )
Hi guys
I bought cs a few days and I will share a simple function that I made for CSGO.
Works only against bots, because you can´t change player pos online and the address and class are diferent.

Code:
//Bot Version

#define PlayerLocal               0x8FBB5C
#define EntityList                0x8FBB74 //PlayerLocal + 0x18
#define NPlayers                  0x99F808
#define DistancePlayerClass       0x18

class cPlayerInfo
{
public:
char _0x0000[44];
	D3DXVECTOR3 Pos; //0x002C 
char _0x0038[412];
	D3DXVECTOR3 Pos2; //0x01D4 
char _0x01E0[56];
	__int32 Life; //0x0218 
char _0x021C[168];
	D3DXVECTOR3 RealPos; //0x02C4 
char _0x02D0[44];
	__int32 Team; //0x02FC 
};//Size=0x1440
OPK :

Code:
void OPKHack()
{
	DWORD Server = (DWORD)GetModuleHandle("server.dll");

	DWORD NPlayerADDR = NPlayers + Server; // number of bots
	DWORD EntityAddress = EntityList + Server; // entity
	DWORD PlayerAddress = PlayerLocal + Server; // local player

	DWORD NPlayer = *(DWORD*)NPlayerADDR;

	cPlayerInfo *pLocal = *(cPlayerInfo**)PlayerAddress;

	if( NPlayer > 0 )
	{
		for(int i = 0; i < NPlayer - 1; i ++ )
		{
			cPlayerInfo *pPlayer = *(cPlayerInfo**)EntityAddress;

			if ( pPlayer->Life > 1 && pPlayer != 0 && pPlayer->Pos != 0 )
			{
				if( pPlayer->Team != pLocal->Team )
				{
					pPlayer->RealPos.x = pLocal->RealPos.x + 100.0f;
					pPlayer->RealPos.y = pLocal->RealPos.y;
					pPlayer->RealPos.z = pLocal->RealPos.z;
				}
			}

			EntityAddress += DistancePlayerClass;
		}
	}
}
It will be something like this :



If you wanna do a telekill, just do the opposite.
Sorry for my bad english, I´m BR

Thanks for sharing with us .
Thanks for releasing this with us, it seems nice
Thanks for sharing
Bumping this for awareness purposes.
__int32 Life; //0x0218 Not Correct

214 is Correct
cheack
Quote Originally Posted by zikox View Post
__int32 Life; //0x0218 Not Correct

214 is Correct
cheack
OMG, I posted 4 weeks ago, the offset changed
Quote Originally Posted by Hacker Fail View Post
OMG, I posted 4 weeks ago, the offset changed
#define NPlayers 0x99F808 <-- hOW DID U Scaned this i tryed but nothing Comes or u can give me a Pattern for it .. itf its okay
Quote Originally Posted by zikox View Post
#define NPlayers 0x99F808 <-- hOW DID U Scaned this i tryed but nothing Comes or u can give me a Pattern for it .. itf its okay
It's just the number of player address.
U can search easily using C.E.
Posts 1–9 of 9 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us