Originally Posted by
TGH Zero.
5th slot should be serversided... but i will try it, i will paste it to my c++ and will look carefully on the source.. I will come back if i found any solution....
Edit: fk my visual studio 2010 expired...
Editedit: it should be like so:
void NoSpread()
{
*(float*)Ofs_NoSpread = 0;
}
void NoRecoil()
{
*(float*)Ofs_NoRecoil1 = 0;
*(float*)Ofs_NoRecoil2 = 0;
*(float*)Ofs_NoRecoil3 = 0;
}
Say if dont work... i dont want to go test... 5th slot should be serversided... if u cant put it to serversided, or u dont know what im talking, send me pm, i will make all ur hack working...
5th slot is not serversided man, its fixable.
you fergot to include into your threads.
Code:
#include <windows.h>
#define ADR_ServerPointer 0xC24B10
#define ADR_PlayerPointer 0xD284E8
#define OFS_SuperJump 0x0102D8
#define OFS_NoFallDamage 0x103A4
#define Ofs_NoSpread 0x008B834C
#define Ofs_NoRecoil1 0x0000001c
#define Ofs_NoRecoil2 0x00000020
#define Ofs_NoRecoil3 0x00000024
#define OFS_5SLOT 0x00D147C
void __stdcall MainHacks (void)
{
DWORD dwPTR = *(DWORD*) ADR_PlayerPointer;
if ( dwPTR !=0)
{
// Super Jump
if ( GetAsyncKeyState(VK_CONTROL)&0x8000 )
{
*(float*) ( dwPTR + OFS_SuperJump ) = 5000;
}
// No Fall Damage
{
*(float*) ( dwPTR + OFS_NoFallDamage ) = -50000;
}
}
}
void NoSpread()
{
*(float*)Ofs_NoSpread = 0;
}
void NoRecoil()
{
*(float*)Ofs_NoRecoil1 = 1;
*(float*)Ofs_NoRecoil2 = 1;
*(float*)Ofs_NoRecoil3 = 1;
}
void Slots5()
{
DWORD dwServerPtr = *(DWORD*)ADR_ServerPointer;
if(dwServerPtr != 0)
{
*(long*)(dwServerPtr+OFS_5SLOT) = 1;
}
}
DWORD WINAPI HACKthread( LPVOID param )
{
while(1)
{
MainHacks();
NoSpread(); // <- Include when you use void
NoRecoil();
Slots5();
Sleep(200); // <- 20 is to low
}
return 0;
}
bool __stdcall DllMain ( HMODULE hDll, unsigned long Reason , LPVOID LPReserved )
{
DisableThreadLibraryCalls(hDll);
switch ( Reason )
{
case DLL_PROCESS_ATTACH :
MessageBoxA(0, "Made By Ryski123", "Success Injection", MB_OK);
CreateThread(0,0,(LPTHREAD_START_ROUTINE)HACKthread,0,0,0);
break;
}
return TRUE;
}