Release Jumpheight
#1


Credits
- @Nukem
- @JariZ

Download

.zip   JumpHack.zip (Size: 2.12 KB / Downloads: 556)

Source (on request of @zxz0O0)
[code=csharp]
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;
}
}
}
[/code]

#2
Cool, you should make a config setting to change the height though.
[Image: MaEIQ.png]

#3
my server wont loaded :\

#4
@nyu_vo Did you update it already?
It uses the new API

#5
ye have update to 1.15, but server console not show on startup plugins loaded..

#6
awesome i cant wait to use this

#7
Recorded with a toaster Troll

OnTopic:

You guys are getting better, maybe i get back to play MW "three" again.

Thanks Barata...

#8
@barata haha, 240p FTW

#9
I'd love to see source code like with your previous plugins.
[Image: azuw.jpg]

#10
It's basically this
Code:
//This lowers the protection level of the adress so you can change it. IntPtr jumpheight = (IntPtr)0x??????;//the jump height address uint size = 4; //size is 4 bytes because the value is a float. uint newProtect = 0x40; uint oldProtect = 0; VirtualProtect(jumpheight, size, newProtect, out oldProtect); //The change: *(float*)0x?????? = 1000f;//the jump height address
[Image: MaEIQ.png]



Forum Jump:


Users browsing this thread:
2 Guest(s)

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