Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Release Sprint Disable Plugin for version 1.9.446
#1
this one is for all the tactical crouch server admins and anyone else who wants to stop players from sprinting in their servers.

my sprint disable plugin runs on @Nukem's MW3 Server Addon version 1.413 with the 1.9.446 patch.

again, many thanks to @zxz0O0 for helping me out and for the offset.
download link below.


This plugin reduces the sprint duration to 0 seconds.

i tested it. it works.
you cannot run with this plugin installed.

Requirements:
@Nukem's dedicated server addon v1.413

No commands needed.
Place the sprintDisable_1.0.dll in your plugins folder.
Enjoy.

Source Code:

Code:
using System;
using System.Runtime.InteropServices;
using System.Security;
using Addon;

//Compile with /unsafe
//And a reference to "addon/dist/addon.dll"

namespace SprintDisable_1_0
{
    public class Program : CPlugin
    {
        [DllImport("kernel32.dll", SetLastError = true)]
        public static extern bool WriteProcessMemory(IntPtr hProcess, int lpBaseAddress, byte[] lpBuffer, int nSize, out int lpNumberOfBytesWritten);

        public override void OnMapChange()
        {
            SetDvar("perk_sprintMultiplier", "0");
        }
        unsafe public override void OnServerLoad()
        {
            ServerPrint("Plugin: Sprint Disable 1.0 by blueberry9 & zxz0O0 loaded.");

            int oP;
            byte[] bytes = { 0x90, 0x90 };
            WriteProcessMemory(((IntPtr)(-1)), 0x40C8D7, bytes, bytes.Length, out oP);
        }
    }
}


Attached Files
.rar   sprintDisable_1.0.rar (Size: 2.09 KB / Downloads: 49)
[Image: c2ship5_sig.png]
Reply

#2
You always create such small but very useful plugins, +rep !
Reply

#3
crouch servers Fuu
Reply

#4
thanks
[Image: 88cf4.png]
Cyber Biliim Ve nternet Hizmetleri
Cyber IT Technologies
Reply

#5
Thanks +rep given Big Grin
[Image: b_560x95.png]

[Image: b_560x95.png]
[Image: b_560x95.png]
Reply

#6
dll in the plugin folder and move the sv_config.ini anpassen.Was I write in there in sv_config.ini .. please help...MW3 with the 1.9.461
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
Wink Plugin with !ban !kick and !tampban clemi555 3 4,161 11-09-2013, 09:21
Last Post: clemi555
  AntiNoScope Plugin clemi555 5 4,739 11-08-2013, 19:13
Last Post: clemi555
  Disable Planting on Bomb clemi555 4 3,413 11-04-2013, 07:59
Last Post: clemi555
  [Release] Bunker Plugin 1.3 archit 68 41,463 10-30-2013, 11:59
Last Post: clacki
  MW3 Server Version superg1973 7 12,729 10-28-2013, 01:15
Last Post: kotyra972
  Help Modifying plugin maverigh 5 5,656 10-19-2013, 10:29
Last Post: Nekochan
Shocked [Request] Switch plugin axel-le-meilleur 6 5,168 10-19-2013, 06:59
Last Post: iRoNinja
  Help How to disable auto balance? .sepultura. 3 4,306 10-07-2013, 19:44
Last Post: Nekochan
  [Release] Yurio Map Plugin Yurio 101 62,154 09-26-2013, 13:38
Last Post: First_Semyon
Brick [Release] v1.1 ChangeMap/NextMap Plugin without any configuration milchshake 23 18,610 09-23-2013, 13:18
Last Post: SgtLegend

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.