Release Gamespeed plugin
#1
Hey
I created another small plugin, it isn't very useful but maybe someone can use it for something.

commands:
Code:
!gamespeed - shows the current gamespeed !gamespeed <number> - changing the gamespeed
gamespeed > 5000 can crash your server

It's really funny to play around with it and to troll the people in the server Troll




Code:
using System; using System.Collections.Generic; using Addon; using System.Text; namespace ClassLibrary1 { public class Class1:CPlugin { IntPtr gamespeed; public override void OnServerLoad() { gamespeed = (IntPtr)Convert.ToInt32(0x0587EA14); ServerPrint("GameSpeed Plugin by 8Q4S8 loaded!"); } unsafe public override ChatType OnSay(string Message, ServerClient Client) { if (Message.ToLower().StartsWith("!gamespeed")) { string[] split = Message.Split(' '); if (split.Length == 1) { ServerSay("Gamespeed: "+*(int*)gamespeed, true); return ChatType.ChatNone; } *(int*)gamespeed = Convert.ToInt32(split[1]); ServerSay("Gamespeed changed to " + *(int*)gamespeed, true); return ChatType.ChatNone; } return ChatType.ChatContinue; } public override unsafe void OnMapChange() { *(int*)gamespeed = 0; } } }

Gamespeed reset to 0 in OnMapChange is necessary to avoid crashes.

Enjoy!


Attached Files
.zip   GameSpeed.zip (Size: 2.19 KB / Downloads: 68)
Reply

#2
wooow! Look the time its going crazy :p

BTW nice plugin ^^
Reply

#3
This looks like timescale, is it?
Do not take life too seriously. You will never get out of it alive.
[Image: UGPjFJa.jpg]
Reply

#4
tkn you
Reply

#5
How do you find the adresses ?
Reply

#6
Do you use timescale ?
By the way, it can crash server. ( not just 5000, like random moments ) (in mw2/cod4 it was crashing)
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#7
It isn't timescale, it isn't a float value as you can see but it's near timescale in memory.
Timescale address: 0587E9C8
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
Wink Plugin with !ban !kick and !tampban clemi555 3 6,488 11-09-2013, 09:21
Last Post: clemi555
  AntiNoScope Plugin clemi555 5 7,585 11-08-2013, 19:13
Last Post: clemi555
  [Release] Bunker Plugin 1.3 archit 68 55,802 10-30-2013, 11:59
Last Post: clacki
  Help Modifying plugin maverigh 5 7,637 10-19-2013, 10:29
Last Post: Nekochan
Shocked [Request] Switch plugin axel-le-meilleur 6 8,286 10-19-2013, 06:59
Last Post: iRoNinja
  [Release] Yurio Map Plugin Yurio 101 81,994 09-26-2013, 13:38
Last Post: First_Semyon
Brick [Release] v1.1 ChangeMap/NextMap Plugin without any configuration milchshake 23 25,154 09-23-2013, 13:18
Last Post: SgtLegend
  Help !say Plugin (like the !say from GodPlugin) Hallla 0 3,653 09-13-2013, 09:31
Last Post: Hallla
Rainbow [Release] MW3: Random Weapon Plugin V1 Nekochan 50 44,644 09-11-2013, 15:11
Last Post: EnVi Sweden Rocks
  Search Plugin Fluid Killcam N3xT_974 1 3,970 09-10-2013, 20:27
Last Post: Nekochan

Forum Jump:


Users browsing this thread:
1 Guest(s)

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