Help: Hack doesnt work

05/02/2013 17:27 winkabean#1
Heres the source guys just wondering why none of them are working.

Structure.h:
Code:
struct CPlayer
{
 char ExoduS1[50244];//0x00
 float NoRecoil1;//0xC444
 float NoRecoil2;//0xC448
 float NoRecoil3;//0xC44C
 char ExoduS2[72];//0xC450
 BYTE index;//0xC498
 char ExoduS3[19];//0xC499
 float GravityX;//0xC4AC
 float GravityY;//0xC4B0
 float GravityZ;//0xC4B4
 char ExoduS4[24];//0xC4B8
 int WeaponState;//0xC4D0
 char ExoduS5[15416];//0xC4D4
 float PlayerSpeed;//0x1010C
 float NoSpread;//0x10110
 float FastNadeBlast;//0x10114
 char ExoduS6[136];//0x10118
 float PlayerView;//0x101A0
 char ExoduS7[4];//0x101A4
 float Pitch;//0x101A8
 char ExoduS8[24];//0x101AC
 float Yaw;//0x101C4
 char ExoduS9[12];//0x101C8
 float ViewX;//0x101D4
 float ViewY;//0x101D8
 float ViewZ;//0x101DC
 char ExoduS10[12];//0x101E0
 WORD Weapon1;//0x101EC
 WORD Weapon2;//0x101EE
 WORD Weapon3;//0x101F0
 char ExoduS11[90];//0x101F2
 BYTE PlayerState;//0x1024C
 char ExoduS12[155];//0x1024D
 float NoFallDamage;//0x102E8
 char ExoduS13[20];//0x102EC
 float PosX;//0x10300
 char ExoduS14[4];//0x10304
 float PosY;//0x10310
 char ExoduS15[4];//0x10314
 float PosZ;//0x10308
 char ExoduS16[100];//0x1030C
 DWORD AutoPlant;//0x10370
 DWORD AutoDefuse;//0x10374
 char ExoduS17[14];//0x10378
 DWORD AutoShot;//0x10386
 char ExoduS18[110];//0x1038A
 float NOM134IDLE;//0x103F8
};

struct CBase
{
	CPlayer* pLocal; 
	char* ExoduS[0x12B1A0];
	CPlayer** pGlobal;
};
CBase* p_Player = (CBase*)ADR_PLAYERPOINTER;
Addresses.h:
Code:
//================ [ Pointers ] ================//
#define ADR_PLAYERPOINTER 0x00A5348C
#define ADR_SERVERPOINTER 0x00A5341C
#define ADR_HEALTHPOINTER 0x00103E0
#define ADR_BASEPOINTER 0x000
#define ADR_VIEWANGELS 0x00A52FEC
#define HS1 0x8523E
#define HS2 0xA1A0
#define HS PACKET HANDLER 0x5E5E53
Main.cpp:
Code:
#include <Windows.h>
#include "Structure.h"
#include "Addresses.h"

DWORD Player = *(DWORD*)ADR_PLAYERPOINTER;

void NOSPREAD()
{
	if (Player != 0)
	{
		p_Player->pLocal->NoSpread = 0.00F;
	}
}

void NORECOIL()
{
	if (Player != 0)
	{
		p_Player->pLocal->NoRecoil1 = 0;
		p_Player->pLocal->NoRecoil2 = 0;
		p_Player->pLocal->NoRecoil3 = 0;
	}
}

void SUPERJUMP()
{
	if(Player !=0)
	
		if(GetAsyncKeyState(VK_SHIFT) &1)
		{
			p_Player->pLocal->ViewZ = 2000;
			p_Player->pLocal->NoFallDamage = -30000;
		}
}

void ProcessHacks()
{
	if (Player)
	{
		NOSPREAD();
		NORECOIL();
		SUPERJUMP();
	}

	Sleep (100);
}

BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpvReserved)
{
if(dwReason == DLL_PROCESS_ATTACH)
{
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)ProcessHacks, 0, 0, 0);
}
return TRUE;
}
I would appreciate it if you would help me
05/02/2013 17:54 .BlackHat#2
Change processhacks to something like this:

Code:
void ProcessHacks()
{
   DWORD Player = *(DWORD*)ADR_PLAYERPOINTER;
   while(true)
   {
      if(Player)
      {
         //hacks here
      }
      Sleep(10);
   }
}
Anyway remove the if(Player!=0) checks from each function. They'll only get called when Player != 0 (check is inside ProcessHacks())
05/02/2013 18:32 winkabean#3
Ive done what you said but it still doesnt work.

Main.cpp:

Code:
#include <Windows.h>
#include "Structure.h"
#include "Addresses.h"

DWORD Player = *(DWORD*)ADR_PLAYERPOINTER;

void NOSPREAD()
{
		p_Player->pLocal->NoSpread = 0.0F;
}


void NORECOIL()
{
		p_Player->pLocal->NoRecoil1 = 0;
		p_Player->pLocal->NoRecoil2 = 0;
		p_Player->pLocal->NoRecoil3 = 0;
}


void SUPERJUMP()
{
	if(GetAsyncKeyState(VK_SHIFT) &1)
		{
			p_Player->pLocal->ViewZ = 2000;
			p_Player->pLocal->NoFallDamage = -30000;
		}
}

void ProcessHacks()
{
	DWORD Player = *(DWORD*)ADR_PLAYERPOINTER;
	while (true)
	{
	if (Player)
	{
		NOSPREAD();
		NORECOIL();
		SUPERJUMP();
	}

	Sleep (100);
}
}

BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpvReserved)
{
if(dwReason == DLL_PROCESS_ATTACH)
{
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)ProcessHacks, 0, 0, 0);
}
return TRUE;
}
05/03/2013 18:40 xxfabbelxx#4
Code:
void ProcessHacks()
{
	DWORD Player = *(DWORD*)ADR_PLAYERPOINTER;
	for(;;)
	{
	if (Player)
	{
		NOSPREAD();
		NORECOIL();
		SUPERJUMP();
	}

	Sleep (100);
 }
}
Use 'for' not 'while'
05/03/2013 20:01 xRoute66x#5
Quote:
Originally Posted by xxfabbelxx View Post
Code:
void ProcessHacks()
{
	DWORD Player = *(DWORD*)ADR_PLAYERPOINTER;
	for(;;)
	{
	if (Player)
	{
		NOSPREAD();
		NORECOIL();
		SUPERJUMP();
	}

	Sleep (100);
 }
}
Use 'for' not 'while'
Er benutzt oben doch keins von beiden? Oder bin ich blind? :o
Gehört in den Sammelthread du Troll, kannst gleich closen ;o
05/04/2013 09:20 InstantBlood#6
Gibt es dafür nicht einen Sammelthread?
05/04/2013 21:16 xxfabbelxx#7
Quote:
Originally Posted by InstantBlood View Post
Gibt es dafür nicht einen Sammelthread?
doch aber den sollte ich mal auf englisch schreiben. nur deutsche posten dort rein, warum auch immer.

-

post your problems here so find help: [Only registered and activated users can see links. Click Here To Register...]

closed