[RELEASE/INFO] first hack tut
this is a tut how to make you first hack
- download any virsion of visual studios
us this code:
#include <windows.h>
bool IsGameReadyForHook()
{
if( GetModuleHandleA( "d3d9.dll" ) != NULL
&& GetModuleHandleA( "ClientFX.fxd" ) != NULL
&& GetModuleHandleA( "CShell.dll" ) != NULL )
return true;
return false;
}
void __cdecl PushToConsole( const char* szCommand )
{
DWORD *LTClient = ( DWORD* )(0x3778BFB0);
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
__asm
{
push szCommand;
call CONoff;
add esp, 4;
}
}
void main()
{
while(true)
{
PushToConsole("SkelModelStencil 1"); //Nx Chams
PushToConsole("ModelDebug_DrawBoxes 1"); //Boxes
PushToConsole("ActivationDistance 100000"); //Weapon Pickup
PushToConsole("FogEnable 0"); //No fog
PushToConsole( "FullBright 1" );//Fullbright
PushToConsole( "WireframeModels 1" );//Wireframe
PushToConsole("drawguns 1");
PushToConsole( "CanShootThrough 1 (0)" );
PushToConsole( "CanSeeThrough 1 (0)" );
PushToConsole( "CrossHairB x (0)CrossHairG x (255)CrossHairR x (0)" );
PushToConsole( "SpectatorMode 1 (0)" );
PushToConsole( "RespawnToken 0 (50000000000000000000000000000)" );
}
}
DWORD WINAPI dwHackThread(LPVOID) {
while( !IsGameReadyForHook() )
Sleep(100);
main();
return 0;
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
CreateThread(NULL, NULL, dwHackThread, NULL, NULL, NULL);
}
return TRUE;
}
put in your own PTC commands from
mpgh.net
credits:
codenever for giving me the idea
me for coding it
zoom for some commands
ilikewaterha for some commands