Results 1 to 3 of 3
  1. #1
    98MustangGt's Avatar
    Join Date
    May 2012
    Gender
    male
    Posts
    15
    Reputation
    10
    Thanks
    0

    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
    Last edited by 98MustangGt; 10-29-2012 at 02:32 AM.

  2. #2
    98MustangGt's Avatar
    Join Date
    May 2012
    Gender
    male
    Posts
    15
    Reputation
    10
    Thanks
    0
    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?

  3. #3
          ( ° ͜ʖ͡°)╭∩╮
    Former Staff
    MarkHC's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Location
    127.0.0.1
    Posts
    2,751
    Reputation
    66
    Thanks
    14,310
    My Mood
    Angelic
    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


    CoD Minion from 09/19/2012 to 01/10/2013

Similar Threads

  1. need help with offset problem
    By qplazm in forum General Game Hacking
    Replies: 1
    Last Post: 12-31-2008, 02:45 PM
  2. offsets
    By silent1990 in forum Combat Arms Hacks & Cheats
    Replies: 0
    Last Post: 12-03-2008, 07:01 AM
  3. CombatArms addys pointers & offsets?
    By nitro107 in forum Combat Arms Hacks & Cheats
    Replies: 4
    Last Post: 08-20-2008, 06:31 AM
  4. Offset addresses
    By thomtim in forum WarRock - International Hacks
    Replies: 0
    Last Post: 07-22-2008, 03:21 AM
  5. Offsets
    By radnomguywfq3 in forum Visual Basic Programming
    Replies: 2
    Last Post: 09-01-2007, 10:50 AM