void __cdecl PushToConsole(char* szVal, float value)
{
void* vSetVar = (void*)0x0046F620;
char scom[50];
sprintf(scom,"%s %d",szVal,value);
_asm
{
push scom
call vSetVar
add esp, 4
}
}
PushToConsole("Command here", progressor);
PushToConsole("Command here", control);
if (GetAsyncKeyState(VK_UP)<0)
progressor+=50;
if(GetAsyncKeyState(VK_DOWN)<0)
progressor-=50;
if(GetAsyncKeyState(VK_LEFT)<0)
control+=50;
if(GetAsyncKeyState(VK_RIGHT)<0)
control-=50;
PushToConsole("Command here", progressor);
= if (GetAsyncKeyState(VK_UP)<0)
progressor+=50;
void __cdecl PushToConsole(const char* szCommand )
{
DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
if( dwCShell != NULL )
{
DWORD *LTClient = ( DWORD* )( 0x3778CFB0 );
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
__asm
{
push szCommand;
call CONoff;
add esp, 4;
}
}
}
PushToConsole("DrawGuns 0");