PostProblem with code?

Posts 115 of 17 · Page 1 of 2
Problem with code?
What's the problem? None of the funtions (one hit, no reload) will work! I hear beep when I press hot key but nothing, no one hit or no reload :/ Please quote and correct the problem, thanks. Btw don't hate and call leecher and stuff, old and gay.

Credits to Swiftdude for the base!

#include<windows.h>




#define WeaponMgr 0xA287A8

#define ReloadAnimRatio 0x2424

#define AmmoDamage 0x07F8





float Hithard = 99999.0f;





char Msg[] = {'M','a','d','e',' ','b','y',' ','J','a','m','i','e','9','0','1',0 };

char Title[] = {'S','u','c','c','e','s','s','f','u','l','l','y',' ','I','n','j','e','c','t','e','d',0 };


DWORD WINAPI Hacks(LPVOID)

{

bool onehit = false;
bool reload = false;


while(1)

{

DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");

DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr);




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

if(GetAsyncKeyState(VK_F2) || GetAsyncKeyState(VK_NUMPAD1) &1) { reload = true; Beep(512, 100); }



if(onehit)

{

if (pWeaponMgr)

{

for(int i=0; i<445; i++)

{

if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != 0x07F8)

*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + AmmoDamage) = 99999;

}

}

}




if(reload)

{

if (pWeaponMgr)

{

for(int i=0; i<445; i++)

{

if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != 0x2424)

*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + ReloadAnimRatio) = 100;

}

}

}







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 )

{



MessageBoxA(0, "Made by Jamie901","Successfully Injected", 0);



CreateThread(0,0,(LPTHREAD_START_ROUTINE)Wait,0,0, 0);

}

return 1;
}


/Discuss.
because your a complete copy and paster, who rely on others to do your work without trying to learn for your self.
Quote Originally Posted by topblast View Post
because your a complete copy and paster, who rely on others to do your work without trying to learn for your self.
@topblast Dude, I'm trying to learn gradually, so what if I use a LEAKED base. Not my fault it got leaked, if you don't want to help me don't reply to this thread just to cause spam cause you dislike me using someone's base! Either help or get lost.
Quote Originally Posted by jamie901 View Post
@topblast Dude, I'm trying to learn gradually, so what if I use a LEAKED base. Not my fault it got leaked, if you don't want to help me don't reply to this thread just to cause spam cause you dislike me using someone's base! Either help or get lost.
@jamie901
I don't dislike you, or people like you. Without "people like you" I will not have anyone to ebstablish dominance over.

I don't see why he is SOO angry over a little piece of shit base with no menu.. 2 VIP bases were leaked in CA and the coders didn't let it get over them, One even posted the base so i wont need to be leaked anymore. If it was up to me, and if I had that base, I would post it ALL over MPGH and rub it in his face. He is angry over a HOT KEY BASE!
ammo damage i think is mot 0x07F8 its 0x7F8 and i think that the prblem is coming from while(!Ready2Hook()) Sleep(200); and the text under that

and yea its suiftdude base but nevermind
Quote Originally Posted by kmanev073 View Post
ammo damage i think is mot 0x07F8 its 0x7F8 and i think that the prblem is coming from while(!Ready2Hook()) Sleep(200); and the text under that

and yea its suiftdude base but nevermind
@kmanev073

Ah yes I don't spot things like addys very easy Oh and you mean It should be (100); or just take it out?
Error fixed
Code:
#include<windows.h>




#define WeaponMgr 0xA287A8

#define ReloadAnimRatio 0x2424

#define AmmoDamage 0x7F8





float Hithard = 99999.0f;





char Msg[] = {'M','a','d','e',' ','b','y',' ','J','a','m','i','e','9','0','1',0 };

char Title[] = {'S','u','c','c','e','s','s','f','u','l','l','y',' ','I','n','j','e','c','t','e','d',0 };


DWORD WINAPI Hacks(LPVOID)

{

bool onehit = false,
      reload = false;


while(1)

{

DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");

DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr);




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

if(GetAsyncKeyState(VK_F2) || GetAsyncKeyState(VK_NUMPAD1) &1) { reload = true; Beep(512, 100); }



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))) + AmmoDamage) = 99999;

}

}

}




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))) + ReloadAnimRatio) = 100;

}

}

}







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 )
    {
	
        MessageBoxA(0, "Error fix by Kloklo2","Kloklo2", 0);
	

	CreateThread(0,0,(LPTHREAD_START_ROUTINE)Wait,0,0,0);
    }
    return 1;
}
If it work klick
Quote Originally Posted by kloklo2 View Post
Error fixed
Code:
#include<windows.h>




#define WeaponMgr 0xA287A8

#define ReloadAnimRatio 0x2424

#define AmmoDamage 0x7F8





float Hithard = 99999.0f;





char Msg[] = {'M','a','d','e',' ','b','y',' ','J','a','m','i','e','9','0','1',0 };

char Title[] = {'S','u','c','c','e','s','s','f','u','l','l','y',' ','I','n','j','e','c','t','e','d',0 };


DWORD WINAPI Hacks(LPVOID)

{

bool onehit = false,
      reload = false;


while(1)

{

DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");

DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr);




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

if(GetAsyncKeyState(VK_F2) || GetAsyncKeyState(VK_NUMPAD1) &1) { reload = true; Beep(512, 100); }



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))) + AmmoDamage) = 99999;

}

}

}




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))) + ReloadAnimRatio) = 100;

}

}

}







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 )
    {
	
        MessageBoxA(0, "Error fix by Kloklo2","Kloklo2", 0);
	

	CreateThread(0,0,(LPTHREAD_START_ROUTINE)Wait,0,0,0);
    }
    return 1;
}
If it work klick
Now some noobs say you are leecher for the hotkeys code ahahahahha
they helped you just use pther base
@kloklo2

Your fix didn't work. The one hit kill and no reload still don't work.
Quote Originally Posted by jamie901 View Post
@kloklo2

Your fix didn't work. The one hit kill and no reload still don't work.
Check this numpad 0 + 1 if it dont work check addys :|
Code:
#include<windows.h>




#define WeaponMgr 0xA287A8

#define ReloadAnimRatio 0x2424

#define AmmoDamage 0x7F8





float Hithard = 99999.0f;







DWORD WINAPI Hacks(LPVOID)

{

bool onehit = false,
      reload = false;


while(1)

{

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




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

if(GetAsyncKeyState(VK_NUMPAD1) || GetAsyncKeyState(VK_NUMPAD1) &1) { reload = true; Beep(512, 100); }



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))) + AmmoDamage) = 99999;

}

}

}




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))) + ReloadAnimRatio) = 100;

}

}

}







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 )
    {
	
        MessageBoxA(0, "Error fix by Kloklo2","Kloklo2", 0);
	

	CreateThread(0,0,(LPTHREAD_START_ROUTINE)Wait,0,0,0);
    }
    return 1;
}
Quote Originally Posted by kloklo2 View Post
Check this numpad 0 + 1 if it dont work check addys :|
Code:
#include<windows.h>




#define WeaponMgr 0xA287A8

#define ReloadAnimRatio 0x2424

#define AmmoDamage 0x7F8





float Hithard = 99999.0f;







DWORD WINAPI Hacks(LPVOID)

{

bool onehit = false,
      reload = false;


while(1)

{

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




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

if(GetAsyncKeyState(VK_NUMPAD1) || GetAsyncKeyState(VK_NUMPAD1) &1) { reload = true; Beep(512, 100); }



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))) + AmmoDamage) = 99999;

}

}

}




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))) + ReloadAnimRatio) = 100;

}

}

}







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 )
    {
	
        MessageBoxA(0, "Error fix by Kloklo2","Kloklo2", 0);
	

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

It don't work man.
then i dont know :|
Quote Originally Posted by kloklo2 View Post
then i dont know :|
I know man sucks so bad I can't figure it out -.-
Swifdude base
Add credits and i help you!
Posts 115 of 17 · Page 1 of 2

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?