Credits
- @Nukem
- @JariZ
Download
JumpHack.zip (Size: 2.12 KB / Downloads: 556)
Source (on request of @zxz0O0)
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using Addon;
namespace plugin_test
{
//"<class name> : CPlugin" is needed to inherit the functions
public class plugin_test : CPlugin
{
//Example overrides for functions
public override void OnServerFrame()
{
}
[DllImport("kernel32.dll")]
static extern bool VirtualProtect(IntPtr lpAddress, uint dwSize,
uint flNewProtect, out uint lpflOldProtect);
unsafe public override void OnServerLoad()
{
ServerPrint("Plugin: Jumpheight by Nukem & JariZ loaded");
uint lol = 0;
uint size = 0x4;
uint pro = 0x40;
IntPtr addr = (IntPtr)0x6DA708;
IntPtr addr2 = (IntPtr)0x6D9634;
IntPtr addr3 = (IntPtr)0x6DE490;
plugin_test.VirtualProtect(addr, size, pro, out lol);
plugin_test.VirtualProtect(addr2, size, pro, out lol);
plugin_test.VirtualProtect(addr3, size, pro, out lol);
*(float*)0x6DA708 = 1000.0f;
*(float*)0x6D9634 = 999999.0f;
*(float*)0x6DE490 = 1000000.0f;
}
public override ChatType OnSay(string Message, ServerClient Client)
{
return Addon.ChatType.ChatContinue;
}
public override string OnCheckBan(string xuid)
{
//Return a string if the player is banned
//otherwise return null
//xuid = xuid in the "status" command
return null;
}
}
}



