Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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




CSHARP Code
  1. using System;
  2. using System.Collections.Generic;
  3. using Addon;
  4. using System.Text;
  5.  
  6. namespace ClassLibrary1
  7. {
  8. public class Class1:CPlugin
  9. {
  10. IntPtr gamespeed;
  11.  
  12. public override void OnServerLoad()
  13. {
  14. gamespeed = (IntPtr)Convert.ToInt32(0x0587EA14);
  15. ServerPrint("GameSpeed Plugin by 8Q4S8 loaded!");
  16. }
  17. unsafe public override ChatType OnSay(string Message, ServerClient Client)
  18. {
  19. if (Message.ToLower().StartsWith("!gamespeed"))
  20. {
  21. string[] split = Message.Split(' ');
  22.  
  23. if (split.Length == 1)
  24. {
  25. ServerSay("Gamespeed: "+*(int*)gamespeed, true);
  26. return ChatType.ChatNone;
  27. }
  28.  
  29. *(int*)gamespeed = Convert.ToInt32(split[1]);
  30. ServerSay("Gamespeed changed to " + *(int*)gamespeed, true);
  31. return ChatType.ChatNone;
  32. }
  33. return ChatType.ChatContinue;
  34. }
  35. public override unsafe void OnMapChange()
  36. {
  37. *(int*)gamespeed = 0;
  38. }
  39. }
  40. }


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

Enjoy!


Attached Files
.zip   GameSpeed.zip (Size: 2.19 KB / Downloads: 46)
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 3,913 11-09-2013, 09:21
Last Post: clemi555
  AntiNoScope Plugin clemi555 5 4,384 11-08-2013, 19:13
Last Post: clemi555
  [Release] Bunker Plugin 1.3 archit 68 38,576 10-30-2013, 11:59
Last Post: clacki
  Help Modifying plugin maverigh 5 5,289 10-19-2013, 10:29
Last Post: Nekochan
Shocked [Request] Switch plugin axel-le-meilleur 6 4,671 10-19-2013, 06:59
Last Post: iRoNinja
  [Release] Yurio Map Plugin Yurio 101 57,998 09-26-2013, 13:38
Last Post: First_Semyon
Brick [Release] v1.1 ChangeMap/NextMap Plugin without any configuration milchshake 23 17,471 09-23-2013, 13:18
Last Post: SgtLegend
  Help !say Plugin (like the !say from GodPlugin) Hallla 0 2,543 09-13-2013, 09:31
Last Post: Hallla
Rainbow [Release] MW3: Random Weapon Plugin V1 Nekochan 50 30,784 09-11-2013, 15:11
Last Post: EnVi Sweden Rocks
  Search Plugin Fluid Killcam N3xT_974 1 2,876 09-10-2013, 20:27
Last Post: Nekochan

Forum Jump:


Users browsing this thread:
1 Guest(s)

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