edit:
the game crash after i start "PLAY" in room and its come to loading
what can i do?
thats the code
Code:
//includes all nessecary files to this source
#include <windows.h>
//End of includes
//This is what you call globals.
#include <dos.h>
#include <stdio.h>
#include <conio.h>
#include <iostream>
#include <conio.h>
#include <windows.h>
int HackOn = 0;
int HackMax = 10;
bool test = false;
#define ADDR_SBULLLETS 0x3741BFED
void Main (void)
{
MessageBox(NULL, L"ok", L"activated", MB_OK);
Sleep(5000);
Sleep(5000);
Sleep(5000);
Sleep(5000);
Sleep(5000);
Sleep(5000);
while(1)
{
if(GetAsyncKeyState(VK_NUMPAD1)&1)
{
test = (!test);
}
if(GetAsyncKeyState(VK_NUMPAD2)&1)
{
HackOn ++;
if(HackOn == HackMax) HackOn = 0;
}
if(test)
{
memcpy( (PBYTE)ADDR_SBULLLETS, (PBYTE)"\x33\xC0\x90", 3 );
}else{
memcpy( (PBYTE)ADDR_SBULLLETS, (PBYTE)"\x0F\x94\xC0", 3 );
}
}
}
DWORD WINAPI Lesson (LPVOID)
{
Main();
return 1;
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
CreateThread(NULL, NULL, Lesson, NULL, NULL, NULL);
}
return TRUE;
}
thats code based on tutorial
i correct the address
maybe i need check before the while if its in game or in loby or something ? and how can i do that
thx: )