herer is my source code! someone pls correct end give me! my first one
#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 = true;
bool Nosmoke = true;
bool Whitewalls = false;
bool playerframe = true;
bool worldframe = false;
bool nosky = true;
bool nogun = true;
for(; {
__asm pushad;
if(GetAsyncKeyState(VK_NUMPAD1)&1) {
PlayerGlow = !PlayerGlow;
}
if(GetAsyncKeyState(VK_NUMPAD2)&1) {
FogEnable = !FogEnable;
}
if(GetAsyncKeyState(VK_NUMPAD3)&1) {
Nosmoke = !Nosmoke;
}
if(GetAsyncKeyState(VK_NUMPAD4)&1) {
Whitewalls = !Whitewalls;
}
if(GetAsyncKeyState(VK_NUMPAD5)&1) {
playerframe = !playerframe;
}
if(GetAsyncKeyState(VK_NUMPAD6)&1) {
worldframe = !worldframe;
}
if(GetAsyncKeyState(VK_NUMPAD7)&1) {
nosky = !nosky;
}
if(GetAsyncKeyState(VK_NUMPAD8)&1) {
nogun = !nogun;
}
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 0");
}
else {
PushToConsole("DrawFlat 1");
}
if (playerframe) {
PushToConsole("WireFrameModels 1");
}
else {
PushToConsole("WireFrameModels 0");
}
if (nogun) {
PushToConsole("DrawGuns 0");
}
else {
PushToConsole("DrawGuns 1");
}
if (nosky) {
PushToConsole("DrawSky 0");
}
else {
PushToConsole("DrawSky 1");
}
if (worldframe) {
PushToConsole("WireFrame 1");
}
else {
PushToConsole("WireFrame 0");
}
Sleep(100);
__asm popad;
}
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
MessageBoxA(0, "Stewie! By MPGH! ", "Hack is gonna Kick ASS WORK!!", 0);
system("start mpgh.net");
CreateThread(NULL, NULL,Main, NULL, NULL, NULL);
}
return TRUE;
}
Last edited by stewie997; 10-15-2010 at 07:05 AM. Reason: Spelling mistake
ups sry about that!