[Help] PTC commands fail to function!
Ok well I'm using whits base and in game the ptc commands don't work Ive tried almost every possible thing to fix it. All my ptc commands are made properly. Coderz help!
Globals:
[PHP]int Fly = 0;[/PHP]
void cMenu::RenderMenu(void)
[PHP]AddItem(" Player ", Opt_Folder, &player, 2, MENUFOLDER);
if(player){
AddItem("Fly Hack" , Opt_on_off , &Fly , 2, MENUITEM);//Fly Hack
}[/PHP]
PushToConsole Method:
[PHP]void __cdecl cBase::PushToConsole( const char* szCommand )
{
DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
if( dwCShell != NULL )
{
DWORD CNADDIE = ///////I Have the update one////////////;
void* CONoff = ( void* )*( DWORD* )(CNADDIE);
__asm
{
push szCommand;
call CONoff;
add esp, 4;
}
}
}[/PHP]
void cBase::Update(void):
[PHP]void cBase::Update(void)
{
while(1)
{
if( Fly > 0 ){
if(GetAsyncKeyState(VK_SPACE)>0)
{
PushToConsole("PlayerGravity -800");
}else{
PushToConsole("PlayerGravity 800");
}
}[/PHP]
Then all the BLABLABLABLA Shit Is there anything in here that could cause this? The fly hack does not work!
Is the fly hack the only one that doesn't work, do you have auto on hacks that also don't work? If not try that and if they font work then your most likely not even calling your hackthread
Well Chams work. Seems that only certain ptc cammands don't work in my hack. For example Glitcher, flyhack,speed hack,(Majoraty). And chams,opk telekill, work? its so god daum weird!
Use this PTC method, it works for me.
[php]void __cdecl PushToConsole(char* szVal) //PushToConsole Method
{
void* vSetVar = (void*)0x46F670; //ALT LTClient
_asm
{
push szVal
call vSetVar
add esp, 4
}
}[/php]
markoj dont you think i would try that first before coming here! And ok ill do what Xlilzoosk8rX. Amatowarrior mine works fine, but now i have a backup. THanks.
Yeah ik coding is fun but a huge pain. Thanks so far guyz. im not on my cpu so i cant try it. but at 5:00 ill be back!
why are you checking to see if space is being pressed?
So when the space bar is pressed i can fly!
Combat arms already does that for you. Checks if spacebar is pressed and jumps to specified height.
o ok! thanks i try and fix that!