


char comm[300] = "Cam Postion-x "; // mind the space.... char *variable = "1"; // put any value you want, note that it's constant... strcat((char *)comm, variable); this->pushtoconsole((const char*) comm); // why the f*ck are you using a class to do this??, just make a normal fucntion out of it "-_- using classes here is such an overkill...
,//==========================================-[ defines ]-========================================
#include <windows.h>
#include <iostream>
#include <sstream>
#include <string>
#include <stdexcept>
//==========================================-[ void ]-=======================================
class BadConversion : public std::runtime_error {
public:
BadConversion(std::string const& s)
: std::runtime_error(s)
{ }
};
inline std::string stringify(double x)
{
std::ostringstream o;
if (!(o << x))
throw BadConversion("stringify(double)");
return o.str();
}
//==========================================-[ double (your value of increase / decrease) ]-=======================================
double value = 0;
//==========================================-[ main ]-=======================================
void main()
{
bool chams = false;
while(true)
{
if(GetAsyncKeyState(VK_NUMPAD1)<0){//Nx Chams hack
if(chams){
value = 0;
PushToConsole("SkelModelStencil 0");
chams = false;
} else {
value=1;
std::string test ("SkelModelStencil " + stringify(value));//stringify(value)
const char* pszConstString = test.c_str ();
PushToConsole(pszConstString);
chams = true;
}
}
Sleep(20);
}
}
(but it does work :3)//===================-[ Defines ]-=====================
#include <windows.h>
#include <iostream>
#include <sstream>
#include <string>
#include <stdexcept>
#define LTClient_Adress 0x37767BD0
bool IsGameReadyForHook()
{
if( GetModuleHandleA( "d3d9.dll" ) != NULL
&& GetModuleHandleA( "ClientFX.fxd" ) != NULL
&& GetModuleHandleA( "CShell.dll" ) != NULL )
return true;
return false;
}
//===================-[ Voids ]-=====================
class BadConversion : public std::runtime_error {
public:
BadConversion(std::string const& s)
: std::runtime_error(s)
{ }
};
inline std::string stringify(double x)
{
std::ostringstream o;
if (!(o << x))
throw BadConversion("stringify(double)");
return o.str();
}
const char* __cdecl PushToConsole( std::string command ,double value)
{
std::string test (command + " " + stringify(value));//stringify(value)
const char* pszConstString = test.c_str ();
DWORD *LTClient = ( DWORD* )( LTClient_Adress );
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
__asm
{
push pszConstString;
call CONoff;
add esp, 4;
}
}
//===================-[ Main ]-=====================
void main()
{
while(true)
{
PushToConsole("ShowFps",1);
}
}
//===================-[ END ]-=====================
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;
}
