What is wrong with this code?

Posts 1–15 of 16 · Page 1 of 2
What is wrong with this code?
Title says it all:

#include<windows.h>
#include "stdafx.h"

#define WeaponMgr 0xA287A8
#define WepWeight1 0x21DC


float weaponweight =0.0f;


DWORD WINAPI Hacks(LPVOID)
{
bool weaponweight = false;


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


if(GetAsyncKeyState(VK_F9) || GetAsyncKeyState(VK_NUMPAD0) &1) { weaponweight = true; Beep(512, 100); }



if(weaponweight)
{
if (pWeaponMgr)
{
for(int i=0; i<445; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + WepWeight1) = weaponweight;
}
}
}

}
}

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;
}
i dont know anything about it but

PlantTime = false,
defusetime = false;


do you need that for weaponweight?
nope its a bool list and i meant to delete that plant time doesnt work

ok its fixed
Quote Originally Posted by CheatCreatorzz View Post
NoweaponWeight is zero?
Try 100;

Lol weaponWeight 100?
xD it need to be 0

Leeched
its leeched so i dont help u
Omg, almost every thread here goes about leeched bases that aren't working.
Leeched
why not include iostream?? everywhere says that u have to include that in every program... (obviously i just started c++ im at cout :P)
THERE'S NO NEED TO SPAM THE WORD "LEECHED" ON EVERY FUCKING SINGLE THREAD IN THIS SECTION, IT MAKES YOU SOUND LIKE A MORON.
Quote Originally Posted by Codemunkie View Post
THERE'S NO NEED TO SPAM THE WORD "LEECHED" ON EVERY FUCKING SINGLE THREAD IN THIS SECTION, IT MAKES YOU SOUND LIKE A MORON.
thankyou! msg2short

and yes it is Swiftdudes....im just trying to learn c++ and i wanted help i was trying to see if i could get it to work.... a$$3$
u need dll process atack but this code not work,,
This Base Doesnt Work As You Got It, You Need To Update It
Posts 1–15 of 16 · Page 1 of 2

Post a Reply

Tags for this Thread

None

Need help?