Results 1 to 10 of 10
  1. #1
    Death-Dev's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Posts
    50
    Reputation
    10
    Thanks
    0

    PTC Function Doesn't Work

    I Have Added No World To The Base What i am use but it doesn't work i don't know why so if any one see if there any wrong please say where is it
    Code:
    #include <windows.h>
    #include <fstream>
    #include <iostream>
    #include "LoginCheck.h"
    
    #define grenades ((i==6) || (i==100) || (i==135) || (i==200) || (i==209) || (i==210) || (i==240) || (i==262) || (i==263) || (i==272) || (i==288) || (i==313) || (i==338) || (i==382) || (i==416) || (i==424) || (i==425) || (i==519))
    #define Knives  ((i==5) || (i==120) || (i==132) || (i==176) || (i==177) || (i==178) || (i==182) || (i==189) || (i==195) || (i==196) || (i==197) || (i==198) || (i==199) || (i==223) || (i==224) || (i==225) || (i==226) || (i==227) || (i==228) || (i==239) || (i==224) || (i==261) || (i==269) || (i==270) || (i==271) || (i==305) || (i==306) || (i==307) || (i==372) || (i==404) || (i==405) || (i==406) || (i==407) || (i==408) || (i==409) || (i==437) || (i==455) || (i==456) || (i==457) || (i==517) || (i==518))
    #define Grenades ((i==6)||(i==7)||(i==8)||(i==64)||(i==100)||(i==12 6)||(i==135)||(i==209)||(i==210)||(i==240)||(i==26 3)||(i==272)||(i==338)||(i==382)||(i==383)||(i==38 4))
    void __cdecl PushToConsole(char* szVal ) {
        DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
        if( dwCShell != NULL )
        {
            DWORD *LTClient = ( DWORD* )( (dwCShell + 0x34D614) ); 
            void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x1FC );
            _asm
            {
                push szVal;
                call CONoff;
                add esp, 4;
            }
        }
    }
    void DeathDev()
    {
        DWORD _CShell = NULL;
    
        while(_CShell==NULL)
        {
            _CShell = (DWORD)GetModuleHandleA("CShell.dll");
        }
    
        //************VARIABLES********************
        int szf = sizeof(float);
        int szd = sizeof(DWORD);
        bool nochange =  true;
        bool noreload = true;
        bool seeghosts = true;
        bool weaponhack = true;
        bool noweaponweight = true;
        bool nonadedamage = true;
        bool nofalldamage = true;
        bool crouchspeed = true;
        bool fastdefuse = true;
        bool fastplant = true;
        bool norecoil = true;
        bool speedknife = true;
        bool noknockback = true;
    
        bool nogatlingspeedpenalty = true;
        bool nogatlingdelay = true;
        bool longknife = true;
        DWORD CShell = NULL;
        DWORD BasicPlayerInfo = NULL;
        DWORD WeaponClass = NULL;
        DWORD Weapon = NULL;
        DWORD PlayerClass = NULL;
    
        while(true)
        {
            CShell = (DWORD)GetModuleHandleA("CShell.dll");
            BasicPlayerInfo = *(DWORD*)(CShell + 0xA30718);
            WeaponClass = *(DWORD*)(CShell + 0xA974A0);
            PlayerClass = *(DWORD*)(CShell + 0xA97484);
            Sleep(100);
            if((BasicPlayerInfo != NULL) && (WeaponClass != NULL) && (PlayerClass != NULL))
            {
    
    //***************MEMORY HACKS***************//
    //
    //
    //
    //
    //******************************************//
    DWORD WINAPI hello(LPVOID) {
        while(GetModuleHandleA("CShell.dll") == NULL ) {
        Sleep(100); //100ms
    }
    
    for(;;) {
        __asm pushad;
    
    
                if (GetAsyncKeyState(VK_SHIFT))
                    {
                    PushToConsole("NoWorld 1");
                    }
                else {
                    PushToConsole("NoWorld 0");
                    }
                Sleep(100);
                __asm popad;
        }
    return true;
    }
    
    void Hackhook(){
        DWORD CShell = NULL;
        do{CShell = (DWORD)GetModuleHandleA("CShell.dll"); Sleep(100);} while (CShell == NULL);
        while(1)
        { DeathDev(); Sleep(100); }
    }
    
    DWORD WINAPI Runner (LPVOID)
    
    {    
        DeathDev(); 
        return 1; 
    
    }
    BOOL WINAPI DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
    {
        if (dwReason == DLL_PROCESS_ATTACH)
        {
        }
        if (GetModuleHandleA("CShell.dll") && GetModuleHandleA("ClientFx.Fxd") && !LogIn)
        {
            MessageBoxA(0, "Death-Dev Hack V1","||ACTIVATED||" ,0);
            DisableThreadLibraryCalls(hDll);
            LogIn = true; 
            CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Runner, NULL, NULL, NULL); 
        }
        return TRUE;
    }

  2. #2
    Skrillex's Avatar
    Join Date
    May 2011
    Gender
    male
    Posts
    701
    Reputation
    103
    Thanks
    4,749
    My Mood
    Fine
    DrawWorld 0
    DrawWorld 1

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

    Death-Dev (02-25-2012)

  4. #3
    CheatCreatorzz's Avatar
    Join Date
    Dec 2010
    Gender
    male
    Posts
    922
    Reputation
    18
    Thanks
    730
    My Mood
    Amused
    Try it without Hotkey, just auto on noworld, then see its working or not
    I can't see an mistake in the code.. or my eyes are not good.. (probably)

    Code:
    bool noworld = true;
    if (noworld)
                    {
                    PushToConsole("NoWorld 1");
                    }
    Try this

    && Public Base !
    Last edited by CheatCreatorzz; 02-25-2012 at 02:50 AM.





    (_¸.•*´'`°¤¸'¸¤°´'`*•.¸_)

    Video Creator
    GFX Creator
    C++ Coder
    D3D Coder

    (¯`*•.¸,¤°´'`°¤,¸.•*´¯)




  5. The Following User Says Thank You to CheatCreatorzz For This Useful Post:

    Death-Dev (02-25-2012)

  6. #4
    Death-Dev's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Posts
    50
    Reputation
    10
    Thanks
    0
    i will try what u both said and thanks for help

    ---------- Post added at 04:19 AM ---------- Previous post was at 03:53 AM ----------

    @CheatCreatorzz i think that i must but two commands one is 0 and another (else) is 1 or X and Y is this right ???
    i don't know much about Puch To Consol commands

  7. #5
    tryhacker's Avatar
    Join Date
    Jan 2012
    Gender
    male
    Location
    where you least expect
    Posts
    341
    Reputation
    23
    Thanks
    3,914
    My Mood
    Aggressive
    Quote Originally Posted by Death-Dev View Post
    i will try what u both said and thanks for help

    ---------- Post added at 04:19 AM ---------- Previous post was at 03:53 AM ----------

    @CheatCreatorzz i think that i must but two commands one is 0 and another (else) is 1 or X and Y is this right ???
    i don't know much about Puch To Consol commands
    it's DrawWorld 0

    DrawWorld 1

  8. #6
    Death-Dev's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Posts
    50
    Reputation
    10
    Thanks
    0
    i have tried a lot but it didn't work???????

  9. #7
    Coder[Vb10e]'s Avatar
    Join Date
    Jul 2011
    Gender
    male
    Location
    Crossfire Alaska
    Posts
    1,577
    Reputation
    -10
    Thanks
    349
    My Mood
    Fine
    if (xDD)
    {
    PushToConsole("DrawWorld 0");
    }
    else {
    PushToConsole("DrawWorld 1");
    }

  10. #8
    tryhacker's Avatar
    Join Date
    Jan 2012
    Gender
    male
    Location
    where you least expect
    Posts
    341
    Reputation
    23
    Thanks
    3,914
    My Mood
    Aggressive
    Quote Originally Posted by Death-Dev View Post
    i have tried a lot but it didn't work???????
    It's DrawWorld 0

    DrawWorld 1

  11. #9
    Assassin's Creed's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Posts
    1,210
    Reputation
    54
    Thanks
    1,408
    My Mood
    Worried
    I dont see any codes except PTC...but try this am sure it will work...
    Code:
    #include <windows.h>
    #include "LoginCheck.h"
    
    void __cdecl PushToConsole(char* szVal ) {
        DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
        if( dwCShell != NULL )
        {
            DWORD *LTClient = ( DWORD* )( (dwCShell + 0x34D614) ); 
            void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x1FC );
            _asm
            {
                push szVal;
                call CONoff;
                add esp, 4;
            }
        }
    }
    void DeathDev()
    {
         
        while(true)
        {
            CShell = (DWORD)GetModuleHandleA("CShell.dll");
            
    
        __asm pushad;
    
    
                    PushToConsole("DrawWorld 0");
                    
                    }
                Sleep(100);
                __asm popad;
        }
    return true;
    }
    
    void Hackhook(){
        DWORD CShell = NULL;
        do{CShell = (DWORD)GetModuleHandleA("CShell.dll"); Sleep(100);} while (CShell == NULL);
        while(1)
        { DeathDev(); Sleep(100); }
    }
    
    BOOL WINAPI DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
    {
        if (dwReason == DLL_PROCESS_ATTACH)
        {
        }
        if (GetModuleHandleA("CShell.dll") && GetModuleHandleA("ClientFx.Fxd") && !LogIn)
        {
            MessageBoxA(0, "Death-Dev Hack V1","||ACTIVATED||" ,0);
            DisableThreadLibraryCalls(hDll);
            LogIn = true; 
            CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)DeathDev, NULL, NULL, NULL); 
        }
        return TRUE;
    }
     

    Contributer Since 20/2/2012
    MPGH Member Since December 2011

     





     

    offical thread> Assassin V15<

    To all People who thinks am a leecher,hate me,are jelly from me....
    Refer to this thread...
    https://www.mpgh.net/forum/232-crossf...stop-hate.html

  12. #10
    DaRk's Avatar
    Join Date
    Dec 2010
    Gender
    male
    Location
    MPGH
    Posts
    1,910
    Reputation
    119
    Thanks
    3,986
    My Mood
    Asleep
    @Death-Dev

    Code:
    #include <windows.h>
    #include "LoginCheck.h"
    
    void __cdecl PushToConsole(char* szVal ) {
        DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
        if( dwCShell != NULL )
        {
            DWORD *LTClient = ( DWORD* )( (dwCShell + 0x34D614) ); 
            void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x1FC );
            _asm
            {
                push szVal;
                call CONoff;
                add esp, 4;
            }
        }
    }
    void DeathDev()
    {
        bool noworld = false;
        while(true)
        {
            CShell = (DWORD)GetModuleHandleA("CShell.dll");
            if(GetAsyncKeyState(VK_F2)){ noworld = !noworld; }
            if(noworld)
            { 
                PushToConsole("DrawWorld 0");
            }
            else
            { 
               PushToConsole("DrawWorld 1");
            }
          Sleep(100);
        }
    }
    void Hackhook(){
        DWORD CShell = NULL;
        do{CShell = (DWORD)GetModuleHandleA("CShell.dll"); Sleep(100);} while (CShell == NULL);
        while(1)
        { DeathDev(); Sleep(100); }
    }
    
    BOOL WINAPI DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
    {
        if (dwReason == DLL_PROCESS_ATTACH)
        {
        }
        if (GetModuleHandleA("CShell.dll") && GetModuleHandleA("ClientFx.Fxd") && !LogIn)
        {
            MessageBoxA(0, "Death-Dev Hack V1","||ACTIVATED||" ,0);
            DisableThreadLibraryCalls(hDll);
            LogIn = true; 
            CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)DeathDev, NULL, NULL, NULL); 
        }
        return TRUE;
    i fixed it for u with hotkeys
    should work now

  13. The Following User Says Thank You to DaRk For This Useful Post:

    Insane~* (03-20-2012)

Similar Threads

  1. [Help] My hack.Visual functions doesn't work.
    By MegaR in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 9
    Last Post: 10-02-2011, 03:02 AM
  2. 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
  3. MHS SPIRO doesn't work nomore
    By azngamerboi9 in forum Combat Arms Hacks & Cheats
    Replies: 9
    Last Post: 07-31-2008, 07:00 PM
  4. SWIM CODE and GUN CODE, DOESN'T WORK ??
    By h4x0r m3mb3r in forum WarRock - International Hacks
    Replies: 4
    Last Post: 07-26-2007, 01:57 AM
  5. Hacks doesn't work anymore?
    By jorisy00 in forum WarRock - International Hacks
    Replies: 9
    Last Post: 02-23-2007, 09:55 AM