PTC Function Doesn't Work

Posts 1–10 of 10 · Page 1 of 1
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;
}
DrawWorld 0
DrawWorld 1
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 !
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
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
i have tried a lot but it didn't work???????
Quote Originally Posted by Death-Dev View Post
i have tried a lot but it didn't work???????
It's DrawWorld 0

DrawWorld 1
if (xDD)
{
PushToConsole("DrawWorld 0");
}
else {
PushToConsole("DrawWorld 1");
}
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;
}
@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
Posts 1–10 of 10 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?