Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    Gοku's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    MPGH.net
    Posts
    1,527
    Reputation
    206
    Thanks
    1,045
    My Mood
    Cheerful

    Old PTC SOURCE CODE !!WARNING: OUT DATED!!

    Here You go Guys:
    Code:
    #include <windows.h>
    #include <iostream>
    
    using namespace std;
    
    void __cdecl PushToConsole(char* szVal )
    {
    DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
    if( dwCShell != NULL )
    {
    DWORD *LTClient = ( DWORD* )( (dwCShell + 0x299D40) );
    void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x1F8 );
    _asm
    {
    push szVal;
    call CONoff;
    add esp, 4;
    }
    }
    }
    
    BOOL WINAPI Main (LPVOID)
    {
    bool boxes = true;
    bool nosky = false;
    bool worldframe = false;
    bool playerframe = false;
    bool nogun = false;
    bool Skeleton = false;
    bool FogEnable = false;
    bool CursorCenter = false;
    
    while(1)
    {
    __asm pushad;
    if(GetAsyncKeyState(VK_NUMPAD1)&1)
    {
    boxes = !boxes;
    }
    if(GetAsyncKeyState(VK_NUMPAD2)&1)
    {
    nosky = !nosky;
    }
    if(GetAsyncKeyState(VK_NUMPAD3)&1)
    {
    worldframe = !worldframe;
    }
    if(GetAsyncKeyState(VK_NUMPAD4)&1)
    {
    playerframe = !playerframe;
    }
    if(GetAsyncKeyState(VK_NUMPAD5)&1)
    {
    nogun = !nogun;
    }
    if(GetAsyncKeyState(VK_NUMPAD6)&1)
    {
    Skeleton = !Skeleton;
    }
    if(GetAsyncKeyState(VK_NUMPAD7)&1)
    {
    FogEnable = !FogEnable;
    }
    if(GetAsyncKeyState(VK_NUMPAD8)&1)
    {
    CursorCenter = !CursorCenter;
    }
    
    if (CursorCenter)
    PushToConsole("CursorCenter 1");
    else 
    PushToConsole("CursorCenter 0");
    
    if (FogEnable)
    PushToConsole("FogEnable 1");
    else
    PushToConsole("FogEnable 0");
    
    if (Skeleton) {
    PushToConsole("ModelDebug_DrawSkeleton 1"); 
    }
    else {
    PushToConsole("ModelDebug_DrawSkeleton 0"); 
    }
    if (boxes)
    PushToConsole("ModelDebug_DrawBoxes 1");
    else
    PushToConsole("ModelDebug_DrawBoxes 0");
    
    if (nosky)
    PushToConsole("DrawSky 0");
    else
    PushToConsole("DrawSky 1");
    
    if (worldframe)
    PushToConsole("WireFrame 1");
    else
    PushToConsole("WireFrame 0");
    
    if (playerframe)
    PushToConsole("WireFrameModels 1");
    else
    PushToConsole("WireFrameModels 0");
    
    if (nogun)
    PushToConsole("DrawGuns 0");
    else
    PushToConsole("DrawGuns 1");
    __asm popad;
    
    Sleep(100);
    }
    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, "", "", 0);
    CreateThread(NULL, NULL, dwMainThread, NULL, NULL, NULL);
    }
    return TRUE;
    }
    Last edited by Gab; 05-21-2011 at 08:14 AM.

     







    500 Posts ✓
    750 Posts ✓
    1,337 Posts ✓
    2,000 Posts ×
    3,000 Posts ×

    Ex VIP
    Ex Resource Team Member
    Ex Wiki Editor

  2. #2
    royku1's Avatar
    Join Date
    May 2011
    Gender
    male
    Posts
    40
    Reputation
    10
    Thanks
    2
    My Mood
    Aggressive
    Why The Fuck do you post this its like 1 year old?

  3. #3
    A$IAN's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Germany
    Posts
    5,654
    Reputation
    274
    Thanks
    2,011
    My Mood
    Amused
    Why did u post this, lol
    PTC isn´t useful any more
    ~Donater since 19th October 2011~
    ~Ex-Crossfire Minion || Resigned on 4th February 2012 ~
    Da fuck

  4. #4
    Codemunkie's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    England :D
    Posts
    219
    Reputation
    25
    Thanks
    757
    My Mood
    Bored
    What does PTC stand for?
    [IMG]https://i789.photobucke*****m/albums/yy172/Codemunkie/sig-logo.png[/IMG]

  5. #5
    {Banned}**HACKER**'s Avatar
    Join Date
    Mar 2011
    Gender
    male
    Posts
    843
    Reputation
    8
    Thanks
    719
    My Mood
    Cheerful
    This Was Good When It worked Dont Work No More Tho

  6. #6
    A$IAN's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Germany
    Posts
    5,654
    Reputation
    274
    Thanks
    2,011
    My Mood
    Amused
    Quote Originally Posted by Codemunkie View Post
    What does PTC stand for?
    PTC= PushToConsole
    An old method which is patched
    ~Donater since 19th October 2011~
    ~Ex-Crossfire Minion || Resigned on 4th February 2012 ~
    Da fuck

  7. #7
    XarutoUsoCrack's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Location
    CFAL Honra & Glória Server
    Posts
    1,087
    Reputation
    51
    Thanks
    2,547
    My Mood
    Relaxed
    To Works Download ByPass Code Patched for one year

  8. #8
    Fly3r's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    Not telling.
    Posts
    720
    Reputation
    18
    Thanks
    265
    My Mood
    Paranoid
    Which Bypass Source code u talking about?
    Joined MPGH: 07/08/09


    i used to tell arrow to the knee jokes then i died due to blood loss from takeing tomany arrows to the knee at once
    A network problem caused by you? What did you do? Trip over the cable?




  9. #9
    TheRealVB's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Location
    Missouri
    Posts
    191
    Reputation
    -51
    Thanks
    23
    My Mood
    Busy
    well who cares if its old if ya know how to code ya can easily update sht very easily also if ya kno how to dump dlls etc
    Raging On CA Under VB-ReBoRn

  10. #10
    A$IAN's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Germany
    Posts
    5,654
    Reputation
    274
    Thanks
    2,011
    My Mood
    Amused
    Quote Originally Posted by TheRealVB View Post
    well who cares if its old if ya know how to code ya can easily update sht very easily also if ya kno how to dump dlls etc
    But you can´t update the PTC for Boxes and so one...
    ~Donater since 19th October 2011~
    ~Ex-Crossfire Minion || Resigned on 4th February 2012 ~
    Da fuck

  11. #11
    TheRealVB's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Location
    Missouri
    Posts
    191
    Reputation
    -51
    Thanks
    23
    My Mood
    Busy
    Quote Originally Posted by xXAznrulzXx View Post

    But you can´t update the PTC for Boxes and so one...
    @xXAznrulzXx

    well thats where d3d coding comes in handy? (: also make it use the addies instead of PTC (:
    Last edited by TheRealVB; 05-21-2011 at 02:25 AM.
    Raging On CA Under VB-ReBoRn

  12. #12
    A$IAN's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Germany
    Posts
    5,654
    Reputation
    274
    Thanks
    2,011
    My Mood
    Amused
    Quote Originally Posted by TheRealVB View Post
    @xXAznrulzXx

    well thats where d3d coding comes in handy? (: also make it use the addies instead of PTC (:
    yeah, But u never can use boxes in PTC. In D3d u can of cource
    ~Donater since 19th October 2011~
    ~Ex-Crossfire Minion || Resigned on 4th February 2012 ~
    Da fuck

  13. #13
    TheRealVB's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Location
    Missouri
    Posts
    191
    Reputation
    -51
    Thanks
    23
    My Mood
    Busy
    Quote Originally Posted by xXAznrulzXx View Post

    yeah, But u never can use boxes in PTC. In D3d u can of cource
    @xXAznrulzXx yea but see im sure u can easily replace the PTC codes wit the addies n such n easily implement the addies 1 way (: correct me if im wrong? :P
    Raging On CA Under VB-ReBoRn

  14. #14
    A$IAN's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Germany
    Posts
    5,654
    Reputation
    274
    Thanks
    2,011
    My Mood
    Amused
    Quote Originally Posted by TheRealVB View Post
    @xXAznrulzXx yea but see im sure u can easily replace the PTC codes wit the addies n such n easily implement the addies 1 way (: correct me if im wrong? :P
    Ur right but soon it will get patched too cuz there are so many leechers on MPGH now
    ~Donater since 19th October 2011~
    ~Ex-Crossfire Minion || Resigned on 4th February 2012 ~
    Da fuck

  15. #15
    TheRealVB's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Location
    Missouri
    Posts
    191
    Reputation
    -51
    Thanks
    23
    My Mood
    Busy
    @xXAznrulzXx very true rofl
    Raging On CA Under VB-ReBoRn

Page 1 of 2 12 LastLast