Release 8Q's Server Addon Extension
#1
Because I suck at c++ and wasn't able to update the addon I decided to create a addon extension in c#. I added everything that I found to it, it also contains the stuff that I released earlier like teamcounter or gamespeed.
This plugin only works for server version 1.9.461

Functions

class: Set
Code:
void NoClip (int ClientNum, NoClipType nocliptype) // I added that because I found a second noclip void MapOnScreen (int ClientNum, bool activate) // enables/disables map on screen void GameSpeed (int GameSpeed) // changing gamespeed void ScreenRotation (int ClientNum, float value) // rotation the screen of the selected player void MouseX (int ClientNum, float value) // changing the mouse location of the player void MouseY (int ClientNum, float value) // changing the Y axis void Name (int ClientNum, string Name) // changing the name of the player, colors are working too

class: Get
Code:
bool MapOnScreen (int ClientNum) // returns true = enabled, false = disabled int TeamScore (_Team team) // returning the score of the selected team (should work for every gametype) NoClipType NoClip (int ClientNum) // returns the players nocliptype int GameSpeed () // returns the gamespeed float MouseX (int ClientNum) // returns mouseX value float MouseY (int ClientNum) // returns MouseY value List<ServerClient> Allies () // returns list of players in team allies List<ServerClient> Axis () // returns list of players in team axis ServerClient GetLastAlive () // returns last alive(for infected) or null int Count (_Team team) // returns the amount of players in the team float ScreenRotation (int ClientNum) // returns screenrotation

How to use
add the .dll as a reference to your plugin
namespace: Extension8Q
report any bugs

Examples of what you can create with it:

AimbotMe Gusta

Bunker Builder


Credits
@8q4s8 - creator
@Nukem - awesome addon Awesome
Thanks to everyone who helped me with testing

EDIT: updated download, the old one caused some problems because of the obfuscation


Attached Files
.zip   Extension8Q.zip (Size: 17.23 KB / Downloads: 218)
Reply

#2
updated, I added
Code:
void Set.Name (int ClientNum, string Name)
you can use colored names too (Set.Name(Client.ClientNum, "^1myname")Wink

here's the code of the bunker builder that i used for testing (requested by @ltybcs)

Code:
using System; using System.Collections.Generic; using Addon; using System.Text; using Extension8Q; using System.Timers; namespace ClassLibrary1 { public class Class1:CPlugin { bool activated = false; Timer timer = new Timer(); Timer timer2 = new Timer(); Vector vec; ServerClient client; Entity spawn; int i = 75; public override ChatType OnSay(string Message, ServerClient Client) { if (Message == "!activate") { activated = !activated; client = Client; return ChatType.ChatNone; } return ChatType.ChatContinue; } public override void OnServerLoad() { timer.Elapsed += new ElapsedEventHandler(handler); timer.Interval = 500; timer.Enabled = true; timer2.Elapsed += new ElapsedEventHandler(handler2); timer2.Interval = 10; timer2.Enabled = true; } public void handler(object s, ElapsedEventArgs e) { if (activated) { if (client.Other.ButtonPressed(Buttons.Activate)) { Entity ent = SpawnModel("script_model", "com_plasticcase_trap_friendly", vec); Extensions.CloneBrushModelToScriptModel(ent, Extensions.FindAirdropCrateCollisionId()); } } } public void handler2(object s,ElapsedEventArgs e) { if (activated) { if (client.Other.ButtonPressed(Buttons.Equipment)) { i = i - 1; } if (client.Other.ButtonPressed(Buttons.ADS)) { i = i + 1; } float x1 = client.OriginX + i * (float)Math.Cos(Get.MouseX(client.ClientNum) * (Math.PI / 180)); float y1 = client.OriginY + i * (float)Math.Sin(Get.MouseX(client.ClientNum) * (Math.PI / 180)); vec = new Vector(x1, y1, client.OriginZ + 50 - (Get.MouseY(client.ClientNum)*2)); if (spawn == null) { spawn = SpawnModel("script_model", "com_plasticcase_trap_friendly", vec); } else { spawn.OriginX = vec.X; spawn.OriginY = vec.Y; spawn.OriginZ = vec.Z; } } else { spawn.Delete(); spawn = null; } } } }
Reply

#3
Good job.
[Image: MaEIQ.png]
Reply

#4
Nice... but is SetName bannable? ( Do you use address of CVar .. ? )... because it is RO dvar, you can get banned.
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#5
(07-09-2013, 20:37)SailorMoon Wrote: Nice... but is SetName bannable? ( Do you use address of CVar .. ? )... because it is RO dvar, you can get banned.

I'm pretty sure you can't get banned or the chances are very low, I'm using this in my server for quite a while and no one got banned so far.
Reply

#6
(07-09-2013, 16:36)8q4s8 Wrote: updated, I added
Code:
void Set.Name (int ClientNum, string Name)
you can use colored names too (Set.Name(Client.ClientNum, "^1myname")Wink

here's the code of the bunker builder that i used for testing (requested by @ltybcs)

Code:
using System; using System.Collections.Generic; using Addon; using System.Text; using Extension8Q; using System.Timers; namespace ClassLibrary1 { public class Class1:CPlugin { bool activated = false; Timer timer = new Timer(); Timer timer2 = new Timer(); Vector vec; ServerClient client; Entity spawn; int i = 75; public override ChatType OnSay(string Message, ServerClient Client) { if (Message == "!activate") { activated = !activated; client = Client; return ChatType.ChatNone; } return ChatType.ChatContinue; } public override void OnServerLoad() { timer.Elapsed += new ElapsedEventHandler(handler); timer.Interval = 500; timer.Enabled = true; timer2.Elapsed += new ElapsedEventHandler(handler2); timer2.Interval = 10; timer2.Enabled = true; } public void handler(object s, ElapsedEventArgs e) { if (activated) { if (client.Other.ButtonPressed(Buttons.Activate)) { Entity ent = SpawnModel("script_model", "com_plasticcase_trap_friendly", vec); Extensions.CloneBrushModelToScriptModel(ent, Extensions.FindAirdropCrateCollisionId()); } } } public void handler2(object s,ElapsedEventArgs e) { if (activated) { if (client.Other.ButtonPressed(Buttons.Equipment)) { i = i - 1; } if (client.Other.ButtonPressed(Buttons.ADS)) { i = i + 1; } float x1 = client.OriginX + i * (float)Math.Cos(Get.MouseX(client.ClientNum) * (Math.PI / 180)); float y1 = client.OriginY + i * (float)Math.Sin(Get.MouseX(client.ClientNum) * (Math.PI / 180)); vec = new Vector(x1, y1, client.OriginZ + 50 - (Get.MouseY(client.ClientNum)*2)); if (spawn == null) { spawn = SpawnModel("script_model", "com_plasticcase_trap_friendly", vec); } else { spawn.OriginX = vec.X; spawn.OriginY = vec.Y; spawn.OriginZ = vec.Z; } } else { spawn.Delete(); spawn = null; } } } }

hey i wanted make your Bunker Plugin, but idk how to Tongue , can you pls upload yours? i tried it the whole week but it dont work so pls upload it ;D?
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
Rainbow How can i add my private server in unranked? Geded12 6 10,482 12-06-2025, 08:25
Last Post: jackey78
  [Release] Windows 8.1 Fix for MW3 Server Addon master131 16 30,727 09-29-2014, 23:08
Last Post: SuperNovaAO
Brick [Release] MW3 Server Administration Addon iRoNinja 5 10,846 11-10-2013, 15:46
Last Post: Casper
Exclamation Help cmdlist, dvarlist server crash Nerus 17 16,413 11-09-2013, 23:54
Last Post: Nerus
  Hosting With Addon obliviron 9 10,513 11-04-2013, 22:13
Last Post: d0h!
  Our Level Fastfile is Different from the Server. CheeseToast 6 15,495 11-03-2013, 17:52
Last Post: CheeseToast
  Dedicated Server External (public) IP Nerus 3 9,542 11-02-2013, 14:16
Last Post: Casper
  MW3 Server Version superg1973 7 17,462 10-28-2013, 01:15
Last Post: kotyra972
  Help how to turn off map in dedicated server pero123 8 9,547 10-15-2013, 19:00
Last Post: Nekochan
  Issue with server addon and NAT dimitrifrom31 3 8,142 10-08-2013, 18:11
Last Post: iRoNinja

Forum Jump:


Users browsing this thread:
1 Guest(s)

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