
#include <windows.h>
#include <stdio.h>
#define ADR_PlayerPointer 0xA9579*
#define ADR_ServerPointer 0xA9473*
#define ADR_CLASSBASE 0xAB94E*
#define ADR_SLOTBASE 0x6B9D*
#define ADR_WEAPONBASE 0xA751A*
#define ADR_PlayerSlot 0x84DF*
#define ADR_GlassWalls 0xA938C*
#define ADR_FastAmmo 0xA9C6E*
#define ADR_FastRepair 0xA9C70*
#define OFS_NoRecoil1 0xC44*
#define OFS_NoRecoil2 0xC44*
#define OFS_NoRecoil3 0xC44*
#define ADR_FARFOG 0xA9C63*
#define ADR_NEARFOG 0xA9C62*
#define ADR_MapCollors1 0xA95C7*
#define ADR_MapCollors2 0xA95C7*
#define ADR_MapCollors3 0xA95C7*
#define ADR_NoBounds1 0xB1FE5*
#define ADR_NoBounds2 0xB1FE5*
#define ADR_NoBounds3 0xB1FE6*
#define OFS_WEAPON1 0x101A*
#define OFS_X 0x101E*
#define OFS_Z 0x101E*
#define OFS_Y 0x101F*
float posiY;
float posiX;
float posiZ;
DWORD *ingame= (DWORD*) ADR_PlayerPointer;
DWORD *outgame= (DWORD*)ADR_ServerPointer;
//-------------------------------------------------
void GlassWall()
{
if(GetKeyState(VK_MBUTTON))
*(int*)ADR_GlassWalls = 1;
else
{
*(int**)ADR_GlassWalls = 0;
}
}
void Fastall()
{
*(float*)ADR_FastAmmo = 5000000;
*(float*)ADR_FastRepair = 5000000;
}
void All()
{
*(float*)ADR_FARFOG = 0;
*(float*)ADR_NEARFOG = 955855416;
*(int*)ADR_NoBounds1 = 0;
*(int*)ADR_NoBounds2 = 0;
*(int*)ADR_NoBounds3 = 0;
}
void WeaponHack()
{
if(GetAsyncKeyState(VK_F7) &1)
{
DWORD dwPlayerPtr = *(DWORD*)ADR_PlayerPointer;
if(dwPlayerPtr != 0)
{
*(long*)(dwPlayerPtr+OFS_WEAPON1) = 114;}
}
void MapCollors1()
{
DWORD dwPlayerPtr = *(DWORD*)ADR_PlayerPointer;
if(dwPlayerPtr != 0)
{
if (GetAsyncKeyState(VK_NUMPAD1))
*(float*)MapCollors1 = 250;}
*(float*)MapCollors1 = 500;}
*(float*)MapCollors1 = 750;}
}
void Teleport()
{
DWORD dwPlayerPtr = *(DWORD*)ADR_PlayerPointer;
if(dwPlayerPtr != 0)
{
if (GetAsyncKeyState(VK_F10))
{
MessageBeep(MB_ICONINFORMATION);
posiX = *(float*)(dwPlayerPtr + OFS_X);
posiY = *(float*)(dwPlayerPtr + OFS_Y);
posiZ = *(float*)(dwPlayerPtr + OFS_Z);
}
if (GetAsyncKeyState(VK_F11))
{
MessageBeep(MB_ICONINFORMATION);
*(float*)(dwPlayerPtr + OFS_X) = posiX;
*(float*)(dwPlayerPtr + OFS_Y) = posiY;
*(float*)(dwPlayerPtr + OFS_Z) = posiZ;
}
}
}
void NoRecoil()
{
DWORD dwPlayerPtr = *(DWORD*)ADR_PlayerPointer;
if(dwPlayerPtr != 0)
{
*(float*)(dwPlayerPtr + OFS_NoRecoil1) = 0;
*(float*)(dwPlayerPtr + OFS_NoRecoil2) = 0;
*(float*)(dwPlayerPtr + OFS_NoRecoil3) = 0;
}
}
//-------------------------------------------------
void HackThread()
{
for(;; )
{
if(*ingame)
{
GlassWall();
FastAll();
All();
WeaponHack();
Mapcollors1();
Mapcollors2();
Mapcollors3();
Teleport();
NoRecoil();
}
if(*outgame)
{
}
Sleep(20); //prevent for overloading the cpu
}
}
//--------------------------End HackThread--------------------------//
//--------------------------End--------------------------//
BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpvReserved)
{
if(dwReason == DLL_PROCESS_ATTACH)
{
MessageBoxA(NULL,"Made By :ÏÐðl Ed'z Jham'z ","HACK",MB_OK);
MessageBoxA(NULL,"DaneCoder & jPagz","Credits",MB_OK);
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HackThread , 0, 0, 0);
}
return TRUE;
}

76 1 C:\Documents and Settings\Lil Pain\My Documents\dllmain.c [Error] expected identifier or '(' before '}' token

void WeaponHack()
{
if(GetAsyncKeyState(VK_F7) &1)
{
DWORD dwPlayerPtr = *(DWORD*)ADR_PlayerPointer;
if(dwPlayerPtr != 0)
{
*(long*)(dwPlayerPtr+OFS_WEAPON1) = 114;}
}
void MapCollors1()
{
DWORD dwPlayerPtr = *(DWORD*)ADR_PlayerPointer;
if(dwPlayerPtr != 0)
{
if (GetAsyncKeyState(VK_NUMPAD1))
*(float*)MapCollors1 = 250;}
*(float*)MapCollors1 = 500;}
*(float*)MapCollors1 = 750;}
}
![=]](/forum/images/emotions/=].gif)
what do you think @Liz