CFFG - CrossFire Fantasy Games Hacks


You are not connected. Please login or register

[Help] Why shouldnt it work and how to fix it ?

4 posters

Go down  Message [Page 1 of 1]

xSheadowX


Registered User
Registered User

Hello Community, why shouldnt this code works ?
If i start the Game, XTRAP reporting someting like Error or somethink.

Can someone help me ?

#include <Windows.h>
#define WeaponMgr 0xB65E94//

Code:
#define nochange 0xBDC//
#define NoReload 0xBD8//
#define damage 0x7C4//
#define NoRecoil1 0x4E8//
#define NoRecoil2 0x36A0//
#define NoRecoil3 0xE98//
#define NoRecoil4 0x1000//
#define NoRecoil5 0x1168//
#define knifeOHK1 0x3B9C//
#define knifeOHK2 0xBA4//

#define wallhack 0x6D0644



void UndetectedBase()
{
  DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
 
  if (GetModuleHandleA("ClientFx.fxd")&&GetModuleHandleA("CShell.dll"))
  {
 
      memcpy((VOID*)wallhack, "\x00\x00\x00\x00\x00\x00", 6);

 

        if(CShell + WeaponMgr)
 {
  for(int i=0; i<700; i++)
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
  *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoReload) = 10;
 }
        if(CShell + WeaponMgr)
 {
  for(int i=0; i<700; i++)
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
  *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + nochange) = 10;
 }

        if (CShell + WeaponMgr)
 
for(int i=0; i<700; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
{
for (int j=0; j<10 ; j++)
{
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoRecoil1+j*4) = 0.0f;
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoRecoil2+j*4) = 0.0f;
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoRecoil3+j*4) = 0.0f;
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoRecoil4+j*4) = 0.0f;
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoRecoil5+j*4) = 0.0f;/////////////
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + knifeOHK1+j*4) = 200.0f + 200.0f;
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + knifeOHK2+j*4) = 200.0f + 200.0f;
}
}
}
  }
  Sleep(151);
}
 
void Base()
{
  for(;;)UndetectedBase();
}
 
BOOL WINAPI DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
{
  if (dwReason == DLL_PROCESS_ATTACH)
  {
      DisableThreadLibraryCalls(hDll);
      CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Base, NULL, NULL, NULL);
  }
  return TRUE;
}

Cr4zy[ox]

Cr4zy[ox]
Admininstrator
Admininstrator

if u did copy+paste and it does that, release, dont debug it. if it keep that error, rename hack to snddrv or ddraw

https://cffg.umforum.net

xSheadowX


Registered User
Registered User

Allready did but still the error

Cr4zy[ox]

Cr4zy[ox]
Admininstrator
Admininstrator

xSheadowX wrote:Allready did but still the error

inject on lobby

https://cffg.umforum.net

xSheadowX


Registered User
Registered User

Did but XTRAP Error

hane237


Registered User
Registered User

i think the proplem is with the base have somthing wrong i will test it ok ?

xSheadowX


Registered User
Registered User

Ok, but it still gives errors :)

Cr4zy[ox]

Cr4zy[ox]
Admininstrator
Admininstrator

xSheadowX wrote:Ok, but it still gives errors :)

show a ss of the error?

https://cffg.umforum.net

xSheadowX


Registered User
Registered User

Admin, go Skype Online so i can give you the SS

Cr4zy[ox]

Cr4zy[ox]
Admininstrator
Admininstrator

xSheadowX wrote:Admin, go Skype Online so i can give you the SS

i cant right now, maybe tomorow Really? .... very ni

https://cffg.umforum.net

xSheadowX


Registered User
Registered User

Hmm okay, here is the screenshot, it doesnt matter how to call the Dll
[You must be registered and logged in to see this image.]

xSheadowX


Registered User
Registered User

Sorry for Doublepost ut NO One ?

Cr4zy[ox]

Cr4zy[ox]
Admininstrator
Admininstrator

rename hack to mlang and put in cffolder

https://cffg.umforum.net

[CFFG]janko21

[CFFG]janko21
Global Moderator
Global Moderator

OEF the admin can not come on skype... :c he can never come xD

Sponsored content



Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum