can some one give me always cross source and chams source just only 2 colors and always active?
if(CromBange)
{
*(int*)(ADR_BANDAGE) = 1;
}
if(CH_Bandage==1)Quote:
was is daran falsch?
if(CromBange)
{
*(int*)(ADR_BANDAGE) = 1;
beim erstellen steht da syntaxfehler: ) ich checks nich vorher hatte ich´s genauso und da ging es auch plötzlich aber nicht mehr woran kann´s liegen?
#include <windows.h>
#include <stdio.h>
#define ADR_SERVERPOINTER 0x00C24B10
#define ADR_PLAYERPOINTER 0x00D284E8
#define OFS_NORECOIL1 0x001C
#define OFS_NORECOIL2 0x0020
#define OFS_NORECOIL3 0x0024
#define ADR_GLASSWALLS 0x000BB0B1C
#define ADR_SCOPE 0xACD218
#define ADR_NOSPREAD 0x008B834C
#define ADR_NOSPAWN1 0xBDDFD8
#define ADR_NOSPAWN2 0xBDDFE0
#define ADR_NOSPAWN3 0xBDDFDC
#define OFS_5SLOT 0x00D147C
#define OFS_6SLOT 0x00D147D
#define OFS_7SLOT 0x00D147E
#define OFS_8SLOT 0x00D147F
#define ADR_ExtraAmmo1 0x008B2548
#define ADR_ExtraAmmo2 0x008B2549
#define OFS_Speed 0xA4B8D4
#define OFS_Z 0x000102D8
#define OFS_Y 0x000102DC
#define OFS_X 0x000102D4
#define ADR_BOUNDS1 0x008D57F8
#define ADR_BOUNDS2 0x008D57FC
#define OFS_NFD 0x000103A4
#define OFS_PREMIUM1 0x0000057C
#define OFS_PREMIUM2 0x0580
#define ADR_FullBright1 0x008B83BC
#define ADR_FullBright2 0x008B83B8
#define ADR_FullBright3 0x008B83B4
#define ADR_FASTAMMO 0x008AE96C
#define ADR_FASTREPAIR 0x008AE970
#define ADR_FASTHEALTH 0x008AE974
#define ADR_FASTFLAG 0x008AE978
#define OFS_ROOMMASTER 0x00CC420
#define OFS_SUPERMASTER 0x00CC004
bool NoRecoil = true;
bool GLASSWALLS = true;
bool Scope = false;
float posiX;
float posiY;
float posiZ;
void Weapon(void)
{
DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER;
if(dwPlayerPtr != 0)
{
if(NoRecoil==true)
{
*(float*)(dwPlayerPtr+OFS_NORECOIL1) = 0;
*(float*)(dwPlayerPtr+OFS_NORECOIL2) = 0;
*(float*)(dwPlayerPtr+OFS_NORECOIL3) = 0;
}
{
NoRecoil = NoRecoil==false;
}
if (GLASSWALLS==true)
{
*(int*)ADR_GLASSWALLS = 4;
}
else if (GLASSWALLS==false)
{
*(int*)ADR_GLASSWALLS = 0;
}
if(GetAsyncKeyState(VK_NUMPAD9) &1)
{
GLASSWALLS = GLASSWALLS==false;
}
if (Scope==false)
{
*(int*)(ADR_SCOPE) = (int)5;
}
else if (Scope==true)
{
*(int*)(ADR_SCOPE) = (int)1;
}
if(GetAsyncKeyState(VK_RBUTTON) &1)
{
Scope = Scope==false;
}
}
}
void Spawn()
{
long t=0;
unsigned long Protection;
VirtualProtect((void*)ADR_NOSPAWN1, sizeof(t), PAGE_READWRITE, &Protection);
memcpy((void*)ADR_NOSPAWN1, &t , sizeof(t));
VirtualProtect((void*)ADR_NOSPAWN1, sizeof(t), Protection, 0);
VirtualProtect((void*)ADR_NOSPAWN2, sizeof(t), PAGE_READWRITE, &Protection);
memcpy((void*)ADR_NOSPAWN2, &t , sizeof(t));
VirtualProtect((void*)ADR_NOSPAWN2, sizeof(t), Protection, 0);
}
void Slots()
{
DWORD dwPlayerPtr = *(DWORD*)ADR_SERVERPOINTER;
if(dwPlayerPtr != 0)
{
*(long*)(dwPlayerPtr+OFS_5SLOT) = 1;
*(long*)(dwPlayerPtr+OFS_6SLOT) = 1;
*(long*)(dwPlayerPtr+OFS_7SLOT) = 1;
*(long*)(dwPlayerPtr+OFS_8SLOT) = 1;
}
}
void ExtraAmmo ()
{
*(int*)(ADR_ExtraAmmo1) = 1;
}
void ExtraAmmo2 ()
{
*(int*)(ADR_ExtraAmmo2) = 1;
}
void speedon0 ()
{
if(GetAsyncKeyState(VK_NUMPAD0) &1<< 0xF)
{
*(float*)(OFS_Speed) = 100.0f;
}
}
void speedon1 ()
{
if(GetAsyncKeyState(VK_NUMPAD1) &1<< 0xF)
{
*(float*)(OFS_Speed) = 170.0f;
}
}
void speedon2 ()
{
if(GetAsyncKeyState(VK_NUMPAD2) &1<< 0xF)
{
*(float*)(OFS_Speed) = 240.0f;
}
}
void speedon3 ()
{
if(GetAsyncKeyState(VK_NUMPAD3) &1<< 0xF)
{
*(float*)(OFS_Speed) = 310.0f;
}
}
void speedon4 ()
{
if(GetAsyncKeyState(VK_NUMPAD4) &1<< 0xF)
{
*(float*)(OFS_Speed) = 400.0f;
}
}
void Dig()
{
if(GetAsyncKeyState(VK_MENU) &1)
{
DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER;
if(dwPlayerPtr != 0)
{
*(float*)(dwPlayerPtr+OFS_Z) = -2000;
}
}
}
void nobounds ()
{
long t=0;
unsigned long Protection;
VirtualProtect((void*)ADR_BOUNDS1, sizeof(t), PAGE_READWRITE, &Protection);
memcpy((void*)ADR_BOUNDS1, &t , sizeof(t));
VirtualProtect((void*)ADR_BOUNDS1, sizeof(t), Protection, 0);
VirtualProtect((void*)ADR_BOUNDS2, sizeof(t), PAGE_READWRITE, &Protection);
memcpy((void*)ADR_BOUNDS2, &t , sizeof(t));
VirtualProtect((void*)ADR_BOUNDS2, sizeof(t), Protection, 0);
}
void nfd ()
{
DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER;
if(dwPlayerPtr != 0)
{
*(float*)(dwPlayerPtr+OFS_NFD) = -20000;
}
}
void jump ()
{
if(GetAsyncKeyState(VK_CONTROL) &1)
{
DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER;
if(dwPlayerPtr != 0)
{
*(float*)(dwPlayerPtr+OFS_Z) = 800;
}
}
}
void jump2 ()
{
if(GetAsyncKeyState(VK_NUMPAD5) &1)
{
DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER;
if(dwPlayerPtr != 0)
{
*(float*)(dwPlayerPtr+OFS_Z) = 250;
}
}
}
void platinum ()
{
DWORD dwSrvrPtr = *(DWORD*)ADR_SERVERPOINTER;
if(dwSrvrPtr != 0)
{
*(long*)(dwSrvrPtr+OFS_PREMIUM1) = 4, 10;
{
*(float*)(dwSrvrPtr+OFS_PREMIUM2) = 1, 1;
}
}
}
void fullbright ()
{
*(int*)(ADR_FullBright1) = 1092779973;
*(int*)(ADR_FullBright2) = 1092779973;
*(int*)(ADR_FullBright3) = 1092779973;
}
void FastAll ()
{
DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER;
if(dwPlayerPtr != 0)
{
*(float*)ADR_FASTREPAIR = 10.0f;
*(float*)ADR_FASTHEALTH = 5.0f;
*(float*)ADR_FASTFLAG = 10.0f;
*(float*)ADR_FASTAMMO = 5.0f;
}
}
void RoomMaster ()
{
DWORD dwPlayerPtr = *(DWORD*)ADR_SERVERPOINTER;
if(dwPlayerPtr != 0)
{
*(int*)(dwPlayerPtr+OFS_ROOMMASTER) = 0;
}
}
void Supermaster ()
{
DWORD dwSrvrPtr = *(DWORD*)ADR_SERVERPOINTER;
if(dwSrvrPtr != 0){
*(int*)(dwSrvrPtr+OFS_SUPERMASTER) = 1;
}
}
void Teleport ()
{
DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER;
if(dwPlayerPtr != 0)
{
if (GetAsyncKeyState(VK_F2))
{
posiX = *(float*)(dwPlayerPtr + OFS_X);
posiY = *(float*)(dwPlayerPtr + OFS_Y);
posiZ = *(float*)(dwPlayerPtr + OFS_Z);
}
if (GetAsyncKeyState(VK_F3))
{
*(float*)(dwPlayerPtr + OFS_X) = posiX;
*(float*)(dwPlayerPtr + OFS_Y) = posiY;
*(float*)(dwPlayerPtr + OFS_Z) = posiZ;
}
}
}
void Hacks()
{
for(;; )
{
Weapon();
Spawn();
Slots();
ExtraAmmo();
ExtraAmmo2();
speedon0();
speedon1();
speedon2();
speedon3();
speedon4();
Dig();
nobounds();
nfd();
jump();
jump2();
platinum();
fullbright();
RoomMaster();
FastAll();
Supermaster();
Teleport();
Sleep(20);
}
}
BOOL WINAPI DllMain(HINSTANCE mod, DWORD DWORD_GRUND, LPVOID res)
{
switch(DWORD_GRUND)
{
case 1:
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)Hacks , 0, 0, 0);
break;
case 2:
break;
}
return TRUE;
}