View Single Post
Author Message
Chanz
Veteran Member
Join Date: Aug 2008
Location: Germany - Stuttgart
Old 07-24-2013 , 18:20   [ANY] Admin-Tools [work in progress][updated to work with any game]
Reply With Quote #1

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:

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
__________________
[ SourceModPlugins.org ][ My Plugins ]

Thank you for donations: [ Paypal ]

Video Tutorial (German): [ Gameserver & SourceMod Plugins mit HLSW verwalten ]

Last edited by Chanz; 02-02-2014 at 08:35.
Chanz is offline