[php]void RunConsoleCommand(const char* szCommand )
{
DWORD ltClient = 0x377ED910;
__asm
{
mov eax, [ltClient]; //interface dereference
mov esi, [eax + 0x208]; //vtable dereference //we could push and call ESI now
mov edx, [esi + 0x01]; //jump operand dereference. EDX holds the EIP displacement
add edx, 5; //displacement ad [/php]
should be
[php]void RunConsoleCommand(const char* szCommand )
{
DWORD ltClient = 0x377ED910;
__asm
{
mov eax, [ltClient]; //interface dereference
mov esi, [eax + 0x208];
mov edx, [esi + 0x01];
add edx, 5;
mov eax, esi;
add eax, edx;
push szCommand;
call eax;
add esp, 4;
}
} [/php]
since your using HL-SDK PTC method