Working PTC Method! (25.10.10)
Full credits:
NeoIII
Code:
void __cdecl PTC( const char* szCommand )
{
if( !eng.IsReady || dwpLTClient == NULL )
return;
DWORD dwConsoleFunc = *( DWORD* )( dwpLTClient + 0x208 );
DWORD dwRealCallA = ( dwConsoleFunc + 0x26 );//JMP to real func
DWORD dwRealCallB = *(DWORD*)( dwRealCallA + 0x1 );
DWORD dwRealCall = ( dwRealCallA + dwRealCallB + 0x5 );
if( *(BYTE*)dwRealCallA == 0xE9 )
dwConsoleFunc = dwRealCall;
__asm
{
push szCommand;
call dwConsoleFunc;
add esp, 4;
}
}
//cmd
PTC("ScreenGlowEnable 1");
I don't get the + 0x5 at the end. maybe it's to get past some kind of stack frame idk...
[php]void PushToConsole(char* Command)
{
typedef int (__cdecl* RunConsoleCommand_t)(char* cmd);
RunConsoleCommand_t RCC = (RunConsoleCommand_t)LTC;//Engine LTC
RCC(szCommand);
}
PushToConsole("Show FPS 1")[/php]
just use the Engine LTC for gods sake! (Note: Its a offset)
'dwpLTClient'
In compiling the 2065 error "undeclared Indentifier"
I'm not getting more declare her as I do?
If you mean the CA Brazil LTClient..
Then you need to unpack cshell.dll and look for a tutorial posted in here on how to get that addy.
Thank you know the link of the post?
when i put a new ptc method, says ''eng.'' undeclared Indentifier"
and after this other error ''error C2228: left of '.IsReady' must have class/struct/union
1> type is 'int''
whats wrong?
the forum is in English and I'm from Brazil I have to be translated into Portuguese so I ask the link is not because I'm noob but more by necessity thanks anyway