Hey fool!! i dont think you read my last post my c++ for dummies just arrived in the mail....and i have compiled 2 programs already.....but im not looking to wait 2 weeks till i can successfully complete the book i just want to make hacks to suit me till then....
And just so you know i have compiled it and its not a program its a dll that injects into a already compiled program. witch then sets values to my expectations. since you cant help me just please dont spam my thread.
Now is there anyone else who thinks they can help me make my nospread work..
here is my full code so you dont think im too nooby
i was trying to prevent leechers
Code:
/*
Project : Cnttuchmes V.I.P hack
Author : Cnttuchme
*/
#include <stdio.h>
#include <windows.h>
//Addies
#define Playerpointer 0xCCFCC0 //these are current
#define Serverpointer 0xBD9188 // as of 8-11-09
#define OFS_X 0x244 // on Warrock int
#define OFS_Y 0x23C // change them when needed
#define OFS_Z 0x240
#define ADR_FAST_HEALTH 0xB0EB70
#define ADR_FAST_AMMO 0xB0EB6C
#define ADR_FAST_FLAG 0xB0EB78
#define ADR_FAST_REPAIR 0x00B04278
#define ADR_SPEED 0x9B0E5C
#define ADR_SPAWN_1 0xB2D150
#define ADR_SPAWN_2 0xB8E35C
#define ADR_BOUNDS_1 0xB3FB50
#define ADR_BOUNDS_2 0xB358B8
#define ADR_SCOPE 0xB0EB68
#define ADR_Spread 0xB0EBC8
#define OFS_PREMIUM 0x374
#define OFS_STAMINA 0x10
#define OFF_NFD 0x308
#define Crosshair 0x00B0EB93
HANDLE Warrock;
DWORD *ingame= (DWORD*)Playerpointer;
DWORD *outgame= (DWORD*)Serverpointer;
//code below here
//Fast All
void Fastall()
{
*(float*) ADR_FAST_HEALTH = 500;
*(float*) ADR_FAST_AMMO = 500;
*(float*) ADR_FAST_FLAG = 500;
*(float*) ADR_FAST_REPAIR = 500;
}
//Speed
void speed() // insert = speed on
{
if(GetAsyncKeyState(VK_INSERT) &1)
{
*(float*) ADR_SPEED = 500;
}
}
void speedoff() // delete = speed normal
{
if(GetAsyncKeyState(VK_DELETE) &1)
{
*(float*) ADR_SPEED = 100;
}
}
//No Spawn Wait
void nowait()
{
*(float*) ADR_SPAWN_1 = 0;
*(float*) ADR_SPAWN_2 = 0;
}
//No Boundries
void nobound()
{
//if (nobound)
{
long t=0;
unsigned long Protection;
VirtualProtect((void*)ADR_BOUNDS_1, sizeof(t), PAGE_READWRITE, &Protection);
memcpy((void*)ADR_BOUNDS_1, &t , sizeof(t));
VirtualProtect((void*)ADR_BOUNDS_1, sizeof(t), Protection, 0);
VirtualProtect((void*)ADR_BOUNDS_2, sizeof(t), PAGE_READWRITE, &Protection);
memcpy((void*)ADR_BOUNDS_2, &t , sizeof(t));
VirtualProtect((void*)ADR_BOUNDS_2, sizeof(t), Protection, 0);
}
}
//Scope
void scope()
{
if(GetAsyncKeyState(VK_RBUTTON))
{
int t=1;
unsigned long Protection;
VirtualProtect((void*)ADR_SCOPE, sizeof(t), PAGE_READWRITE, &Protection);
memcpy((void*)ADR_SCOPE, &t , sizeof(t));
VirtualProtect((void*)ADR_SCOPE, sizeof(t), Protection, 0);
}
else
{
int t=0;
unsigned long Protection;
VirtualProtect((void*)ADR_SCOPE, sizeof(t), PAGE_READWRITE, &Protection);
memcpy((void*)ADR_SCOPE, &t , sizeof(t));
VirtualProtect((void*)ADR_SCOPE, sizeof(t), Protection, 0);
}
}
//crosshair
void Cross()
{
*(float*) Crosshair = 1;
}
//No Spread
void Spread()
{
*(float*) ADR_Spread = 0;
}
//PREMIUM
void premium() //Gold Premium
{
DWORD dwPlayerPtr = *(DWORD*)Serverpointer;
if(dwPlayerPtr != 0)
{
*(long*)(dwPlayerPtr+OFS_PREMIUM) = 3, 10; // 1 = bronze 2 = silver 3 = gold
}
}
//STAMINA
void Stamina()
{
DWORD dwPlayerPtr = *(DWORD*)Playerpointer;
if(dwPlayerPtr != 0)
{
*(float*)(dwPlayerPtr+OFS_STAMINA) = 100;
}
}
//nfd
void NFD()
{
DWORD dwPlayerPtr = *(DWORD*)Playerpointer;
if(dwPlayerPtr != 0)
{
*(float*)(dwPlayerPtr+OFF_NFD) = -20000;
}
}
//superjump
void Jump()
{
if(GetAsyncKeyState(VK_CONTROL) &1)
{
DWORD dwPlayerPtr = *(DWORD*)Playerpointer;
if(dwPlayerPtr != 0)
*(float*)(dwPlayerPtr+OFS_Z) = 2500;
}
}
//ingame hacks
void snip()
{
for(;; )
{
if(*ingame)
{
Cross();
Jump();
NFD();
Stamina();
Fastall();
speed();
speedoff();
scope();
Spread();
nowait();
}
if(*outgame)//out game hacks here
{
premium();
Spread();
nowait();
}
Sleep(200);
}
}
BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpReserved)
{
if(dwReason == DLL_PROCESS_ATTACH)
{
MessageBoxA(NULL, "Cnttuchme", "Credits", MB_OK);
MessageBoxA(NULL, "Nightsnipers.********.net", "Credits", MB_OK);
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)snip, 0, 0, 0);
}
return TRUE;
}