source code help!

Posts 1–8 of 8 · Page 1 of 1
source code help!
here is what i have been working on. i have bloods base.
when i inject it nothing happens. sorry i am new to this.. pls no rage! what is wrong with the 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 + 0x28BCE0) );
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x1F8 );
_asm
{
push szVal;
call CONoff;
add esp, 4;
}
}
}

BOOL WINAPI Main (LPVOID)
{
bool boxes = true;
bool nosky = false;
bool worldframe = false;
bool playerframe = false;
bool nogun = false;
bool CursorCenter = false;
bool DrawParticles = false;

while(1)
{
if(GetAsyncKeyState(VK_NUMPAD1)&1)
{
boxes = !boxes;
}
if(GetAsyncKeyState(VK_NUMPAD2)&1)
{
nosky = !nosky;
}
if(GetAsyncKeyState(VK_NUMPAD3)&1)
{
worldframe = !worldframe;
}
if(GetAsyncKeyState(VK_NUMPAD4)&1)
{
playerframe = !playerframe;
}
if(GetAsyncKeyState(VK_NUMPAD5)&1)
{
nogun = !nogun;
}
if(GetAsyncKeyState(VK_NUMPAD6)&1)
{
CursorCenter = !CursorCenter;
}
if(GetAsyncKeyState(VK_NUMPAD7)&1)

DrawParticles = !Drawparticles;
}

if (boxes)
PushToConsole("ModelDebug_DrawBoxes 1");
else
PushToConsole("ModelDebug_DrawBoxes 0");

if (nosky)
PushToConsole("DrawSky 0");
else
PushToConsole("DrawSky 1");

if (worldframe)
PushToConsole("WireFrame 1");
else
PushToConsole("WireFrame 0");

if (playerframe)
PushToConsole("WireFrameModels 1");
else
PushToConsole("WireFrameModels 0");

if (nogun)
PushToConsole("DrawGuns 0");
else
PushToConsole("DrawGuns 1");

if (CursorCenter)
PushToConsole("CursorCenter 1");
else
PushToConsole("CursorCenter 0");

if (no smoke)
PushToConsole("DrawParticles 1");
else
PushToConsole("DrawParticles 0");

Sleep(100);
}
}

bool Ready(void)
{
if( GetModuleHandleA("CShell.dll")!= NULL)
return true;
return false;
}

DWORD WINAPI dwMainThread(LPVOID)
{
while (!Ready())
Sleep(200);
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Main, NULL, NULL, NULL);
return 0;
}

BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
MessageBoxA(0, "Coded By Conman", "Injected", 0);
CreateThread(NULL, NULL, dwMainThread, NULL, NULL, NULL);
}
return TRUE;
}
please help me!
CAN SOMEONE PLEASE HELP ME!?!?!?!?!
LT client is outdated and xtrap detects hotkeys
Yes swiftdude is right and make sure renew the LTc client blood uloaded
Hotkey's still work for me :P
Quote Originally Posted by lauwy View Post
Hotkey's still work for me :P
how?


.
On windows 7 64x they work. On xp 32 bit they don't work.

But registerhotkey works with xp also
Posts 1–8 of 8 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us