help with code?

Posts 13 of 3 · Page 1 of 1
help with code?
Ok so i wanted to try and make a hack ( not make i mean use) so i went the this thread

http://www.mpgh.net/forum/242-crossf...urce-easy.html

and i did EXACTLY what it says used his code that he has posted there

#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 + 0x2AAE80) );
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x1F8 );
_asm
{
push szVal;
call CONoff;
add esp, 4;
}
}
}
DWORD WINAPI Main(LPVOID) {
while(GetModuleHandleA("CShell.dll") == NULL ) {
Sleep(150);
}

bool PlayerGlow = true;
bool FogEnable = false;
bool Nosmoke = true;
bool Whitewalls = false;


for(; {
__asm pushad;
if(GetAsyncKeyState(VK_F2)&1) {
PlayerGlow = !PlayerGlow;
}
if(GetAsyncKeyState(VK_F3)&1) {
FogEnable = !FogEnable;
}
if(GetAsyncKeyState(VK_F4)&1) {
Nosmoke = !Nosmoke;
}
if(GetAsyncKeyState(VK_F9)&1) {
Whitewalls = !Whitewalls;
}

if (Nosmoke) {
PushToConsole("DrawParticles 1");
}
else {
PushToConsole("DrawParticles 0");
}

if (FogEnable) {
PushToConsole("FogEnable 1");
}
else {
PushToConsole("FogEnable 0");
}
if (PlayerGlow) {
PushToConsole("ScreenGlowEnable 1");

}
else {
PushToConsole("ScreenGlowEnable 0");

}
if (Whitewalls) {
PushToConsole("DrawFlat 1");
}
else {
PushToConsole("DrawFlat 0");
}
Sleep(100);
__asm popad;
}
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
MessageBoxA(0, "The Creators Name Here ", "Successfully Injected", 0);
system("start http://www.mpgh.net");
CreateThread(NULL, NULL,Main, NULL, NULL, NULL);
}
return TRUE;
}

that lol and i did debug like it says and all and it came back with There are build erros. Would you like to continue and run the last successful build?

(YES) (NO)

what do i do? can any1 help>? or maybe post a code you use that you KNOW works and see if its just that code? Please help

P.S That code cam out weird but if you go to original thread you'll see it normal thanks
~They say that the PTC command is not working anymore so search some source code to make a new hack
Next time post this in the source code section! The people their no what their talking about!
Posts 13 of 3 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

Need help?