[help]

Posts 15 of 5 · Page 1 of 1
[help]
ok so i got this from Finish [topblast i think]
Code:
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;
ok so
Code:
PushToConsole("Command here", progressor);

= if (GetAsyncKeyState(VK_UP)<0)
        progressor+=50;
???????
help me please

so "Command here" is the offset value????

credits:
Finish
i did but i dont understand please just help
Use this:

Code:
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;
		}
	}
}
Example of usage:

Code:
PushToConsole("DrawGuns 0");
Quote Originally Posted by J View Post
Use this:

Code:
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;
		}
	}
}
Example of usage:

Code:
PushToConsole("DrawGuns 0");


He just basically gave you A C+P source , use it , thank him
Posts 15 of 5 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?