#include <windows.h>
#define nor1 0x3745BDE0
#define nor2 0x3745BDF1
#define nor3 0x3745BDF4
#define nor4 0x3745BDF7
#define nor5 0x3745BE00
bool Memoria( void * pDest, char * szPatch, size_t sSize )
{
DWORD dwOrgProtect = NULL;
if ( !VirtualProtect ( pDest, sSize, PAGE_EXECUTE_READWRITE, &dwOrgProtect ))
return FALSE;
memcpy( pDest, szPatch, sSize );
VirtualProtect( pDest, sSize, dwOrgProtect, NULL );
return TRUE;
}
void __cdecl dbl( const char* Command )
{
DWORD *Client = ( DWORD* )( 0x377C4450 );
void* shackscall = ( void* )*( DWORD* )( *Client + 0x208 );
__asm
{
push Command;
call shackscall;
add esp, 4;
}
}
bool Hook(){
if( GetModuleHandleA( "ClientFX.fxd" ) != NULL
&& GetModuleHandleA( "CShell.dll" ) != NULL )
return true;
return false;
}
void hack(){
bool activate = false;
while (!Hook()){
Sleep(20);
}
bool flyhack = false;
#define playerpoint 0x66F34
#define teleportaddy 0x373FED04
#define yoffset 0xCC
#define posyoffset 0xCC
#define otherplayerpoint 0x37804D50
DWORD nom, posy, teleloc, playertarget;
while(1){
nom=NULL;
nom = (DWORD)GetModuleHandleA("ClientFX.fxd");
nom += playerpoint;
memcpy(&posy,(void *)(nom),4);
posy += posyoffset;
memcpy(&teleloc,(void *)(teleportaddy),4);
teleloc += yoffset;
memcpy(&playertarget,(void *)(otherplayerpoint),4);
playertarget += yoffset;
dbl("ShowFps 1"); //Auto On
dbl("WeaponSway 0.000000");
dbl("ActivationDistance 100000");
dbl("ShowBreath 1");
dbl("PerturbRotationEffect 0.000000");
dbl("PerturbIncreaseSpeed 0.000000");
dbl("PerturbWalkPercent 0.000000");
dbl("PerturbFiringIncreaseSpeed 0.000000");
dbl("PerturbRecoil 0.000000");
dbl("FireMovePerturb 0.000000");
dbl("ZoomedFireMoveDuckPerturb 0.000000");
dbl("ZoomedFireMovePerturb 0.000000");
dbl("ZoomedFireDuckPerturb 0.000000");
dbl("SkelModelStencil 1");
dbl("ShowHitSphere 0.000000");
dbl("DrawParticles 0");
dbl("KnockBack 0");
dbl("CrossHairB 255");
Memoria((LPVOID)nor1, "\x90\x90\x90", 3);
Memoria((LPVOID)nor2, "\x90\x90\x90", 3);
Memoria((LPVOID)nor3, "\x90\x90\x90", 3);
Memoria((LPVOID)nor4, "\x90\x90\x90", 3);
Memoria((LPVOID)nor5, "\x90\x90\x90", 3);
if(GetAsyncKeyState(VK_NUMPAD1)<0){ // Activation
if(activate){
dbl("CamMaxPosYOffset 0.000000");
activate = false;
} else {
dbl("CamMaxPosYOffset -5000.0000000");
activate = true;
}
}
Sleep(20);
if(GetAsyncKeyState(VK_NUMPAD1)&1){
flyhack = true;
}
if(flyhack == true && (GetAsyncKeyState(VK_SPACE)<0))
{
dbl( "PlayerGravity 800" );
}else{
dbl( "PlayerGravity -800" );
}
}
if(GetAsyncKeyState(VK_F11)<0){ //OPK
if(posy > 0xCC && playertarget > 0xCC )
if(posy > 0xC8 && playertarget > 0xC8 )
if(posy > 0xD0 && playertarget > 0xD0 ){
*(float*)playertarget = *(float*)posy;
*(float*)(playertarget+0x4) = *(float*)(posy+0x4);
*(float*)(playertarget-0x4) = *(float*)(posy-0x4);
Sleep(10);
}
}
if(GetAsyncKeyState(VK_F12)<0){ //Telekill
if(posy > 0xCC && playertarget > 0xCC )
if(posy > 0xC8 && playertarget > 0xC8 )
if(posy > 0xD0 && playertarget > 0xD0 ){
*(float*)(posy) = *(float*)(playertarget);
*(float*)(posy+0x4) = *(float*)(playertarget+0x4);
*(float*)(posy-0x4) = *(float*)(playertarget-0x4);
Sleep(10);
}
}
Sleep(20);
}
BOOL APIENTRY DllMain( HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved){
switch (ul_reason_for_call){
case DLL_PROCESS_ATTACH:
CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)&hack, NULL, 0,NULL);
break;
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}
.
can ya fix it up plox.#include <windows.h>
//defines
#define nor1 0x3745BDE0
#define nor2 0x3745BDF1
#define nor3 0x3745BDF4
#define nor4 0x3745BDF7
#define nor5 0x3745BE00
//bool
bool Memoria( void * pDest, char * szPatch, size_t sSize )
{
DWORD dwOrgProtect = NULL;
if ( !VirtualProtect ( pDest, sSize, PAGE_EXECUTE_READWRITE, &dwOrgProtect ))
return FALSE;
memcpy( pDest, szPatch, sSize );
VirtualProtect( pDest, sSize, dwOrgProtect, NULL );
return TRUE;
}
DWORD posptr;
DWORD posy;
#define posyoffset 0xCC
#define charposoffset 0x66F34
DWORD playertarget;
#define otherplyrptr 0x377CD639
#define yoffset 0xCC
void VIP(void)
{
posptr = (DWORD)GetModuleHandleA( "ClientFX.fxd" );
posptr += charposoffset;
memcpy(&posy,(void *)(posptr),4);
posy += posyoffset;
memcpy(&playertarget,(void *)(otherplyrptr),4);
playertarget += yoffset;
if(posy > posyoffset && playertarget > yoffset)
{
if( GetAsyncKeyState(VK_F11) > 0 ) //Tele-Kill
{
*(float*)posy = *(float*)playertarget+20.0f;
*(float*)(posy+0x4) = *(float*)(playertarget+0x4);
*(float*)(posy-0x4) = *(float*)(playertarget-0x4);
}
if( GetAsyncKeyState(VK_F12)> 0 ) //OPK
{
*(float*)playertarget = *(float*)posy;
*(float*)(playertarget+0x4) = *(float*)(posy+0x4);
*(float*)(playertarget-0x4) = *(float*)(posy-0x4);
}
}
}
DWORD posptr1;
DWORD posy1;
#define posyoffset1 0xCC
#define charposoffset1 0x66F34
DWORD playertarget1;
#define otherplyrptr1 0x377CD640
#define yoffset1 0xCC
void GhostMode(void)
{
posptr1 = (DWORD)GetModuleHandleA( "ClientFX.fxd" );
posptr1 += charposoffset1;
memcpy(&posy1,(void *)(posptr1),4);
posy1 += posyoffset1;
if(posy1 > posyoffset1 )
{
if( GetAsyncKeyState( VK_F11 ) &1) //Tele-Kill
{
*(float*)(posy1) = *(float*)(posy1);
*(float*)(posy1+0x4) = *(float*)(posy1+0x4);
*(float*)(posy1-0x4) = *(float*)(posy1-0x4)+100.0f;
}
if( GetAsyncKeyState( VK_F12 ) &1) //Tele-Kill
{
*(float*)(posy1) = *(float*)(posy1);
*(float*)(posy1+0x4) = *(float*)(posy1+0x4);
*(float*)(posy1-0x4) = *(float*)(posy1-0x4)-100.0f;
}
}
}
void __cdecl dbl( const char* Command )
{
DWORD *Client = ( DWORD* )( 0x377C4450 );
void* shackscall = ( void* )*( DWORD* )( *Client + 0x208 );
__asm
{
push Command;
call shackscall;
add esp, 4;
}
}
bool Hook(){
if( GetModuleHandleA( "ClientFX.fxd" ) != NULL
&& GetModuleHandleA( "CShell.dll" ) != NULL )
return true;
return false;
}
void hack(){
bool GhostMode = false;
bool VIP = false;
while (!Hook()){
Sleep(20);
}
bool flyhack = false;
Sleep(20);
}
BOOL APIENTRY DllMain( HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved){
switch (ul_reason_for_call){
case DLL_PROCESS_ATTACH:
CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)&hack, NULL, 0,NULL);
break;
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}