Results 1 to 3 of 3
  1. #1
    kjbmarr's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Posts
    91
    Reputation
    10
    Thanks
    206
    My Mood
    Tired

    Question PTC function in x64

    anyone know how to code ptc in x64? because inline assembly is not supported in x64..

  2. #2
    OwNAppLe's Avatar
    Join Date
    Jul 2013
    Gender
    male
    Location
    United states of niggers
    Posts
    162
    Reputation
    10
    Thanks
    20
    Quote Originally Posted by kjbmarr View Post
    anyone know how to code ptc in x64? because inline assembly is not supported in x64..
    Instead of using inline assembly, use an external assembler like MASMto get that done.
    Also there's another ways to do PushToConsole without inline assembly.

    Here's the a way i have been using time ago.
     

    Code:
    BOOL PushToConsole_Function( DWORD ClientShell, DWORD LTClient, char * Command)
    {
          (*(VOID (WINAPIV **) (CHAR*) )
          (*( (DWORD *) ClientShell+LTClient) + 0xLTClientOffset))  (Command);
    }
    
    
    //ClientShell = CShell.dll Module.
    //LTClient = LTClient pointer which can be found on a string called: "FogEnable 0"
    //LTClientOffset = ^^
    
    USAGE: PushToConsole_Function(ClientShell,LTClient,"PushToConsole 0");
    Last edited by OwNAppLe; 08-01-2013 at 08:49 PM.

  3. The Following User Says Thank You to OwNAppLe For This Useful Post:

    kjbmarr (08-02-2013)

  4. #3
    kjbmarr's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Posts
    91
    Reputation
    10
    Thanks
    206
    My Mood
    Tired
    works like a charm..
    Last edited by kjbmarr; 08-02-2013 at 01:22 AM.

Similar Threads

  1. PTC Function Doesn't Work
    By Death-Dev in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 9
    Last Post: 02-25-2012, 02:49 PM
  2. [Help] Need help at a PTC Function
    By Headpuster in forum Combat Arms EU Hack Coding/Source Code
    Replies: 8
    Last Post: 01-04-2012, 10:01 AM
  3. [Release] Copy Function Beta [For PTC]
    By topblast in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 30
    Last Post: 06-14-2011, 07:41 PM
  4. DO NOT RELEASE ANY WORKING PTC FUNCTIONS
    By topblast in forum Combat Arms Coding Help & Discussion
    Replies: 71
    Last Post: 10-26-2010, 04:12 PM
  5. [Help] PTC commands fail to function!
    By NOOBJr in forum Combat Arms Coding Help & Discussion
    Replies: 13
    Last Post: 09-26-2010, 02:52 PM