Results 1 to 15 of 26

Threaded View

  1. #1
    silentkoga's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Thats Classified by Order of the Secret Service
    Posts
    46
    Reputation
    10
    Thanks
    4
    My Mood
    Bored

    Help, Cannot get hax to work ingame

    This is the code i used
    Credit: Nubz

    Code:
    // Koga CA.cpp : Defines the exported functions for the DLL application.
    //
    //Credit: Nubz
    //Deadline
    //YOU MUST UPDATE THIS HOTKEY FOR IT TO WORK :)
    //////////////////////////////////////////////////
    
    #include "stdafx.h"
    #include <windows.h>
    #define Engine 0x4A4830 //Replace 0x000 to Engine LTC
    
    bool IsGameReadyForHook()
    {
    if( GetModuleHandleA( "d3d9.dll" ) != NULL 
    && GetModuleHandleA( "ClientFX.fxd" ) != NULL 
    && GetModuleHandleA( "CShell.dll" ) != NULL )
    return true;
    return false;
    }
    void __cdecl PushToConsole(char *szCommand) 
    { 
       typedef int (__cdecl* RunConsoleCommand_t)(char* cmd);
    RunConsoleCommand_t pRunConsoleCommand = (RunConsoleCommand_t); //get updates on LTC
    }
    
    
    void main()
    {
    	
    
    	while(!IsGameReadyForHook()){
    		Sleep(200);
        }// bool myhack = false; (add your hacks )
    	bool FPS = false;
    	bool nxchams = false;
    	bool superbullet = false;
    	bool speed = false;
    	bool emo = false;
    	bool fire = false;
    	bool fly = false;
    
    	while(true)
    	{// set hot-key for hack......
    	if(GetAsyncKeyState(VK_NUMPAD1)<0)// FPS
    		if(FPS){
    		pRunConsoleCommand("ShowFPS 1");
    		FPS = true;
    		}else{
    		pRunConsoleCommand("ShowFPS 0");
    		FPS = false;
    		}
    	}
    
    		if(GetAsyncKeyState(VK_NUMPAD2)<0)// nxchams
    		if(nxchams){
    		pRunConsoleCommand("SkelModelStencil 0");
    		nxchams = false;
    		}else{
    		pRunConsoleCommand("SkelModelStencil 1");
    		nxchams = true;
    		}
    
    		}
    		if(GetAsyncKeyState(VK_NUMPAD3)<0)// Speed
    		if(speed){
    pRunConsoleCommand("WalkVel 1000.000000");
    pRunConsoleCommand("FRunVel 1000.000000");
    pRunConsoleCommand("BRunVel 1000.000000");
    pRunConsoleCommand("SRunVel 1000.000000");
    pRunConsoleCommand("DuckVel 1000.000000");
    		speed = false;
    		}else{
    pRunConsoleCommand("WalkVel 70.000000");
    pRunConsoleCommand("FRunVel 285.000000");
    pRunConsoleCommand("BRunVel 285.000000");
    pRunConsoleCommand("SRunVel 285.000000");
    pRunConsoleCommand("DuckVel 50.000000");
    		speed = true;
    		}
    		
    }
    
    		if(GetAsyncKeyState(VK_NUMPAD4)<0// PlayerToSpy
    		if(PlayerToSpy){
    		pRunConsoleCommand("PlayerToSpy 0");
    		playertospy = False;
    		}else{
    			pRunConsoleCommand("PlayerToSpy 1");
    			PlayerToSpy = True;
    		}
    
    }
    DWORD WINAPI dwHackThread(LPVOID) {
    while( !IsGameReadyForHook() )
    Sleep(300);
    main();
    return 0;
    }
    BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
    {
    DisableThreadLibraryCalls(hDll);
    if ( dwReason == DLL_PROCESS_ATTACH )
    			    MessageBoxA( NULL, "Mr.Skafigther[Bro]Hoyt Key V.1|\n" "Mr.Skafigther[Bro]", "Mr.Skafigther[Bro]|||||", MB_YESNO| MB_ICONWARNING);
    {               //You can edit the message above, please dont forget to give credit
    CreateThread(NULL, NULL, dwHackThread, NULL, NULL, NULL);
    }
    return TRUE;
    }
    Last edited by silentkoga; 12-17-2010 at 07:43 AM.
    To do List
    Achieved[]

    Still to do[]
    25 posts[]
    50 posts[]
    150 posts[]
    300 posts[]
    500 posts[]
    1000 posts[]
    Kill a GM in a GM event[]
    Make my own injector[]
    Make a hotkey hack[]
    Make a menu hack[]
    Get an unbelievable legit[]
    Get an unbelievable+ legit[]
    Get banned for hacking[]
    Get banned for playing legit[]
    Get kicked for hacking[]
    Get kicked for playing legit[]
    Get you to read this list[]
    Quote Originally Posted by markoj View Post
    I bought a book on sex but I still don't get any