QuestionHelp With Code (future hack)

Posts 1–15 of 25 · Page 1 of 2
Help With Code (future hack)
Hey i'm trying to make a no reload hack that way it would be less likely to be called a hacker in game

Any way i tried to debug my code and i got some errors can anyone help me with fixing it or suggestions how to make it better

Heres the code:

Code:
#include <windows.h>
#include <iostream>

using namespace std;

void __cdecl PushToConsole(char* szVal ) {
    DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
    if( dwCShell != NULL )
    {
        DWORD *LTClient = ( DWORD* )( (dwCShell + 0x299D40) );
        void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x1F8 );
        _asm
        {
            push szVal;
            call CONoff;
            add esp, 4;
        }
    }
}


DWORD WINAPI hello(LPVOID) 
{
    while(GetModuleHandleA("CShell.dll") == NULL )
    {
    Sleep(150); //150ms
    }
}

    bool reload = true;
 
{
    
      _asm pushad;
            if(GetAsyncKeyState(VK_NUMPAD1)&1)
            {
                reload = !reload;
            }
            Sleep(100);
            __asm popad;
    
}
    

BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
    DisableThreadLibraryCalls(hDll);
    if ( dwReason == DLL_PROCESS_ATTACH )
    {
        MessageBoxA(0, "TheAgent308", "Injected", 0);
        CreateThread(NULL, NULL,hello, NULL, NULL, NULL);
    }
    return TRUE;
}
And here is the error

c:\documents and settings\corey\my documents\visual studio 2008\projects\new hack solution\new hack\aimbot.cpp(32) : error C2447: '{' : missing function header (old-style formal list?)
Lol man idk... I know how to do that a bit but i dont know how to fix ur error.

Diekos995.
i tried adding a bracket but just made more errors....and do i need a push to console command for this type of hack?
u need of the PTC of the No Reload
How would i go about finding that again been a long time since i have tried to make any hack do you mean like "FogEnable , ScreenGlowEnable , etc" stuff like that?
Please learn basic c++ before making any hack... I don't like noob like you who only know copy/paste base without thinking to learn/understand it.

This is your mistake:

DWORD WINAPI hello(LPVOID)
{
while(GetModuleHandleA("CShell.dll") == NULL )
{
// call your hack here
Sleep(150); //150ms
}
}

bool reload = true;

{

_asm pushad;
if(GetAsyncKeyState(VK_NUMPAD1)&1)
{
reload = !reload;
}
Sleep(100);
__asm popad;

}
The bool must be part of ??? or you can simply move the bold part (above) into the main "hello".
listen i am not a noob in coding i usually use c# if i make any programs teacher said if you know one coding systems you know them all (that is not the case) I am trying to learn by using other peoples examples and then trying to use there examples to make my own the only way to do that is to make mistakes
EXAMPLE:

Code:
#include <windows.h>
#include <iostream>

using namespace std;

void __cdecl PushToConsole(char* szVal ) {
    DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
    if( dwCShell != NULL )
    {
        DWORD *LTClient = ( DWORD* )( (dwCShell + UPDATE LTCADDY );
        void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x1F8 );
        _asm
        {
            push szVal;
            call CONoff;
            add esp, 4;
        }
    }
}

void LearnC++()
{

bool Learn = false;

while(true)
{
	__asm pushad;
if(GetAsyncKeyState(VK_END)<0)
{
Learn = !Learn;
}

if(Learn) {
	PushToConsole("GoLearnC++ 0");
} else {
	PushToConsole("GoLearnC++ 1");
}
Sleep(100);
	__asm popad;
	}
}

BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
    DisableThreadLibraryCalls(hDll);
    if ( dwReason == DLL_PROCESS_ATTACH )
    {
        MessageBoxA(0, "TheAgent308 needs to LearnC++ not copy and paste", "LearnC++ for Injection", 0);
        CreateThread(NULL, NULL,hello, NULL, NULL, NULL);
    }
    return TRUE;
}
@Nubzgetkillz, you forgot rename the hello with LearnC++ :

CreateThread(NULL, NULL,hello, NULL, NULL, NULL);
Quote Originally Posted by T0y View Post
@Nubzgetkillz, you forgot rename the hello with LearnC++ :

CreateThread(NULL, NULL,hello, NULL, NULL, NULL);
im sorry i forgot that part haha.. xd here it is

Code:
#include <windows.h>
#include <iostream>

using namespace std;

void __cdecl PushToConsole(char* szVal ) {
    DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
    if( dwCShell != NULL )
    {
        DWORD *LTClient = ( DWORD* )( (dwCShell + UPDATE LTCADDY );
        void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x1F8 );
        _asm
        {
            push szVal;
            call CONoff;
            add esp, 4;
        }
    }
}

void LearnC++()
{

bool Learn = false;

while(true)
{
	__asm pushad;
if(GetAsyncKeyState(VK_END)<0)
{
Learn = !Learn;
}

if(Learn) {
	PushToConsole("GoLearnC++ 0");
} else {
	PushToConsole("GoLearnC++ 1");
}
Sleep(100);
	__asm popad;
	}
}

BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
    DisableThreadLibraryCalls(hDll);
    if ( dwReason == DLL_PROCESS_ATTACH )
    {
        MessageBoxA(0, "TheAgent308 needs to LearnC++ not copy and paste", "LearnC++ for Injection", 0);
        CreateThread(NULL, NULL,LearnC++, NULL, NULL, NULL);
    }
    return TRUE;
}
THERE WE GO!!!!! HAHAHA STILL HEHE nice function ain't it? jk idk
Don't Make A Useless Hack Make A Simple Hack lig No Fog,Etc)
I think you need to have a "main" to call all the other functions...
Dont Even Try it. No Reload Is Server Sided?
Quote Originally Posted by Jazk View Post
Dont Even Try it. No Reload Is Server Sided?
No... /msg2short
umm.. lol you doing do reload like that, it a mem hack not a ptc
i havent found the right offset for it yet, but from my 1 hit kill and shotgun spread and other stuff im guessing its gana b somthing like
Code:
*(float*)(wep_address+Loop_bettween_all_the_guns+offset)=(float)0.01;
*hint* you cant set it to 0 :P
Posts 1–15 of 25 · Page 1 of 2

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us