lol u cant copy and paste some ones base and ask for help+.... if u rly know coding..u could fix some of OBVIOUS AS SUN errors
#include "stdafx.h"
#include "Hacks.h"
cHacks* Hacks;
cHacks::cHacks()
{
DWORD CShell = (DWORD) GetModuleHandleA("CShell.dll");
if(!CShell) return;
dwWeaponMgr = *(DWORD*)GetAddressFromOffset(CShell, WeaponMgrOffset);
dwWallMgr = *(DWORD*)GetAddressFromOffset(CShell, WallMgrOffset);
dwPlayerMgr = *(DWORD*)GetAddressFromOffset(CShell, PlayerMgrOffset);
dwPlayerInfo= *(DWORD*)GetAddressFromOffset(CShell, PlayerInfoOffset);
if(dwWeaponMgr && dwWallMgr && dwPlayerMgr && dwPlayerInfo)
{
for(int i = 0; i < 560; i++)
{
DWORD Weapon = *(DWORD*)GetAddressFromOffset(dwWeaponMgr, (4*i));
if(Weapon)
{
*(float*)GetAddressFromOffset(Weapon, WeaponMgr->BulletPosOffset1) = 0.0f;
*(float*)GetAddressFromOffset(Weapon, WeaponMgr->BulletPosOffset2) = 0.0f;
*(float*)GetAddressFromOffset(Weapon, WeaponMgr->BulletPosOffset3) = 0.0f;
*(float*)GetAddressFromOffset(Weapon, WeaponMgr->BulletPosOffset4) = 0.0f;
*(float*)GetAddressFromOffset(Weapon, WeaponMgr->BulletPosOffset5) = 0.0f;
*(float*)GetAddressFromOffset(Weapon, WeaponMgr->BulletPosOffset6) = 0.0f;
*(float*)GetAddressFromOffset(Weapon, WeaponMgr->BulletPosOffset7) = 0.0f;
}
}
}
else
return;
}
bool cHacks::ReadyForHacks()
{
if(GetModuleHandleA("CShell.dll") != NULL && GetModuleHandleA("ClientFX.fxd") != NULL && GetModuleHandleA("crossfire.exe") != NULL)
return true;
return false;
}
DWORD cHacks::GetAddressFromOffset(DWORD Base, DWORD Offset)
{
if(Base)
return (Base + Offset);
else
return NULL;
}
What's wrong with my code?
i use Jeff base.
Last edited by maximus8011; 11-30-2011 at 06:56 AM.
lol u cant copy and paste some ones base and ask for help+.... if u rly know coding..u could fix some of OBVIOUS AS SUN errors
V4 The best Release..No joke... 4 More Features!! Here is the link
https://www.mpgh.net/forum/175-crossf...ures-best.html
Last edited by maximus8011; 11-30-2011 at 08:03 AM.
bro you need to learn c++...and the way it is set right know you can make it into a hack ....just put the pointer offsets ....and your done...simple....
look in Jeff's base to see the pointers are in WeaponMgr class.
i dont have any error when i debug but in game nothing happened.
Last edited by maximus8011; 11-30-2011 at 07:54 AM.
Can you type the error ?
I dont have any error when i debug but, in game nothing happened.
maximus8011 (11-30-2011)
the addy are updated,i dont have any error when i debug,but in game not working.
I have the same recoil.
i try to make a hack for my own use, don't try to make a hack to upload and say it's mine.
1> Creating "Debug\sxs.unsuccessfulbuild" because "AlwaysCreate" was specified.
1>ClCompile:
1> All outputs are up-to-date.
1> All outputs are up-to-date.
1> sxs.cpp
1>ManifestResourceCompile:
1> All outputs are up-to-date.
1>Manifest:
1> All outputs are up-to-date.
1>LinkEmbedManifest:
1> All outputs are up-to-date.
1> sxs.vcxproj -> C:\Documents and Settings\ \My Documents\Visual Studio 2010\Projects\sxs\Debug\sxs.dll
1>FinalizeBuildStatus:
1> Deleting file "Debug\sxs.unsuccessfulbuild".
1> Touching "Debug\sxs.lastbuildstate".
1>
1>Build succeeded.
1>
1>Time Elapsed 00:00:08.60
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
Last edited by maximus8011; 11-30-2011 at 12:02 PM.
1.offsets not addys xDDDD
2.i think ur offsets are outdated
if(dwWeaponMgr && dwWallMgr && dwPlayerMgr && dwGhostMgr && dwFallMgr)
{
for(int i = 0; i < 560; i++)
{ for(int y = 0; y<9; y++)
{
DWORD Weapon = *(DWORD*)GetAddressFromOffset(dwWeaponMgr, (4*i));
if(Weapon)
{
//NoRecoil
*(float*)( Weapon + (0x0xxx + (4*y))) = (float)0;
*(float*)( Weapon + (0x0xxx + (4*y))) = (float)0;
*(float*)( Weapon + (0x1xxx + (4*y))) = (float)0;
*(float*)( Weapon + (0x1xxx + (4*y))) = (float)0;
*(float*)( Weapon + (0x1xxx + (4*y))) = (float)0;
*(float*)( Weapon + (0x2xxx + (4*y))) = (float)0;
*(float*)( Weapon + (0x2xxx + (4*y))) = (float)0;
give me credits or i kill you ^^
Last edited by |Skrillex|; 11-30-2011 at 02:01 PM.
matheusgtx (11-30-2011),maximus8011 (11-30-2011)