ExclamationMy Hack

Posts 16–25 of 25 · Page 2 of 2
Quote Originally Posted by badboy3 View Post
come down man I'm only 15 years old...go slow on people....
i didnt mean you btw, i meant the guy i quoted but yeah...
Quote Originally Posted by badboy3 View Post
I did ????


Here is the code giving Jeff his credits....



Code:
#include "Hacks.h"
#include<windows.h>
#define WeaponMgr 0xA68F90
#define NoReload 0x269C
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->ChangeWeaponAnimRatio) = 9999;
				*(float*)GetAddressFromOffset(Weapon, WeaponMgr->ReloadAnimRatio) = 999;
			}
		}
	}
	else 
		return;
}




bool InstantReload = true; 

if(GetAsyncKeyState(VK_F1)&1) onehit = true; 

if(InstantReload);
{
if (pWeaponMgr) 
{
for(int i=0; i<560; i++) 
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL) 
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoReload) = 150; 
}
}
}

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;
}


And the error is:


Code:
1>------ Build started: Project: reload, Configuration: Debug Win32 ------
1>  Hacks.cpp
1>c:\users\badboy3\documents\ha,cks\hacks.cpp(24): error C2227: left of '->ChangeWeaponAnimRatio' must point to class/struct/union/generic type
1>          type is 'int'
1>c:\users\badboy3\documents\ha,cks\hacks.cpp(25): error C2227: left of '->ReloadAnimRatio' must point to class/struct/union/generic type
1>          type is 'int'
1>c:\users\badboy3\documents\ha,cks\hacks.cpp(38): error C2059: syntax error : 'if'
1>c:\users\badboy3\documents\ha,cks\hacks.cpp(40): error C2059: syntax error : 'if'
1>c:\users\badboy3\documents\ha,cks\hacks.cpp(41): error C2447: '{' : missing function header (old-style formal list?)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


---------- Post added at 03:50 PM ---------- Previous post was at 03:46 PM ----------



no no no bro....you did not get my point....I asked for help not for working code.... Those are 2 different things!!!

OMG, no way xD go back to school. xD plz xD.
You are making me ROFLMAO xD

First learn, then do. You need to learn how to code. You can't learn it good this way.
Quote Originally Posted by 258456 View Post
This is exactly what pisses me off. This idiot doesn't even know how to make an empty dll project, yet he somehow has "hack source". Absolutely not. He is a leecher and idiots like you screw up this section. It used to be a place where coders would get together and discuss things together, but now it's full of stupid leechers and people who think they're all hardcore cuz they can c&p code. I just had to get this out there and hopefully admins will do something about this. Idk what but i feel something should be done. This section needs a lot of cleaning.
lol i fully agree with you. c+p-ers suck
Quote Originally Posted by _corn_ View Post
lol i fully agree with you. c+p-ers suck
Yes they do. It's not because they are releasing hacks and give credits to themselves, but it is because they think that this is what coding is and it's not. You don't learn to code to make hacks. That's not how it works. You need to learn programming (pick a language) and make cool apps then make hacking your goal.
@badboy3
right click on the project in solution explorer select properties
expand C/C++
then click on Pre compiled headers
change Create/Use pre compiled header to Not using pre compiled headers

then remove #include "stdafx.h"
You dont even know what you are coding -.-
Quote Originally Posted by Hexicidal2 View Post
delete "#include <stdafx.h>

put <windows.h>
Do this, and all fine !
tanks guys

~/close
u need a .dll main ? hummm u got to find the code for .dll main so no Fail ..
people are gonna begin calling u leecher if u keep posting threads about "help me"...sry but that is gonna happen
Posts 16–25 of 25 · Page 2 of 2

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us