Posts 16–30 of 40 · Page 2 of 3

Originally Posted by
NOOB
Console command hacks must called in Present.
Notice how his hack is a hotkey ? o.o

Originally Posted by
yaserifti1
Yep, look -
Code:
#include <windows.h>
#include <stdio.h>
bool chams = false;
bool cross = false;
bool IsGameReadyForHook()
{
if( GetModuleHandleA( "d3d9.dll" ) != NULL
&& GetModuleHandleA( "ClientFX.fxd" ) != NULL
&& GetModuleHandleA( "CShell.dll" ) != NULL )
return true;
return false;
}
void __cdecl CPush(const char *Command, char *Value)
{
char *PCommand = new char[256];
sprintf(PCommand, "%s %s", Command, Value);
DWORD LTC = 0x00485E10;
void *Control = (void*)LTC;
__asm
{
push PCommand;
call Control;
add esp, 4;
}
}
void main() {
while(true) {
if(GetAsyncKeyState(VK_NUMPAD1)&1){
chams =! chams;
}
if(chams)
{
CPush("SkelModelStencil", "1");
} else {
CPush("SkelModelStencil", "0");
}
if(GetAsyncKeyState(VK_NUMPAD2)&1){
cross =! cross;
}
if(cross) {
CPush("CrossHairR", "255");
} else {
CPush("CrossHairR", "0");
}
}
}
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;
}
You need to return the bool as true everytime you activate a hack.
Example :
if(cross) {
CPush("CrossHairR", "255");
bool cross = true;
}else{
CPush("CrossHairR","0"):
bool cross = false;
}

Originally Posted by
Fabolous
Notice how his hack is a hotkey ? o.o
You need to return the bool as true everytime you activate a hack.
Example :
if(cross) {
CPush("CrossHairR", "255");
bool cross = true;
}else{
CPush("CrossHairR","0"):
bool cross = false;
}
K trying, also I had it like that at first, but somebody told me that it's the same thing, just the way I have is more organized. Guess I was right


Originally Posted by
yaserifti1
K trying, also I had it like that at first, but somebody told me that it's the same thing, just the way I have is more organized. Guess I was right

It should work fine now , if not then something is wrong with your base.I use,
Code:
void PushToConsole(const char* cmd)
{
_asm
{
PUSH cmd
MOV EAX, 0x485E10
CALL EAX
ADD ESP, 0x4
}
}
With,
Code:
if(NxChams) {
{
PushToConsole("SkelModelStencil 1");
}
}

Originally Posted by
Fabolous
It should work fine now , if not then something is wrong with your base.
It still won't work.

Originally Posted by
-xGhost-
I use,
Code:
void PushToConsole(const char* cmd)
{
_asm
{
PUSH cmd
MOV EAX, 0x485E10
CALL EAX
ADD ESP, 0x4
}
}
With,
Code:
if(NxChams) {
{
PushToConsole("SkelModelStencil 1");
}
}
It just looks so un organized, it bothers me

Originally Posted by
NOOB
It still won't work.
Sadly, he's right. How do I fix this. Somebody please help!

Originally Posted by
yaserifti1
It just looks so un organized, it bothers me
Sadly, he's right. How do I fix this. Somebody please help!
Sorry im out of options. I tried to help 

Originally Posted by
Fabolous
Sorry im out of options. I tried to help 
Yeah I know, sorry for the waste of time


Originally Posted by
yaserifti1
Yeah I know, sorry for the waste of time

It's okay, my time isnt wasted helping people 
yo

Originally Posted by
Fabolous
It's okay, my time isnt wasted helping people 
can you plz tell me where this code gose
for ( int i = 0; i < 16; i++ )
{
PlayerInfo* pPlayer = GetPlayerByIndex( ulThis,i,0);
if(pPlayer != 0 && pPlayer->obj != 0 && pPlayer->IsDead ==0){
pPlayer->obj->origin.x

Originally Posted by
Fabolous
It's okay, my time isnt wasted helping people 
Okay,

.
Can somebody please help me?
Get a menu base. You can't use ptc without calling it from PresentScene

Originally Posted by
flameswor10
Get a menu base. You can't use ptc without calling it from PresentScene
Wait so its the end of hotkeys? How did ghost get his to work tho? im confused 

Originally Posted by
Fabolous
Wait so its the end of hotkeys? How did ghost get his to work tho? im confused 
His is a d3d base stripped down


Originally Posted by
flameswor10
His is a d3d base stripped down

Thats quite smart but stupid lol. O well .
@ OP you should do the same thing as Ghost did. Download a d3d base and strip it down to hotkey 
Posts 16–30 of 40 · Page 2 of 3