Results 1 to 11 of 11
  1. #1
    ajtwlswkdtjs's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Posts
    12
    Reputation
    10
    Thanks
    15

    C++ source change -> Delphi source please

    #include <windows.h>
    #include <iostream>

    using namespace std;

    void __cdecl PushToConsole(char* command )
    {
    DWORD dwCShell = (DWORD)GetModuleHandleA("cshell.dll");
    if( dwCShell != NULL )
    {
    DWORD *LTClient = ( DWORD* )( (dwCShell + 0x46F940) );
    void* Total = ( void* )*( DWORD* )( *LTClient + 0x1F8 );
    _asm
    {
    push command;
    call Total;
    add esp, 4;
    }
    }
    }

    BOOL WINAPI Main (LPVOID)
    {
    bool boxes = false;
    bool nosky = false;

    while(1)
    {
    __asm pushad;
    if(GetAsyncKeyState(VK_NUMPAD1)&1)
    {
    boxes = !boxes;
    }
    if(GetAsyncKeyState(VK_NUMPAD2)&1)
    {
    nosky = !nosky;
    }
    if (boxes)
    PushToConsole("ModelDebug_DrawBoxes 1");
    else
    PushToConsole("ModelDebug_DrawBoxes 0");

    if (nosky)
    PushToConsole("DrawSky 1");
    else
    PushToConsole("DrawSky 0");
    __asm popad;

    Sleep(100);
    }
    }

    bool Ready(void)
    {
    if( GetModuleHandleA("cshell.dll")!= NULL)
    return true;
    return false;
    }

    DWORD WINAPI dwMainThread(LPVOID)
    {
    while (!Ready())
    Sleep(200);
    CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Main, NULL, NULL, NULL);
    return 0;
    }

    BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
    {
    DisableThreadLibraryCalls(hDll);
    if ( dwReason == DLL_PROCESS_ATTACH )
    {
    MessageBoxA(0, "By", "CrossFire", 0);
    CreateThread(NULL, NULL, dwMainThread, NULL, NULL, NULL);
    }
    return TRUE;
    }

  2. #2
    mulanboyaq27's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Crossfire
    Posts
    258
    Reputation
    10
    Thanks
    47
    My Mood
    Flirty
    this code is working in PH ??

  3. #3
    Lakshay's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    www.MPGH.net // General // Crossfire
    Posts
    4,545
    Reputation
    335
    Thanks
    1,102
    My Mood
    Angelic
    Updated?

  4. #4
    [Ł]aki_CROATIA's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Croatia
    Posts
    498
    Reputation
    10
    Thanks
    147
    My Mood
    Devilish
    this only put in c++ or wath ???
    I need acc with amw only give me who does not play or he does not need PM me..
    Done=-----Not Yet=


    Make more than 50 kills in gm and 0 deaths []
    get banned acc in crossfire[]

    RESPECT LIST
    -OverDrivejt--best coder & friend in MPGH
    Thanks if I helped

    https://img844.imageshack.us/img844/3...elofdeatht.jpg

  5. The Following User Says Thank You to [Ł]aki_CROATIA For This Useful Post:

    bacotoy (09-20-2010)

  6. #5
    enjoto's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Bulgaria
    Posts
    252
    Reputation
    10
    Thanks
    73
    I think he wants someone to rewrite the code from C++ to Delphi

  7. #6
    [H4L]Hacker4Life[H4L]'s Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    690
    Reputation
    10
    Thanks
    324
    My Mood
    Dead
    Quote Originally Posted by enjoto View Post
    I think he wants someone to rewrite the code from C++ to Delphi
    I agree
    MPGH

    Plain and simple.

  8. #7
    HackerVasya's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Russian Federation, Irkutsk
    Posts
    2
    Reputation
    10
    Thanks
    1
    Source Wh (cf Rus) - Cheater Forum
    Code:
    library CF_RUS;
    
    uses
      Windows;
      
    var
    TI1: LongWord;
    TI2: LongWord;
    
    {$R *.res}
    
    function PushToConsole(command:string):boolean;cdecl;
    var
    dwCShell, LTClient, Total: cardinal;
    null: variant;
    begin
      dwCShell := GetModuleHandleA('CShell.dll');
      if dwCShell <> null then begin
       LTClient := dwCShell + $0027DFF8;
       Total := LTClient + $000001F8;
       asm
        push command;
        call Total;
        add esp, $00000004;
       end;
       result := true;
      end else begin
       result := false;
      end;
    end;
    
    function Main(const LPVOID:variant):boolean;
    var
    boxes, nosky: boolean;
    begin
    boxes := false;
    nosky := false;
    
    while(true)do begin
      asm
       pushad;
      end;
    
      //down key
      if(GetAsyncKeyState(VK_NUMPAD1)<>0)then begin
       boxes := not boxes;
      end;
      if(GetAsyncKeyState(VK_NUMPAD2)<>0)then begin
       nosky := not nosky;
      end;
    
      //on or off cmd cheat
      if boxes then begin
       PushToConsole('ModelDebug_DrawBoxes 1');
      end else begin
       PushToConsole('ModelDebug_DrawBoxes 0');
      end;
      if nosky then begin
       PushToConsole('DrawSky 1');
      end else begin
       PushToConsole('DrawSky 0');
      end;
    
    
      asm
       popad;
      end;
      Sleep(100);
    end;
    end;
    
    function Ready():boolean;
    var
      null: variant;
    begin
    if GetModuleHandleA('cshell.dll')<> NULL then begin
      result := true;
    end else begin
      result := false;
    end;
    end;
    
    function dwMainThread(const LPVOID:variant):LongWord;
    begin
    while not Ready() do begin
      Sleep(200);
      CreateThread(nil, 0, @Main, nil, 0, TI2);
      result := 0;
    end;
    end;
    
    //DllMain
    begin
    DisableThreadLibraryCalls(HInstance);
    MessageBoxA(0, 'Coded by: HackerVasya'+#13#10+'For **************.com', 'CrossFire Cheats', 0);
    CreateThread(nil, 0, @dwMainThread, nil, 0, TI1);
    end.

  9. The Following User Says Thank You to HackerVasya For This Useful Post:

    ajtwlswkdtjs (09-20-2010)

  10. #8
    infidel_'s Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    blah
    Posts
    184
    Reputation
    10
    Thanks
    138
    My Mood
    Twisted
    Where'd you got your library from?
    Code:
    library CF_RUS;

  11. #9
    HackerVasya's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Russian Federation, Irkutsk
    Posts
    2
    Reputation
    10
    Thanks
    1
    I rewrote it himself

  12. #10
    ajtwlswkdtjs's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Posts
    12
    Reputation
    10
    Thanks
    15
    HackerVasya thankful !!

  13. #11
    Time's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    26,497
    Reputation
    3714
    Thanks
    4,530
    My Mood
    Mellow
    Nuff bumping,
    /Closed.

Similar Threads

  1. [Help] Need These sources please
    By abum in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 9
    Last Post: 08-11-2011, 08:43 PM
  2. [Request] White Players Source Please!
    By gustavo5066 in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 4
    Last Post: 09-30-2010, 01:23 PM
  3. [Request] White wall source Please!
    By gustavo5066 in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 9
    Last Post: 09-28-2010, 05:00 PM
  4. Help me with my source please.
    By joered in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 4
    Last Post: 09-08-2010, 06:38 AM
  5. Change to current sig Please
    By Disturbed 24/7 in forum Help & Requests
    Replies: 8
    Last Post: 06-15-2010, 04:09 PM