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: 219)

#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; } } } }

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

#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

#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.

#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?



Possibly Related Threads…
Thread Author Replies Views Last Post
  Help, server Admin largosik 0 3,177 02-02-2019, 18:09
Last Post: largosik
  Add a point shop to my server h1dexyz 1 4,375 03-04-2018, 22:36
Last Post: h1dexyz
  [Release] MW3 Server Addon Extensions master131 212 163,453 04-09-2017, 23:31
Last Post: huhu
Lightbulb Preview Weapon Classe For Infected Clasic Server groochu1982 0 3,493 02-19-2017, 08:35
Last Post: groochu1982
Exclamation Help HOW CAN I TURN OFF THE "CROSSHAIR" IN MY SERVER? Eliichong0 0 3,749 06-16-2016, 16:01
Last Post: Eliichong0
Bug Upload files to FTP server S3VDIT0 4 6,264 01-28-2016, 17:17
Last Post: S3VDIT0
Brick [Release] MW3 Server Administration Addon iRoNinja 5 10,898 11-10-2013, 15:46
Last Post: Casper
Tongue [Release] Mw3 Server Offsets Updater! barata 28 25,383 02-13-2013, 21:19
Last Post: 99IRock
Brick [Release] Updated server addon release (solid models) estebespt 51 39,906 12-10-2012, 20:24
Last Post: JariZ
  [Release] Entity Extension v1.1 master131 26 18,278 09-17-2012, 07:12
Last Post: [Z00MBY] Alex

Forum Jump:


Users browsing this thread:
1 Guest(s)

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