SendCommandToConsole Offset 1.1.159, aiw2, 4d1

Posts 1–3 of 3 · Page 1 of 1
SendCommandToConsole Offset 1.1.159, aiw2, 4d1
ive been looking for this 24 hours now,,, i still dont understand the asm in the function,, i got function for mp and was moding the offset,, i gotta re write the function for sp executable?

This is Singleplayer, been slowly learning how to hack games,, only been in c++ bout 2 months but did vb and c# so im catching on fast
Quote Originally Posted by 98MustangGt View Post
ive been looking for this 24 hours now,,, i still dont understand the asm in the function,, i got function for mp and was moding the offset,, i gotta re write the function for sp executable?

This is Singleplayer, been slowly learning how to hack games,, only been in c++ bout 2 months but did vb and c# so im catching on fast
heres what i have

004EF5D5 68 3C0D6B00 PUSH iw4sp.006B0D3C ; ASCII "stoprecord"
004EF5DA E8 21A6FEFF CALL iw4sp.004D9C00 <--------My Offset i beleive
004EF5DF 68 AC896900 PUSH iw4sp.006989AC ; ASCII "setenv"
004EF5E4 E8 17A6FEFF CALL iw4sp.004D9C00
004EF5E9 68 54576B00 PUSH iw4sp.006B5754 ; ASCII "fs_openedList"
004EF5EE E8 0DA6FEFF CALL iw4sp.004D9C00
004EF5F3 68 D8CA6B00 PUSH iw4sp.006BCAD8 ; ASCII "fs_referencedList"
004EF5F8 E8 03A6FEFF CALL iw4sp.004D9C00
004EF5FD 83C4 40 ADD ESP,40


void PushToConsole(char* Cmd)
{
__asm
{
push Cmd
push 0
mov esi, 0x004D9C00
call esi
add esp, 0x40
}
}

been tring differnt ways.. can anyone explain this to me?
Learn asm... besides, this was already answered on the other forum where you posted this... Just gonna quote for someone that might have the same problem:

Quote Originally Posted by BaberZz
Code:
add esp, 0Ch
3 arguments ... if you don't know basics of asm, why not typedef it?
Code:
typedef void ( __cdecl* oSendCommandToConsole ) ( int a1, int a2, const char* cmd );
oSendCommandToConsole SendCommandToConsole = ( oSendCommandToConsole ) 0x46AFD0;
/Closed
Posts 1–3 of 3 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us