zero
10-27-2007, 06:12 PM
Here is a simple little Howto for the SourceMod Admin mod we're running on the TF2 server.
Admin Menu
First off, bind sm_admin to either a keyboard key or mouse button, this will display the admin menu so you can quickly execute basic commands. Open the console in game and run a bind command like this:
bind mouse5 sm_admin
I have a Razer Copperhead and bind the admin menu to the button towards the front on the left side, next to my thumb which is mouse5.
Warning: There is a bug or "feature" in how menus display in TF2 versus other Source-based games. The menus will disappear after only 4 seconds if you don't hit any keys. That goes for the admin, votes, or anything else that displays keyboard select menus. So binding the menu to a key helps you bring it up and use it before it disappears.
Using Console Commands
For every console command there are actually 3 ways to run them.
1)You can simply type the command out in the console itself.
sm_kick Vsaint Sorry making room for an admin :)
2)You can preceed the command with "/" to run the command in the chat window
/sm_setnextmap ctf_2fort
3)You can proceed the command with "!" to run the command in the chat window, but everyone will see the command you ran.
So if you're setting the next map, or banning someone it's an easy way to both run it and have everyone see what you did.
!sm_setnextmap cp_dustbowl
Chat Shortcuts
There are a couple of shortcuts for using the chat commands from the chat window as opposed to the console directly. Preceeding anything you type in the chat window with an "@" symbol will show that message to everyone on either team, even if you're dead or a specator.
@Anyone want a new map?
If you preceed a message in the chat window with "@@pattern" then a space and a message it will send that message to whoever's name matches that pattern. The pattern doesn't have to be a complete name but it has to be unique enough to only address 1 person.
@@tuck This is a private message
If you preceed a message with 3 "@"s, it will put the message n the center of the screen for everyone to see.
@@@Tucket is a dirty hacker
Admin Menu
First off, bind sm_admin to either a keyboard key or mouse button, this will display the admin menu so you can quickly execute basic commands. Open the console in game and run a bind command like this:
bind mouse5 sm_admin
I have a Razer Copperhead and bind the admin menu to the button towards the front on the left side, next to my thumb which is mouse5.
Warning: There is a bug or "feature" in how menus display in TF2 versus other Source-based games. The menus will disappear after only 4 seconds if you don't hit any keys. That goes for the admin, votes, or anything else that displays keyboard select menus. So binding the menu to a key helps you bring it up and use it before it disappears.
Using Console Commands
For every console command there are actually 3 ways to run them.
1)You can simply type the command out in the console itself.
sm_kick Vsaint Sorry making room for an admin :)
2)You can preceed the command with "/" to run the command in the chat window
/sm_setnextmap ctf_2fort
3)You can proceed the command with "!" to run the command in the chat window, but everyone will see the command you ran.
So if you're setting the next map, or banning someone it's an easy way to both run it and have everyone see what you did.
!sm_setnextmap cp_dustbowl
Chat Shortcuts
There are a couple of shortcuts for using the chat commands from the chat window as opposed to the console directly. Preceeding anything you type in the chat window with an "@" symbol will show that message to everyone on either team, even if you're dead or a specator.
@Anyone want a new map?
If you preceed a message in the chat window with "@@pattern" then a space and a message it will send that message to whoever's name matches that pattern. The pattern doesn't have to be a complete name but it has to be unique enough to only address 1 person.
@@tuck This is a private message
If you preceed a message with 3 "@"s, it will put the message n the center of the screen for everyone to see.
@@@Tucket is a dirty hacker