Thread: For technoMW3

Results 1 to 10 of 10
  1. #1
    nagendhrabanoth's Avatar
    Join Date
    Sep 2012
    Gender
    male
    Posts
    17
    Reputation
    10
    Thanks
    0
    My Mood
    Amazed

    For technoMW3

    can any one help me ....how to diable meel(knife) on the server.......iritating while playing snipe only matches.......??????

  2. #2
          ( ° ͜ʖ͡°)╭∩╮
    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
    If you know programming (more specifically C#).. Directly from IW5M forum:

    Code:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using InfinityScript;
    using System.Runtime.InteropServices;
    
    //Adapted by DaMacc for IW5M
    
    namespace IW5MExtensions
    {
        unsafe class NoKnife
        {
    
            public unsafe void DisableKnife()
            {
                *this.KnifeRange = (int)ZeroAddress;
            }
    
            public unsafe void EnableKnife()
            {
                *this.KnifeRange = (int)DefaultKnifeAddress;
            }
    
            [return: MarshalAs(UnmanagedType.Bool)]
            [DllImport("kernel32.dll")]
            private static extern bool VirtualProtect(IntPtr lpAddress, IntPtr dwSize, uint flNewProtect, out uint lpflOldProtect);
    
    
            private int DefaultKnifeAddress;
            private int* KnifeRange;
            private int* ZeroAddress;
    
            private unsafe int FindMem(byte?[] search, int num = 1, int start = 0x1000000, int end = 0x3d00000)
            {
                byte* num2 = (byte*)0;
                try
                {
                    int num3 = 0;
                    for (int i = start; i < end; i++)
                    {
                        num2 = (byte*)i;
                        bool flag = false;
                        for (int j = 0; j < search.Length; j++)
                        {
                            if (search[j].HasValue)
                            {
                                byte num7 = *num2;
                                if (num7 != search[j])
                                {
                                    break;
                                }
                            }
                            if (j == (search.Length - 1))
                            {
                                if (num == 1)
                                {
                                    flag = true;
                                }
                                else
                                {
                                    num3++;
                                    if (num3 == num)
                                    {
                                        flag = true;
                                    }
                                }
                            }
                            else
                            {
                                num2++;
                            }
                        }
                        if (flag)
                        {
                            return i;
                        }
                    }
                }
                catch (Exception exception)
                {
                    Log.Write(LogLevel.Error, "FindMem: " + exception.Message + "\nAddress: " + (int)num2);
                }
                return 0;
            }
    
    
    
            public unsafe NoKnife()
            {
    
                Log.Write(LogLevel.Info, "NoKnife Plugin loaded \n Author: zxz0O0 \n Thanks to Nukem, Jariz, Pozzuh and Makavel\n Modified for IW5M by DaMacc");
    
                try
                {
    
                    byte?[] search = new byte?[] { 
                    0x8b, null, null, null, 0x83, null, 4, null, 0x83, null, 12, 0xd9, null, null, null, 0x8b, 
                    null, 0xd9, null, null, null, 0xd9, 5
                 };
                    this.KnifeRange = (int*)(this.FindMem(search, 1, 0x400000, 0x500000) + search.Length);
    
                    Log.Write(LogLevel.Info, "KnifeRange ptr: " + string.Format("{0:X}", (int)KnifeRange));
    
                    if ((int)this.KnifeRange == search.Length)
                    {
                        byte?[] nullableArray2 = new byte?[] { 
                        0x8b, null, null, null, 0x83, null, 0x18, null, 0x83, null, 12, 0xd9, null, null, null, 0x8d, 
                        null, null, null, 0xd9, null, null, null, 0xd9, 5
                     };
                        this.KnifeRange = (int*)(this.FindMem(nullableArray2, 1, 0x400000, 0x500000) + nullableArray2.Length);
    
                        Log.Write(LogLevel.Info, "KnifeRange ptr: " + string.Format("{0:X}", (int)KnifeRange));
    
                        if ((int)this.KnifeRange == nullableArray2.Length)
                        {
                            this.KnifeRange = (int*)0;
                        }
                    }
                    this.DefaultKnifeAddress = *this.KnifeRange;
                    byte?[] nullableArray3 = new byte?[] { 
                    0xd9, 0x5c, null, null, 0xd8, null, null, 0xd8, null, null, 0xd9, 0x5c, null, null, 0x83, null, 
                    1, 15, 0x86, null, 0, 0, 0, 0xd9
                 };
                    this.ZeroAddress = (int*)(this.FindMem(nullableArray3, 1, 0x400000, 0x500000) + nullableArray3.Length + 2);
    
                    Log.Write(LogLevel.Info, "ZeroAddress ptr: " + string.Format("{0:X}", (int)ZeroAddress));
    
                    if ((((int)this.KnifeRange == 0) || ((int)this.DefaultKnifeAddress == 0)) || ((int)this.ZeroAddress == 0))
                    {
                        Log.Write(LogLevel.Error, "Error finding address: NoKnife Plugin will not work");
    
                    }
                    else
                    {
                        uint num;
                        VirtualProtect((IntPtr)this.KnifeRange, (IntPtr)4, 0x40, out num);
                    }
                }
                catch (Exception exception)
                {
                    Log.Write(LogLevel.Error, "Error in NoKnife Plugin. Plugin will not work.");
                    Log.Write(LogLevel.Error, exception.ToString());
                }
            }
        }
    }
    Usage:
    Code:
    NoKnife nk = new NoKnife();
    nk.DisableKnife();
    Credits:
    zxz0O0, Nukem, Jariz, Pozzuh and Makavel, DaMacc
    Last edited by MarkHC; 09-22-2012 at 06:48 PM. Reason: Added credits.. Jorndel <3


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

  3. #3
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,674
    Reputation
    905
    Thanks
    18,541
    My Mood
    Angelic
    Quote Originally Posted by -InSaNe- View Post
    using InfinityScript;
    And where is that from?
    Don't think he would be able to understand that.
    Would be an error and prevent compile.

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  4. #4
          ( ° ͜ʖ͡°)╭∩╮
    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
    Quote Originally Posted by Jorndel View Post


    And where is that from?
    Don't think he would be able to understand that.
    Would be an error and prevent compile.
    The credits are on the code.. anyways... I'll add it to the post.

    Wait.. nvm.. I didn't see the InfinityScript thing.. sorry
    Last edited by MarkHC; 09-22-2012 at 06:52 PM.


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

  5. #5
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,674
    Reputation
    905
    Thanks
    18,541
    My Mood
    Angelic
    Quote Originally Posted by -InSaNe- View Post
    The credits are on the code.. anyways... I'll add it to the post.
    Didn't mean the credits :P

    I just meant the Import used.

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  6. #6
          ( ° ͜ʖ͡°)╭∩╮
    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
    Quote Originally Posted by Jorndel View Post

    Didn't mean the credits :P

    I just meant the Import used.
    Yeah I know.. I edited my post :P Anyways... after a little search:
    Quote Originally Posted by ._.
    InfinityScript allows access to many gsc functions and callbacks because IW5 does not have a working script compiler, so modding through .gsc scripts is impossible.
    Although, I've never made a plugin for iw5 so I'm not sure if that's true.


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

  7. #7
    Kenshin13's Avatar
    Join Date
    May 2011
    Gender
    male
    Location
    Cloud 9
    Posts
    3,473
    Reputation
    564
    Thanks
    5,882
    My Mood
    Psychedelic
    Quote Originally Posted by -InSaNe- View Post
    Yeah I know.. I edited my post :P Anyways... After a little search:


    Although, I've never made a plugin for iw5 so I'm not sure if that's true.
    Well I made tons of plugins for iw5 (Server wise) The infinity script is the equivalent to Nukem's Server Addon.
    Anyways.. I found out this:

    Code:
    byte[] bytes = { 0xD9, 0x05, 0xD0, 0x5A, 0x78, 0x00 };
    0x004B75E0 // This address is where the above bytes need to be written to to disable knifing.
    However I'm not entirely sure this is 1.4.382 supported. If not, you need to find the knifing function's address.
    Last edited by Kenshin13; 09-22-2012 at 07:55 PM.

  8. #8
    nagendhrabanoth's Avatar
    Join Date
    Sep 2012
    Gender
    male
    Posts
    17
    Reputation
    10
    Thanks
    0
    My Mood
    Amazed
    The plugin is not working for both 1.4.328 ,1.5.8 ............i already tried......getting crashed(dump file is created in the addon folder) ...........
    Last edited by nagendhrabanoth; 09-22-2012 at 08:37 PM.

  9. #9
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,674
    Reputation
    905
    Thanks
    18,541
    My Mood
    Angelic
    Quote Originally Posted by nagendhrabanoth View Post
    The plugin is not working for both 1.4.328 ,1.5.8 ............i already tried......getting crashed(dump file is created in the addon folder) ...........can you give me address for knifing in CE
    Asking/Begging isn't allowed.
    Ensure you know the Rules before you start posting.

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  10. The Following User Says Thank You to Jorndel For This Useful Post:

    Alexy44 (09-23-2012)

  11. #10
    Kenshin13's Avatar
    Join Date
    May 2011
    Gender
    male
    Location
    Cloud 9
    Posts
    3,473
    Reputation
    564
    Thanks
    5,882
    My Mood
    Psychedelic
    Using my memory plugin (Source coding section, I made this, try it out)

    Code:
    using Addon;
    using MemoryControl;
    
    namespace NoKnifePlugin
    {
        public class NoKnife : CPlugin
        {
            public override void OnServerLoad()
            {
                byte[] bytes = { 0xD9, 0x05, 0xD0, 0x5A, 0x78, 0x00 };
                int address = 0x004B75E0;
                MemC.cOpenProcess("iw5mp_server");
                MemC.WriteXBytes(address, bytes);
                MemC.cCloseProcess();
            }
        }
    }
    Last edited by Kenshin13; 09-23-2012 at 11:31 PM. Reason: Fixed Code

  12. The Following User Says Thank You to Kenshin13 For This Useful Post:

    nagendhrabanoth (09-24-2012)

Similar Threads

  1. Hacks for mmorpg?
    By suppaman in forum General Game Hacking
    Replies: 6
    Last Post: 10-17-2010, 12:04 PM
  2. cheat for gunz
    By suppaman in forum Gunz General
    Replies: 27
    Last Post: 02-07-2006, 08:34 PM
  3. Connection About for Annomalation in Game
    By asdasd in forum WarRock - International Hacks
    Replies: 7
    Last Post: 12-30-2005, 09:17 PM
  4. Looking for hacks
    By Worcha in forum General Game Hacking
    Replies: 0
    Last Post: 12-29-2005, 04:21 PM
  5. Too Ownage For Words.
    By Flawless in forum Art & Graphic Design
    Replies: 8
    Last Post: 12-28-2005, 05:55 PM