Page 6 of 6 FirstFirst ... 456
Results 76 to 83 of 83
  1. #76
    swatfx's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Posts
    659
    Reputation
    20
    Thanks
    108
    My Mood
    Mellow
    Quote Originally Posted by Dieorwin View Post
    Guys, like I have said before... to keep from noob coders from c+ping I didn't put full thing..
    Well that's kinda confusing I mean if the thread title says new PTC method you should at least post the full code.

    Quote Originally Posted by ac1d_buRn View Post


    you seriously need to learn at least the syntax of C++ before you attemt ANYTHING.
    Your basically coping and writing random shit anywhere.
    Learn the language before you code, You dont run before you walk and you dont walk before you crawl.
    i know right? i already tried to tell him/
    i don't get why people don't want to actually learn C++ I actually find the learning process a lot of fun. You get to make simple programs and you actually understand everything your doing.
    It's more fun then attempting to make a hack and not knowing what the fuck your doing

  2. #77
    kainoa's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Posts
    74
    Reputation
    10
    Thanks
    13
    My Mood
    Devilish
    Done?
    Code:
    #include <windows.h>
    bool IsGameReadyForHook()
    {
    if( GetModuleHandleA( "d3d9.dll"     ) != NULL 
    && GetModuleHandleA( "CShell.dll"   ) != NULL )
    return true;
    return false;
    }
    typedef bool (*IsConnected_t)(void);
    bool IsIngame()
        {
        DWORD* LTBase = (DWORD*)0x377F4930;
        IsConnected_t pConnected = *(IsConnected_t*)(*LTBase + 0x8C);
    
        return pConnected();
    }
    void RunConsoleCommand(char *command)
    {
        typedef int (__cdecl* RunConsoleCommand_t)(char *cmd);
        RunConsoleCommand_t RCC = (RunConsoleCommand_t) 0x4A4750;
        RCC(command);
        delete command;
    } 
    void main()
    {
    	while(!IsGameReadyForHook()){
    		Sleep(200);
        }
    	bool FPS = false;
    	while(true)
    	{
    	if(GetAsyncKeyState(VK_NUMPAD1)<0)
    		if(FPS){
    		RunConsoleCommand("ShowFPS 1");
    		FPS = false;
    		}else{
    		RunConsoleCommand("ShowFPS 0");
    		FPS = true;
    		}
    		while(!IsIngame());
    	}
    }
    BOOL APIENTRY DllMain( HMODULE hModule,
                           DWORD  ul_reason_for_call,
                           LPVOID lpReserved)
    {
        switch (ul_reason_for_call)
        {
        case DLL_PROCESS_ATTACH:
            CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)&main, NULL, 0,NULL);
            break;
        case DLL_THREAD_ATTACH:
        case DLL_THREAD_DETACH:
        case DLL_PROCESS_DETACH:
            break;
    	}
        return TRUE;
    }
    Turns hax off automatically after game closes and check's for in game status as well as game ready.

    let me know what to fix
    Last edited by kainoa; 11-03-2010 at 02:55 PM.

  3. #78
    kotentopf's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    602
    Reputation
    26
    Thanks
    251
    Quote Originally Posted by swatfx View Post
    sorry man i was raging after reading all the previous comments.
    I'll help you if I can but it would really make it easier if you read a couple of C++ TUTs.

    this is your function
    Code:
    void RunConsoleCommand(char *command)// function RunConsoleCommand
    {
        typedef int (__cdecl* RunConsoleCommand_t)(char *cmd);
        RunConsoleCommand_t RCC = (RunConsoleCommand_t) 0x4A4750;//Engine Address, NOT CSHELL!!
        RCC(command);
        delete command;
    }
    you can't just call your function in empty space you should have it in a loop or something

    Code:
    void main()// this code won't actually work but u get the idea
    {
        while (1) //your loop
    
               RunConsoleCommand("ShowFps 1" ); //call to function RunConsoleCommand
    
    }
    this is 1:1 copied by a post from me on uc...
    just removed "cMisc::"

    [php]class cMisc{
    public:
    int WritePrivateProfileInt(LPCTSTR lpAppName, LPCTSTR lpKeyName, int nInteger, LPCTSTR lpFileName);//Write values, not strings
    char *GetFrameRate();//Current FPS, NEED Globals
    char *Fontname;//The Fontname
    char *Path;//The SafePath
    void GetMouse(POINT &Mouse);//Convert to the Local MousePosition
    void OPK();//The void for the OPKThread
    void HEXMemory(PVOID address, void* val, int bytes);//Edit the BYTES of an address
    void SearchAddies();//Search for addies, set Hack.Readys.FinSearch true after scan
    void HackIt(int sleep);//Normal hack void, best value is 250
    void PermaHack();//For Hacks like Hover
    void RunConsoleCommand(char *command);//Enter a command and send it to the InGameConsole
    void ConvertToKey(int &Key);//Convert an integer to the value of the pressed Key
    void SetUp();//Set all by startup
    void Safe();//Safe all the hacks
    void Load();//Load all the hacks
    };[/php]
    [php]void cMisc::RunConsoleCommand(char *command)
    {
    typedef int (__cdecl* RunConsoleCommand_t)(char *cmd);
    RunConsoleCommand_t RCC = (RunConsoleCommand_t)Hack.Addresses****Client;
    RCC(command);
    delete command;
    }[/php]

    i make not much public, but when i make everything public, noone credit, C+P and say that they made it.
    and if everyone want to say that i only want to get this credits and he/she made it:
    "I MAKE A SCREENSHOT OF ORIGINAL POSTS AND REMOVE ADVERB FOR OTHER FORUMS!!"

    i saw that cause im the only one who make a delete into my voids xD
    The Internet SHOULD Be Illegal

    When you say
    "Java is a great programming language because it works on all platforms"
    it is just like
    "anal sex is great because it works on all genders"

    Are YOU a Troll?

  4. #79
    Dieorwin's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    In My House
    Posts
    167
    Reputation
    21
    Thanks
    22
    I gave credits to you kotentopf.

  5. #80
    kotentopf's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    602
    Reputation
    26
    Thanks
    251
    Quote Originally Posted by Dieorwin View Post
    I gave credits to you kotentopf.
    i know, u got my thanksbutton
    The Internet SHOULD Be Illegal

    When you say
    "Java is a great programming language because it works on all platforms"
    it is just like
    "anal sex is great because it works on all genders"

    Are YOU a Troll?

  6. #81
    Alessandro10's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    MPGH.NET
    Posts
    6,140
    Reputation
    215
    Thanks
    4,607
    My Mood
    Busy
    Works in CA NA
    Dont Works in CA BR


    Code:
    #include "stdafx.h"
    #include <windows.h>
    #define Engine 0x000 //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 RCC = (RunConsoleCommand_t)Engine //EngineLTC;  
        RCC(szCommand); 
    }
    
    void main()
    {
    	while(!IsGameReadyForHook()){
    		Sleep(200);
        }
    	bool FPS = false;
    	while(true)
    	{
    	if(GetAsyncKeyState(VK_NUMPAD1)<0)
    		if(FPS){
    		PushToConsole("ShowFPS 0");
    		FPS = false;
    		}else{
    		PushToConsole("ShowFPS 1");
    		FPS = true;
    		}
    		
    	}
    }
    BOOL APIENTRY DllMain( HMODULE hModule,
                           DWORD  ul_reason_for_call,
                           LPVOID lpReserved)
    {
        switch (ul_reason_for_call)
        {
        case DLL_PROCESS_ATTACH:
            CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)&main, NULL, 0,NULL);
            break;
        case DLL_THREAD_ATTACH:
        case DLL_THREAD_DETACH:
        case DLL_PROCESS_DETACH:
            break;//*
    	}
        return TRUE;
    }
    Last edited by Alessandro10; 11-03-2010 at 04:17 PM.

  7. #82
    johneskiller's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Posts
    10
    Reputation
    10
    Thanks
    0
    My Mood
    Twisted
    based on topic I created the following code:

    Code:
    #include <windows.h>
    #include <shellapi.h>
    #include <stdio.h>
    #include <fstream>
    #include <Winuser.h>
    #define ltc 0x--------//LTC HERE
    
    bool IsGameReadyForHook()
    {
        if( GetModuleHandleA( "d3d9.dll"     ) != NULL
         && GetModuleHandleA( "ClientFX.fxd" ) != NULL
         && GetModuleHandleA( "CShell.dll"   ) != NULL )
    			return true;
      return false;
    }
    
    
    void RunConsoleCommand(char *command)
    { 
        typedef int (__cdecl* RunConsoleCommand_t)(char* cmd); 
        RunConsoleCommand_t RCC = (RunConsoleCommand_t)ltc;
       RCC(command);
        delete command;
    }
    
    void main()
    {
    	while(!IsGameReadyForHook()){
    		Sleep(200);
        }
    	bool FOG = false;
    	bool FLY = false;
    	while(true)
    	{
    	if(GetAsyncKeyState(VK_NUMPAD1)<0)
    		if(FOG){
    		RunConsoleCommand("FogEnable 1");
    		FOG = false;
    		}else{
    		RunConsoleCommand("FogEnable 0");
    		FOG = true;
    		}
    
    	}
    		if(GetAsyncKeyState(VK_NUMPAD2)<0)
    		if(FLY){
    		RunConsoleCommand("PlayerGravity 800");
    		FLY = false;
    		}else{
    		RunConsoleCommand("PlayerGravity -800");
    		FLY = true;
    			}
    		}
    
    BOOL APIENTRY DllMain( HMODULE hModule,
                           DWORD  ul_reason_for_call,
                           LPVOID lpReserved)
    {
        switch (ul_reason_for_call)
        {
        case DLL_PROCESS_ATTACH:
            CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)&main, NULL, 0,NULL);
            break;
        case DLL_THREAD_ATTACH:
        case DLL_THREAD_DETACH:
        case DLL_PROCESS_DETACH:
            break;
    	}
        return TRUE;
    }
    PS: I haven't CA NA, so I have no way of knowing whether it is functional or not, we would appreciate if someone could do this test.

  8. #83
    Dieorwin's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    In My House
    Posts
    167
    Reputation
    21
    Thanks
    22
    Quote Originally Posted by johneskiller View Post
    based on topic I created the following code:

    Code:
    #include <windows.h>
    #include <shellapi.h>
    #include <stdio.h>
    #include <fstream>
    #include <Winuser.h>
    #define ltc 0x--------//LTC HERE
    
    bool IsGameReadyForHook()
    {
        if( GetModuleHandleA( "d3d9.dll"     ) != NULL
         && GetModuleHandleA( "ClientFX.fxd" ) != NULL
         && GetModuleHandleA( "CShell.dll"   ) != NULL )
    			return true;
      return false;
    }
    
    
    void RunConsoleCommand(char *command)
    { 
        typedef int (__cdecl* RunConsoleCommand_t)(char* cmd); 
        RunConsoleCommand_t RCC = (RunConsoleCommand_t)ltc;
       RCC(command);
        delete command;
    }
    
    void main()
    {
    	while(!IsGameReadyForHook()){
    		Sleep(200);
        }
    	bool FOG = false;
    	bool FLY = false;
    	while(true)
    	{
    	if(GetAsyncKeyState(VK_NUMPAD1)<0)
    		if(FOG){
    		RunConsoleCommand("FogEnable 1");
    		FOG = false;
    		}else{
    		RunConsoleCommand("FogEnable 0");
    		FOG = true;
    		}
    
    	}
    		if(GetAsyncKeyState(VK_NUMPAD2)<0)
    		if(FLY){
    		RunConsoleCommand("PlayerGravity 800");
    		FLY = false;
    		}else{
    		RunConsoleCommand("PlayerGravity -800");
    		FLY = true;
    			}
    		}
    
    BOOL APIENTRY DllMain( HMODULE hModule,
                           DWORD  ul_reason_for_call,
                           LPVOID lpReserved)
    {
        switch (ul_reason_for_call)
        {
        case DLL_PROCESS_ATTACH:
            CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)&main, NULL, 0,NULL);
            break;
        case DLL_THREAD_ATTACH:
        case DLL_THREAD_DETACH:
        case DLL_PROCESS_DETACH:
            break;
    	}
        return TRUE;
    }
    PS: I haven't CA NA, so I have no way of knowing whether it is functional or not, we would appreciate if someone could do this test.
    Nice C and P from Alessandro10.. you just added stuff, noob.

Page 6 of 6 FirstFirst ... 456

Similar Threads

  1. [Request] PTC Method the new...
    By eliac in forum Combat Arms EU Hack Coding/Source Code
    Replies: 0
    Last Post: 02-26-2011, 02:24 PM
  2. New PTC method Please
    By pikamew4 in forum Combat Arms Coding Help & Discussion
    Replies: 0
    Last Post: 10-20-2010, 07:10 PM
  3. [HELP]Need a new PTC Method
    By QQiswhyihack in forum Combat Arms Coding Help & Discussion
    Replies: 14
    Last Post: 10-13-2010, 12:07 PM
  4. new ptc method?
    By speedforyou in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 27
    Last Post: 10-03-2010, 12:56 PM
  5. New Payment Method?
    By Vista in forum Suggestions, Requests & General Help
    Replies: 0
    Last Post: 08-05-2008, 10:41 AM