Results 1 to 3 of 3
  1. #1
    mwxplayer's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Location
    hax
    Posts
    584
    Reputation
    10
    Thanks
    2,665
    My Mood
    Doh

    IW5M GameType Changer

    as you may have saw that you can change a Gametype in MW2 (e.g Zombies , Hide & Seek , iSnipe etc..)
    this plugin allows you to change the gametype to your custom one..
    Full Credits to : @DidUknowiPwn and TheApadayo
    Code:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using InfinityScript;
    using System.Diagnostics;
    using System.Runtime.InteropServices;
    using System****;
    
    namespace IW5M_GameType_Changer
    {
        public class GametypeChanger : BaseScript
        {
            public GametypeChanger()
            {
                if (File.Exists("gametype.txt"))
                {
                    StreamReader sr = new StreamReader("gametype.txt");
                    String gameType = sr.ReadLine();
                    sr.Close();
                    changeGametype(gameType);
                }
    
            }
            [DllImport("kernel32.dll", SetLastError = true)]
            static extern IntPtr VirtualAlloc(IntPtr lpAddress, UIntPtr dwSize, uint flAllocationType, uint flProtect);
            [DllImport("kernel32.dll", SetLastError = true)]
            static extern bool VirtualFree(IntPtr lpAddress, UIntPtr dwSize, uint dwFreeType);
            public IntPtr alloc(int size)
            {
                return VirtualAlloc(IntPtr.Zero, (UIntPtr)size, 0x3000, 0x40);
            }
            public bool unalloc(IntPtr address, int size)
            {
                return VirtualFree(address, (UIntPtr)size, 0x8000);
            }
    
            bool _changed = false;
            IntPtr memory;
            private unsafe void changeGametype(string gametype)
            {
                byte[] gametypestring;
                if (_changed)
                {
                    gametypestring = new System.Text.UTF8Encoding().GetBytes(gametype);
                    if (gametypestring.Length >= 64) gametypestring[64] = 0x0; // null terminate if too large
                    Marshal.Copy(gametypestring, 0, memory, gametype.Length > 64 ? 64 : gametype.Length);
                    return;
                }
                memory = alloc(64);
                gametypestring = new System.Text.UTF8Encoding().GetBytes(gametype);
                if (gametypestring.Length >= 64) gametypestring[64] = 0x0; // null terminate if too large
                Marshal.Copy(gametypestring, 0, memory, gametype.Length > 64 ? 64 : gametype.Length);
                *(byte*)0x4EB983 = 0x68; // mov eax, 575D928h -> push stringloc
                *(int*)0x4EB984 = (int)memory;
                *(byte*)0x4EB988 = 0x90; // mov ecx, [eax+0Ch] -> nop
                *(byte*)0x4EB989 = 0x90;
                *(byte*)0x4EB98A = 0x90;
                *(byte*)0x4EB98B = 0x90; // push edx -> nop
                _changed = true;
            }
        }
    }
    Usage :
    1)Create a File Called GameType.txt in your Game Folder
    2)Save the Gametype you want in that text file.. (should be in first line.)
    3)Start the Dedicated Server
    4)load the Script
    5)Have fun..

    PS : this isn't tested... (but should work.. i see no reason.. that why it won't work )
    <b>Downloadable Files</b> Downloadable Files
    Last edited by mwxplayer; 02-05-2013 at 05:41 AM.

  2. The Following 7 Users Say Thank You to mwxplayer For This Useful Post:

    -_SiLeZz_- (05-18-2013),ergh4 (12-03-2015),hacktaodachethet (02-07-2013),r3st4rt (09-26-2014),skytwohigh (04-07-2013),Spooder Man (02-27-2014),tytybyby10 (06-09-2014)

  3. #2
    Horror's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    51,4.
    Posts
    6,940
    Reputation
    574
    Thanks
    5,004
    My Mood
    Twisted
    /Approvaled
    Please report any problems
     

    Minion+ : February 2014 - January 2015
    Counter Strike: Global Offensive Minion : November 2014 - January 2015
    Alliance of Valiant Arms Minion : August 2014 - January 2015
    Need For Speed World Minion : January 2014 - January 2015
    Rust Minion : January 2014 - January 2015
    Call of Duty Minion : January 2013 - January 2015
    Editor : December 2012 - April 2013
    Donator : March 2014 - Current
    Member : October 2010 - Current

    Previously known as "Isaakske".

  4. #3
    DidUknowiPwn's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Posts
    48
    Reputation
    10
    Thanks
    25
    Code:
    using System****;
    wut m8.

    And meh I have a better version of the code, it's more complex and shiet but it does a lot better job than the current version.

    Although... it's very haxy :P

Similar Threads

  1. [Detected] IW5M GUID Changer
    By mwxplayer in forum Call of Duty Modern Warfare 3 Private Server Hacks
    Replies: 72
    Last Post: 03-19-2013, 09:52 PM
  2. [RELEASE] MAC Adress Changer [PBBAN]
    By thereal|quintobean in forum WarRock - International Hacks
    Replies: 2
    Last Post: 03-15-2007, 11:26 AM
  3. [Release] Nickname changer
    By hjerherjdsd in forum WarRock - International Hacks
    Replies: 42
    Last Post: 12-16-2006, 05:24 PM