How To Admin With SourceMod
Before you do anything with the SourceMod Admin mod, you will need to bind a key to open the SourceMod Admin Menu. This can be any key you wish, however it is recommended you use one that you are not likely to accidentally press. To bind it to the k key, for example, you would type the following into your Console [~ key]
Unbind k (this will clear anything that may have been previously Binded to the k key
bind "k" "sm_admin" (Admin is the command used to bring up the SourceMod Admin menu under SourceMod in all supported Source engine games like Counter-Strike: Source, and Left 4 Dead).
If you already have an admin bind either to admin or ma_admin then you can use that too, we added a mod that will recognise those binds to open the admin menu.
The Admin Menu
Like Mani Admin, SourceMod uses an admin menu that can be opened using whatever key you have bound it to. The menu is the easiest way to use most of the admin commands and is navigated by selecting from a numbered set of options. So if you want to slay a player you would select the following:
Press 1 for Players Commands, then in the next menu press 1 Slay Player and then you will have a list of players that you can slay.
If there are more than 7 options to choose from you can access the next page by pressing 9 for next and go back by pressing 8. 0 is always exit, with one important exception. On the choose reason for ban menu, 0 is “own reason”, if you choose that anything you enter in chat will be given as the reason for the ban. If you are not careful you will hit 0 thinking it will exit and then you will ban someone for “bet t all”.
There are some layout changes from Mani, for example when you choose to ban a player you select the player and then how long you wish to ban them for. After you choose which player to ban you will then be asked to pick a reason why you are banning them. In Mani you choose the ban length and then the player.
What is in your admin menu will vary depending on what level of access you have been given, but it is easy to use and the commands are mostly self explanatory.
Auto Observe
Auto Observe has now been added to the admin menu, under the option “Auto Observe”, simply select a player and observe away. Although this does show the players name and SteamID you will still need to type status if making a demo as it can say “observing blah blah” while actually watching someone else.
SourceMod vs. Mani
The main difference between SourceMod (SM) and Mani is that you prefix SM console commands with sm_ and using Mani it is ma_. This means that you will need to change some of your binds, for example if you are currently using:
Ma_say No upper vent camping
You would need to change this to:
Sm_say No upper vent camping
If you are used to executing Mani commands via chat shortcuts, SourceMod has this feature too. To use the chat shortcut press y and then !command “player name or SteamID”, where command is whatever you wish to execute, for example
!kick “[SP-BOT] Kevin”
!ban “player name” 1440
The number after the player name represents the time in minutes you wish the ban to last for. 1440 is 24 hours, which is the longest guest admins can ban for.
You need to use the “” around the players name.
Freeze works slightly differently, a player is frozen until either unfrozen by an admin or when a set time expires (currently set to the max of 120 seconds).
Banning By SteamID
Unlike in Mani when banning by SteamID you need to put a # in front of the players ID, this allows SM to tell the difference between names and a players full SteamIDs.
Examples:
By chat - !ban “#STEAM_0:0:12345678” 1440
In Console – sm_ban “#STEAM_0:0:12345678” 1440
Executing commands on groups of players is slightly different, so rather than ma_slay #t it would now be sm_slay @t.
Admin Chat
There are various chat commands that allows an admin to communicate with players and other admins., these can either be typed in console or using a shortcut from chat. The most commonly used of these are:
Sm_say, this sends an admin message to all the players on the server. In console you can use this by typing “sm_say no spawn camping” minus the “” in console. The shortcut using chat is the same as in Mani, hit chat (default y) and then @ message.
Sm_chat, this sends a message just to other admins and is used in the same way as sm_say. The chat shortcut is hit team chat (default u) and then @ message.
Sm_psay, this sends a message to an individual player that only they will see and is used in console the same as the above commands. The chat shortcut is chat (y) and then @@ “Player name or SteamID” message. **Note that you cannot use the player number as you could with Mani. You can also use sm_psay to send messages to one team, for example in console sm_psay @ct Boobies! or in chat !psay @ct Boobies! This would send a message just to cts, the display to an admin would look like:
] sm_psay @ct Boobies!
[Message Sent to CT's]Boobies!
There are a couple of other chat commands but these cover the most commonly used ones.
Player Information
• sm_users - show connected clients (UserID,Admin?,IP,SteamID,Uptime,name)
• sm_rates - show clients rates (UserID,good?,rate,cl_cmdrate,cl_updaterate,c l_interp,name)
• sm_netstat - show clients network statistics (UserID,choke,loss,ping,in/out data rate,name)
• sm_who – Lists all the players and shows if they are an admin and what commands they have access to.
The Basic Commands
Can be found at: http://wiki.alliedmods.net/Admin_Commands_(SourceMod)
Or you can type sm_help into console, this brings up a list of commands (*note, this may be a list of all commands and you may not have access to some of them). It lists them in blocks of 10, to list the next 10 you would type sm_help 2 in console.
Most of the commands are the same as Mani commands, only with sm_ prefix instead of ma_.
They work in the same way that admin commands did in Mani, either by using the admin menu, entering directly into console or by using a chat shortcut.
Group Commands
@CT will select all Counter-Terrorists under Counter-Strike: Source
@T will select all Terrorists under Counter-Strike: Source
@ALIVE will select all players who are alive in any Source Mod
@DEAD will select all players who have died in any Source mod
@HUMAN will select all Human players, versus Humans and Bot’s
@BOT will select all Bot players, versus both Humans and Bot’s
@ALL will select all players in the server regardless of team or status
These can be used in place of the Name/SteamID in any command where that information may be required.
Another example would be in a server with bots, and players complaining about the bots. The following command could be used to clear them all out at once, without negotiating the menu system.
sm_kick @bot
This command would kick all bots at once.
These group commands do not work with chat shortcuts, only when entered via console. They also do not work for the admin say commands, for example sm_say @ct will not work.
Vote Questions
Along with the map vote in the admin menu you can also run question votes, these need to be entered in console. To run them you enter sm_vote “question” “answer1” “answer2” “answer3” and so on. For example:
Sm_vote “Which is the best cheese?” “Brie” “Cheddar” “Edam” “Aerosol”
To cancel a vote, enter sm_cancelvote in console.
New Features
Gag/Mute/Silence
Unlike Mani you have 3 options when muting a player, sm_gag prevents them from using chat messages, sm_mute prevents them from using their mic and sm_silence does both.
Spray Tracking/Remove and Admin Spray
SM comes with a spray tag tracker, just like Mani, simply point at a spray press “trace spray” and it will tell you who sprayed it and provide some punishment options.
Remove Spray allows you to remove a spray that you are looking at, ideal for those times when people think really nasty sprays are funny.
Admin Spray allows you to force players to use their spray, ideal for those times when you want to find out who thought using a really nasty spray was funny.
The spray options can be found in the admin menu under “Server Commands”.
Identify Player
This allows you to check if a player is an admin and if so, what level of admin they have. It can be found in the player management section of the admin menu.
This concludes the guide. If you have any questions or comments then please post on our forums. This guide will be updated should any significant changes be made to our admin set up.
Rename Player
Found under the player commands menu on the second page this allows to rename a player. So if someone has an inappropriate name and will not change it you can use this rather than kick or ban them. It works by randomizing the charachters in a players name.
Bot Control Menu
There is now a menu option for bot control, this allows you to kick, add, mute, restrict weapons that bots can use etc.
Join SpawnPoint for free to comment on this story. Have an account already? Login to comment.
Ndoors Releases "Lite" Client for Atlantica Online
EA SPORTS MMA TO FEATURE STRIKEFORCE AS A PREMIER LEAGUE
Cash-Back Campaign
New PC game release: 18 Wheels of Steel Extreme Trucker
Aeria Games Announces Grand Fantasia Closed Beta
Popular MMO '4Story' aims for new partnership at G-star 2009
BeTomorrow launches RocketBird for iPhone and iPodTouch
Twin Blades coming soon on iPhone and iPod Touch
European Weekend Offer: 15% on Top-Games
NEW STAR SOCCER 2010 - OUT NOW
King Arthur – The Role-playing Wargame
Blockstacking mayhem released on Facebook
LINK AND ZELDA JOIN FORCES IN THE LEGEND OF ZELDA: SPIRIT TRACKS
Age of Japan
SPAWNPOINT® and other related trademarks used are under license by PHXX, LLC and its related affiliates.
© 2009 PHXX Gaming Services LLC. All Rights Reserved.
Privacy Policy | Terms of Use
Nowi know how to be an admin just SpawenPoint has to submit me if they will......
nice I think it\'s even better than mani ...
wow this information is really helpful if i become admin ill have to read this a few more times.