Originally Posted by
scimmyboy
he was talking to me.
bravia, code something from SCRATCH. dont even think of using gellins base. you dont even know how gellins base works.
Code:
#include "Base.h"
#include <Windows.h>
#include <memory.h>
cBase Base;
void __cdecl cBase::p( const char* szCommand )
{
DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
if( dwCShell != NULL )
{
DWORD *L***ient = ( DWORD* )( 0x37775D68 );
void* CONoff = ( void* )*( DWORD* )( *L***ient + 0x208 );
__asm
{
push szCommand;
call CONoff;
add esp, 4;
}
}
}
void cBase::Update(void)
{
bool boxes = false;
while(1)
{
if(GetAsyncKeyState(VK_NUMPAD1)<0)
{
if(boxes)
{
Sleep(75);
p("ModelDebug_DrawBoxes 0");
boxes = false;
} else {
Sleep(75);
p("ModelDebug_DrawBoxes 1");
boxes = true;
}
}
}
}
DWORD WINAPI Main(LPVOID)
{
while (!Base.IsGameReadyForHook() )
Sleep(300);
Base.Update();
return 0;
}
BOOL WINAPI DLLMain ( HMODULE hDLL, DWORD dwReason, LPVOID lpReversed )
{
DisableThreadLibraryCalls(hDLL);
if (dwReason == DLL_PROCESS_ATTACH)
{
CreateThread(NULL, NULL, Main, NULL, NULL, NULL);
}
return TRUE;
}
STFU