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;
}