Send Error?

Posts 1–2 of 2 · Page 1 of 1
Send Error?
Hello. This is my code for Player Glow and it has the latest LTC, but for some reason its not working. Is the PTC detected?

Code:
#include <windows.h>
#include <iostream>
#include <d3d9.h>
#pragma comment (lib, "d3d9.lib")

using namespace std;

LPDIRECT3D9 d3d;
LPDIRECT3DDEVICE9 d3ddev;

void __cdecl PTC(char* command ) {
   DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
   if( dwCShell != NULL )
   {
      DWORD *LTC = ( DWORD* )( (dwCShell + 0x2E39C8) );
      void* Console = ( void* )*( DWORD* )( *LTC + 0x1F8 );
      _asm
      {
         push command;
         call Console;
         add esp, 4;
      }
   }
}



DWORD WINAPI Happyface(LPVOID) {
	while(GetModuleHandleA("CShell.dll") == NULL ) {
	Sleep(100); //100ms
}
int glow = 0;

for(;;) {
	__asm pushad;
			if(GetAsyncKeyState(VK_NUMPAD1)&1) {
				glow = 0;
			}
			if(GetAsyncKeyState(VK_NUMPAD2)&1) {
				glow = 1;
			}
			if  (glow = 0) {
				PTC("ScreenGlowEnable 0");
			}
			else {
				PTC("ScreenGlowEnable 1");
			}
			Sleep(100);
			__asm popad;
	}
}

BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
	DisableThreadLibraryCalls(hDll);
	if ( dwReason == DLL_PROCESS_ATTACH )
	{
		MessageBox(NULL, TEXT("By: aanthonyz ||| Successfully Injected"), TEXT ("Crossfire Hack: SUCCESS"), NULL);
		MessageBox(NULL, TEXT(" F3:Glow"), TEXT ("Crossfire Hotkeys"), NULL);
		//system("start http://crossfire.z8games.com/");
		CreateThread(NULL, NULL,Happyface, NULL, NULL, NULL);
	}
	else if(dwReason == DLL_PROCESS_DETACH)
	{
		MessageBox(NULL, TEXT("By: aanthonyz ||| Injection Failed"), TEXT ("Crossfire Hack: FAIL"), NULL);
	}
	return TRUE;
}
I am currently unsure to why that is happening i will check in on it later! In the mean time keep experimenting with it!
Posts 1–2 of 2 · Page 1 of 1

Post a Reply

Similar Threads

Talk with us