[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!