Quote:
Originally Posted by flyingdmn2
PHP Code:
#include <Windows.h>
#include <stdio.h>
#define ADR_PLAYERPOINTER 0x00C7C738
#define ADR_SERVERPOINTER 0x00B770B0
#define OFS_NFD 0x00102CC
#define OFS_NORECOIL1 0x00C43C
#define OFS_NORECOIL2 0x00C440
#define OFS_NORECOIL3 0x00C444
#define ADR_NOSPREAD 0x009AE008
#define ADR_SUPERNOSPREAD 0x0098AEE8
#define ADR_SPEED 0x00987858
#define OFS_5SLOT 0x001021A4
#define OFS_6SLOT 0x001021A5
#define OFS_7SLOT 0x001021A6
#define OFS_8SLOT 0x001021A7
DWORD *ingame = (DWORD*)ADR_PLAYERPOINTER;
DWORD *outgame = (DWORD*)ADR_SERVERPOINTER;
void PlayerHacks()
{
DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER;
if(dwPlayerPtr != 0)
{
//No Fall Damage
{
*(float*)(dwPlayerPtr + OFS_NFD) = -90000;
}
//Recoil
{
*(float*)(dwPlayerPtr + OFS_NORECOIL1) = 0;
*(float*)(dwPlayerPtr + OFS_NORECOIL2) = 0;
*(float*)(dwPlayerPtr + OFS_NORECOIL3) = 0;
}
//No Spread
{
*(float*)(dwPlayerPtr + ADR_NOSPREAD) = 0;
}
//SUPERNOSPREAD
{
*(float*) ADR_SUPERNOSPREAD = 0;
}
//Speed
{
if(GetAsyncKeyState(VK_NUMPAD1)) // Speed ON
{
*(float*)(dwPlayerPtr + ADR_SPEED) = 200.0f;
}
if(GetAsyncKeyState(VK_NUMPAD2)) //Speed OFF
{
*(float*)(dwPlayerPtr + ADR_SPEED) = 96.0f;
}
}
}
}
void ServerHacks()
{
DWORD dwSrvrPtr = *(DWORD*)ADR_SERVERPOINTER;
if(dwSrvrPtr != 0)
{
//Slot Stuff
//5 Slot
{
*(long*)(dwSrvrPtr + OFS_5SLOT) = 1;
}
//6 Slot
{
*(long*)(dwSrvrPtr + OFS_6SLOT) = 1;
}
//7 Slot
{
*(long*)(dwSrvrPtr + OFS_7SLOT) = 1;
}
//8 Slot
{
*(long*)(dwSrvrPtr + OFS_8SLOT) = 1;
}
}
}
void HackThread()
{
for(;; )
{
if(*ingame)
{
PlayerHacks();
}
if(*outgame)
{
ServerHacks();
}
}
Sleep( 30 );
}
BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpvReserved)
{
if(dwReason == DLL_PROCESS_ATTACH)
{
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HackThread, 0, 0, 0);
}
return TRUE;
}
Es zeigt bei F7 keinen Fehler an.
Trotzdem funkt no recoil, no spread, super no spread und speed nicht ?
Was mach ich Falsch ?
THX
|
Ich werd dir jetzt nichtmehr helfen, weil ich dir das als Beispiel per PN geschickt habe, und zwar dafür, dass dus dir anguckst und vllt. was draus lernst, und nicht, damit dus kopieren kannst.