AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY] Admin-Tools [work in progress][updated to work with any game] (https://forums.alliedmods.net/showthread.php?t=221646)

Chanz 07-24-2013 18:20

[ANY] Admin-Tools [work in progress][updated to work with any game]
 
Admin-Tools
Collection of mighty admin commands

Description:
First of all: This plugin is still in development, it contains many errors, it even can crash your server when used without care! So watch out and be sure to know what you do - you've been warned!

This plugin adds many admin commands and tries to be an single plugin replacement for all those one command plugins out there.
So this means, I've searched around the forum and added all the cool commands which can now be found in Admin-Tools.
Screenshots:
http://cloud-2.steampowered.com/ugc/...6.resizedimage http://cloud-3.steampowered.com/ugc/...6.resizedimage http://cloud-2.steampowered.com/ugc/...6.resizedimage
Requirements for server admins:
  • Sourcemod 1.5 or higher
Requirements for developers:
  • Sourcemod 1.5 or higher
  • Git & github.com account etc.
  • SMLIB:feature-pluginmanager (just clone the admin-tools repo, it contains the latest version)
Known Issues:
https://github.com/bcserv/admin-tools/issues
How to report issues:
Please, search what you'd like to report here first: https://github.com/bcserv/admin-tools/issues
You can't find it? Then continue to read the following - lets call it guide lines.
  1. What game are you running the plugin on. (CSS, HL2DM, TF2, etc...)
  2. What the problem is:
    • The server is crashing, lagging, etc.
    • The plugin isn't loading.
    • The plugin isn't working as you expect it.
    • ...
  3. Optional: What the server console prints, when you type the following into it without "" (if you can't access the server console directly use HLSW):
    1. "plugin_print"
    2. "meta list"
    3. "sm plugins list"
    4. "sm exts list"
  4. Search the latest error log (<moddir>/addons/sourcemod/logs/error_xxxxxx.log) that contains an error about this plugin.
Changelog:
https://github.com/bcserv/admin-tools/commits/master
Plugin Commands:

Code:

sm cmds admin-tools
[SM] Listing 46 commands for: Admin Tools
          [Name]            [Type]  [Help]
          sm_addoutput      admin        Adds an output to an entity. Like ent_fire <someentity> addoutput 'wait 1'
          sm_alias          admin        Creates a new alias command to shrink command chains down to a single command
          sm_armor          admin        Sets the armor of a target
          sm_armour        admin        Sets the armor of a target
          sm_balanceteam    admin        Balances the teams
          sm_bury          admin        Buries the given target
          sm_cash          admin        Set money for the given target
          sm_color          admin        Sets the render color of a target
          sm_connect        admin        Opens a connect box which the target can accept via F3 (by default)
          sm_deaths        admin        Sets the deaths of a target
          sm_debug          admin        Shows information about the entity you're looking at
          sm_disarm        admin        Removes targets weapon
          sm_event          admin        Issues a command when an event is fired
          sm_exec          admin        Execute command on target
          sm_extend        admin        Extends the current map
          sm_fexec          admin        Fake-execute command on target
          sm_firstperson    admin        Switches target to firstperson camera
          sm_future        admin        Issues a command in the future
          sm_fx            admin        Sets the render effects (fx) of a target
          sm_give          admin        Gives a item/weapon to a target
          sm_god            admin        Set god mode for the given target
          sm_health        admin        Sets the health of a target
          sm_hp            admin        Sets the health of a target
          sm_ice            admin        Freezes the given target
          sm_input          admin        Sends an input to an entity.
          sm_ksay          admin        Sends a message to the key hint box
          sm_maxhealth      admin        Sets the max health of a target
          sm_mhp            admin        Sets the max health of a target
          sm_money          admin        Set money for the given target
          sm_point          admin        Creates an pointing line in the direction you're looking at
          sm_reloadmap      admin        Reloads the current map
          sm_remove        admin        Fades out and kills the aimed entity (ignores clients)
          sm_render        admin        Sets the render mode of a target
          sm_rendercolor    admin        Sets the render color of a target
          sm_renderfx      admin        Sets the render effects (fx) of a target
          sm_rendermode    admin        Sets the render mode of a target
          sm_respawn        admin        Respawns target
          sm_score          admin        Sets the score of a target
          sm_scrambleteam  admin        Scrambles the teams
          sm_setspeed      admin        Set speed for the given target
          sm_speed          admin        Set speed for the given target
          sm_suitpower      admin        Sets the armor of a target
          sm_swapteam      admin        Swaps the teams
          sm_team          admin        Moves the target into the given team
          sm_thirdperson    admin        Switches target to thirdperson camera
          sm_time          admin        Issues a command in the future

Some neat usage examples:
Code:

// server.cfg: First round on a map is knife only (CSS or CSGO).
sm_event round_start/2 "sm_disarm @all; sm_give @all knife"

// server.cfg: An admin with access to sm_ban can use sm_knifeonly to turn the current round into a knife only round.
sm_alias sm_knifeonly sm_ban client "sm_disarm @all; sm_give @all knife"
 
// server.cfg: Simple advertations via the keyhintbox:
sm_future 60 0 ads
alias ads ads1
alias ads1 "sm_ksay @all 10 Welcome player\nhave fun!; alias ads ads2"
alias ads2 "sm_ksay @all 10 This server is\nusing Admin-Tools.; alias ads ads3"
alias ads3 "sm_ksay @all 10 Please be nice and\nrespect the admins!; alias ads ads4"
alias ads4 "sm_ksay @all 10 You can use !kill\nif you are stuck.; alias ads ads5"
alias ads5 "sm_ksay @all 10 You know how to play?\nThen help rookies - thanks!; alias ads ads1"

// server.cfg: You can restart the server in 5 seconds with sm_restartserver 5
sm_alias sm_restartserver z server sm_future #1 1 _restart

// server.cfg: You can use sm_rr 5 to restart the game in 5 seconds
sm_alias sm_rr sm_kick server mp_restartgame #1

Source code and Versions:
https://github.com/bcserv/admin-tools
Download:
https://github.com/bcserv/admin-tools/releases/
Installation:
Drag and drop the .smx file into your plugins folder (addons/sourcemod/plugins)
Credits:
Berni - He developed the very early version of Admin-Tools! Well done!
All the plugin authors that created the commands I've just assimilated :comply:

Franc1sco 07-24-2013 18:27

Re: [CSS] Admin-Tools (work in progress)
 
Looks good, could be a good substitute of advanced commands

checkster 07-30-2013 03:30

Re: [CSS] Admin-Tools (work in progress)
 
Quote:

Originally Posted by Franc1sco (Post 1998024)
Looks good, could be a good substitute of advanced commands

I was just about to say that. :bacon!:

micazoid 07-30-2013 04:33

Re: [CSS] Admin-Tools (work in progress)
 
Quote:

Originally Posted by Franc1sco (Post 1998024)
Looks good, could be a good substitute of advanced commands

It might, if it will also run for other games not only CSS ;)

Chanz 07-30-2013 08:49

Re: [CSS] Admin-Tools (work in progress)
 
Well it already works for other games, but its not tested. Some things will break without doubt, like sm_respawn which uses only the css stocks from sourcemod to respawn a player - means it will crash on a tf2 server as example.

By the way, one of this plugins goodies is the sm_alias command.
Spoiler

You can put the following into your server.cfg:
Code:

sm_alias sm_joke anyone server sm_play @all /joke.wav
After a map change anyone could type !joke into the chat and the /joke.wav is played.

Also very interesting and fun to play with sm_event and sm_future.

checkster 07-30-2013 11:08

Re: [CSS] Admin-Tools (work in progress)
 
About to mess around a litle with this plugin on my test server, see what will/can crash it etc, its a pretty "vanilla" sm server. If I see annything I think can help you, I'll pm you or post it Chanz.

Allower 09-11-2013 14:00

Re: [CSS] Admin-Tools (work in progress)
 
Can you update this for HL2: DM? may be DoD: S? I'll see this is pretty nice plugin.

Chanz 10-15-2013 14:05

Re: [CSS] Admin-Tools (work in progress)
 
Updated to v1.2
This release enables this plugin to run on all games.
Be aware that some commands are not supported on some games.

Download:
https://github.com/bcserv/admin-tools/releases/

Lord_Rofl 10-16-2013 14:16

Re: [CSS] Admin-Tools (work in progress)
 
Nice Plugin :)

Problem: Wenn ich ingame ein alias setze bleibt er nach Mapwechsel bestehen.
Ist das so gewollt? Wo kann ich sie wieder löschen?

Maybe add sm_teleport; sm_tp?

Chanz 10-24-2013 11:10

Re: [ANY] Admin-Tools [work in progress][updated to work with any game]
 
At the moment, yes its intended to keep aliases after a map change. You can delete an alias by overwriting the alias. For example: sm_alias sm_mycommand anyone client echo This command is deactivated

I've got an other plugin that handles all teleportation which I didn't release yet. Give me some time or use other teleport plugnis. :-)


All times are GMT -4. The time now is 07:55.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.