Exclamationmy friend's funiest source code

Posts 1–15 of 19 · Page 1 of 2
my friend's funiest source code
this is the first time my friend makes a c++ hak he used mpgh and lots of other sites to compile a base and that wat it looked like::

Code:
#include "windows.h"

#define grenades ((i==6)||(i==7)||(i==8)||(i==64)||(i==100)||(i==126)||(i==135)||(i==209)||(i==210)||(i==240)||(i==263)||(i==272)||(i==338)||(i==382)||(i==383)||(i==384))
//#define Knifes  ((i==5)||(i==35)||(i==74)||(i==132)||(i==239)||(i==372)||(i==381))
//#define Mutant  ((i==120)||(i==176)||(i==177)||(i==178)||(i==182)||(i==195)||(i==196)||(i==197)||(i==198)||(i==199)||(i==223)||(i==224)||(i==225)||(i==226)||(i==227)||(i==228)||(i==270)||(i==271)||(i==302)||(i==303)||(i==304)||(i==305)||(i==306)||(i==307))


#define WeaponMgr    0xA0F338
#define NoReload    0x2420
#define WeaponDamage  0x07F8

float Hithard = 999.0f;
float FragDmg = 0.0f;


DWORD WINAPI Hacks(LPVOID)
{
  //in case u need it, dont forget use "else"
  bool onehit = false,
     reload = false,
     fragdmg = false;

  while(1)
  {
    DWORD CShell   = (DWORD)GetModuleHandleA("CShell.dll");
	DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr);

	//hotkeys toggle
	if(GetAsyncKeyState(VK_F9) || GetAsyncKeyState(VK_NUMPAD0) 1); { onehit = true; }
	if(GetAsyncKeyState(VK_F10) || GetAsyncKeyState(VK_NUMPAD1) 1) ;{ reload = true; }
	if(GetAsyncKeyState(VK_F11) || GetAsyncKeyState(VK_NUMPAD2) 1) ;{ fragdmg = true; }

	//one hit kill
	if(onehit)
	{
	  if (pWeaponMgr)
	  {
	    for(int i=0; i<445; i++)
		{
		  if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL)
		    *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + WeaponDamage) = Hithard;
		}
	  }
	}

	//no reload
	if(reload)
	{
	  if (pWeaponMgr)
	  {
	    for(int i=0; i<445; i++)
		{
		  if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL)
		    *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + NoReload) = 100;
		}
	  }
	}

	//no grenade damage
	if(fragdmg)
	{
	  if (pWeaponMgr)
	  {
	    for(int i=0; i<445; i++)
		{
		  if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL && (grenades))
		    *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + WeaponDamage) = FragDmg;
		}
	  }
	}
	Sleep(100);
  }
}

bool Ready2Hook()
{
  if(GetModuleHandleA("CShell.dll")  != NULL
  && GetModuleHandleA("ClientFx.fxd") != NULL)
    return 1;
  return 0;
}

DWORD WINAPI Wait(LPVOID)
{
  while(!Ready2Hook()) Sleep(200);
	CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Hacks, NULL, NULL, NULL);
  return 0;
}

BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
  DisableThreadLibraryCalls(hDll);
  
  if ( dwReason == DLL_PROCESS_ATTACH )
  {
	//optional
    MessageBoxA(0, Msg,Title, 0);
	

	CreateThread(0,0,(LPTHREAD_START_ROUTINE)Wait,0,0,0);
  }
  return 1;
}

i hope u dont die from laughing like wat i did!! looooooooooooooooooooooooooooooooooooooooooooool.. hahahaha
Whats wrong with it....it's swiftdude's base..
Lol I Dont See Nothing Wrong With It Spite The Hotkeys Which Is Now Patched And Also The Ready2Hook() And Other Small Things Which Would Possibly Need Changing.
Quote Originally Posted by {Banned}**HACKER** View Post
Lol I Dont See Nothing Wrong With It Spite The Hotkeys Which Is Now Patched And Also The Ready2Hook() And Other Small Things Which Would Possibly Need Changing.
Hotkeys aren't patched, the code is just mroe diffecult.
Quote Originally Posted by Swag View Post
Hotkeys aren't patched, the code is just mroe diffecult.
Yea But I Meant That Way ....
Quote Originally Posted by {Banned}**HACKER** View Post

Yea But I Meant That Way ....
I'm sure ~fallen~ can make hotkeys..
Quote Originally Posted by Swag View Post
I'm sure ~fallen~ can make hotkeys..
OFC fallen wont do hotkeys...why would he even think about it...he can make epic menus...
Quote Originally Posted by Assassin's Creed View Post

OFC fallen wont do hotkeys...why would he even think about it...he can make epic menus...
Yes.. i know it
So if you´re friend is @Swiftdude
Then mmmk
This base is actually perfect for every new coder
Quote Originally Posted by A$IAN View Post
So if you´re friend is @Swiftdude
Then mmmk
This base is actually perfect for every new coder
but it is detected even if u renew the addies and offsets.>!s
Quote Originally Posted by A$IAN View Post
So if you´re friend is @Swiftdude
Then mmmk
This base is actually perfect for every new coder
hes not my friend i said a friend of mine showed me that he made a base thats all
Quote Originally Posted by Assassin's Creed View Post

but it is detected even if u renew the addies and offsets.>!s
SwiftBase working to me perfect till now
Quote Originally Posted by BlackLite View Post
SwiftBase working to me perfect till now
nah am getting xtrap error!
Hook into the game to create threads.
Its a good way to start what is so funny about that....
Posts 1–15 of 19 · Page 1 of 2

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us