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: 70)
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
Rainbow [Release] Plugin ReservedSlot v1.3 frst_ 1 5,018 11-08-2018, 19:17
Last Post: frst_
Tongue [Release] MW3 Shop plugin Dude 56 51,451 03-25-2018, 05:18
Last Post: [email protected]
  [Release] Permission plugin Pozzuh 202 164,549 05-01-2017, 15:41
Last Post: W4R||The Hyper
  [Release] FIXED SPEED PLUGIN hillbilly 2 5,672 06-02-2016, 20:23
Last Post: clacki
  [Release] Bots Plugin For Users Casper 22 39,937 08-22-2015, 17:45
Last Post: SnapBacks
  [Release] God Plugin v5.0 [Ingame Rcon Tool] OzonE 464 337,377 06-27-2015, 15:38
Last Post: bluedot
  [Release] Anti Hardscope Plugin 8q4s8 26 27,712 06-20-2015, 22:44
Last Post: urj88419
  [Release] ProMod Plugin zxz0O0 875 763,909 03-25-2015, 22:02
Last Post: kris
  [Release] [Discontinued] Speed Plugin Pozzuh 164 122,574 10-06-2014, 12:56
Last Post: Nekochan
  [help]how create a ping plugin clacki 3 5,111 09-13-2014, 01:23
Last Post: clacki

Forum Jump:


Users browsing this thread:
1 Guest(s)

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