<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.alliedmods.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Gh0stalker</id>
	<title>AlliedModders Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.alliedmods.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Gh0stalker"/>
	<link rel="alternate" type="text/html" href="https://wiki.alliedmods.net/Special:Contributions/Gh0stalker"/>
	<updated>2026-06-06T15:20:11Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.6</generator>
	<entry>
		<id>https://wiki.alliedmods.net/index.php?title=Admin_Commands_(SourceMod)&amp;diff=5231</id>
		<title>Admin Commands (SourceMod)</title>
		<link rel="alternate" type="text/html" href="https://wiki.alliedmods.net/index.php?title=Admin_Commands_(SourceMod)&amp;diff=5231"/>
		<updated>2007-10-21T18:01:34Z</updated>

		<summary type="html">&lt;p&gt;Gh0stalker: /* Basic Commands */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page lists all of the major admin commands in SourceMod.  &lt;br /&gt;
&lt;br /&gt;
'''Chat Triggers''': Remember that commands do not have to be entered through the console; they can be entered via chat triggers.  For example, saying &amp;quot;!ban bail&amp;quot; in chat will execute the same command as &amp;quot;sm_ban&amp;quot; and forward the output to chat.  You can also use &amp;quot;/&amp;quot; instead of &amp;quot;!&amp;quot; to suppress your command from being shown to users.&lt;br /&gt;
&lt;br /&gt;
'''Targetting Players''': There are a number of ways to target players:&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
 &amp;lt;li&amp;gt;name - The player will be targeted by a partial name match (multiple matches will report back an error).&amp;lt;/li&amp;gt;&lt;br /&gt;
 &amp;lt;li&amp;gt;#userid - If userid is numeric, the player will be targeted by their userid (found via the &amp;quot;users&amp;quot; command).&amp;lt;/li&amp;gt;&lt;br /&gt;
 &amp;lt;li&amp;gt;#name - If name is non-numeric, the player will be targeted by an exact name match.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Basic Commands=&lt;br /&gt;
These commands are found in the &amp;quot;basecommands&amp;quot; plugin.&lt;br /&gt;
&lt;br /&gt;
:{|&lt;br /&gt;
|- class=&amp;quot;t2th&amp;quot;&lt;br /&gt;
| Command&lt;br /&gt;
| Format&lt;br /&gt;
| Access&lt;br /&gt;
| Description&lt;br /&gt;
|- class=&amp;quot;t2td&amp;quot;&lt;br /&gt;
| sm_admin&lt;br /&gt;
|&lt;br /&gt;
| admin&lt;br /&gt;
| Displays the [[Admin Menu (SourceMod)|admin menu]].&lt;br /&gt;
|- class=&amp;quot;t2td&amp;quot;&lt;br /&gt;
| sm_kick&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;&amp;lt;#userid|name&amp;gt;&amp;lt;/nowiki&amp;gt; [reason]&lt;br /&gt;
| kick&lt;br /&gt;
| Kicks a player.&lt;br /&gt;
|- class=&amp;quot;t2td&amp;quot;&lt;br /&gt;
| sm_map&lt;br /&gt;
| &amp;lt;map&amp;gt;&lt;br /&gt;
| map&lt;br /&gt;
| Changes the current map.&lt;br /&gt;
|- class=&amp;quot;t2td&amp;quot;&lt;br /&gt;
| sm_rcon&lt;br /&gt;
| &amp;lt;argstring&amp;gt;&lt;br /&gt;
| rcon&lt;br /&gt;
| Executes the argument string via rcon.&lt;br /&gt;
|- class=&amp;quot;t2td&amp;quot;&lt;br /&gt;
| sm_cvar&lt;br /&gt;
| &amp;lt;cvar&amp;gt; [value]&lt;br /&gt;
| cvar&lt;br /&gt;
| Retrieves or changes a cvar value.  Protected cvars can only be accessed with rcon access, and sv_cheats can only be accessed with cheat access.&lt;br /&gt;
|- class=&amp;quot;t2td&amp;quot;&lt;br /&gt;
| sm_execcfg&lt;br /&gt;
| &amp;lt;filename&amp;gt;&lt;br /&gt;
| config&lt;br /&gt;
| Executes a config file (path not needed, but extension is).&lt;br /&gt;
|- class=&amp;quot;t2td&amp;quot;&lt;br /&gt;
| sm_reloadadmins&lt;br /&gt;
|&lt;br /&gt;
| config&lt;br /&gt;
| Refreshes the Admin cache from admin.cfg (Unknown if admin_simple.ini is refreshed, anyone confirm?)&lt;br /&gt;
|- class=&amp;quot;t2td&amp;quot;&lt;br /&gt;
| sm_who&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[#userid|name]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| admin&lt;br /&gt;
| Lists all users and their access rights, or a specific user's access rights.&lt;br /&gt;
|- class=&amp;quot;t2td&amp;quot;&lt;br /&gt;
| sm_ban&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;&amp;lt;#userid|name&amp;gt; &amp;lt;minutes|0&amp;gt; &amp;lt;/nowiki&amp;gt;[reason]&lt;br /&gt;
| ban&lt;br /&gt;
| Bans a client.&lt;br /&gt;
|- class=&amp;quot;t2td&amp;quot;&lt;br /&gt;
| sm_unban&lt;br /&gt;
| &amp;lt;steamid&amp;gt;&lt;br /&gt;
| unban&lt;br /&gt;
| Unbans a Steam ID.&lt;br /&gt;
|- class=&amp;quot;t2td&amp;quot;&lt;br /&gt;
| sm_addban&lt;br /&gt;
| &amp;lt;time&amp;gt; &amp;lt;steamid&amp;gt; [reason]&lt;br /&gt;
| rcon&lt;br /&gt;
| Adds a Steam ID to Source's ban list.&lt;br /&gt;
|- class=&amp;quot;t2td&amp;quot;&lt;br /&gt;
| sm_banip&lt;br /&gt;
| &amp;lt;time&amp;gt; &amp;lt;ip|#userid|name&amp;gt; [reason]&lt;br /&gt;
| rcon for ip, ban for player&lt;br /&gt;
| Adds an IP address to Source's ban list.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category:SourceMod Documentation]]&lt;/div&gt;</summary>
		<author><name>Gh0stalker</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.alliedmods.net/index.php?title=Installing_SourceMod&amp;diff=5230</id>
		<title>Installing SourceMod</title>
		<link rel="alternate" type="text/html" href="https://wiki.alliedmods.net/index.php?title=Installing_SourceMod&amp;diff=5230"/>
		<updated>2007-10-21T17:47:40Z</updated>

		<summary type="html">&lt;p&gt;Gh0stalker: /* Checking the Install */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Installing SourceMod is very simple, and it can be added with almost no configuration changes.&lt;br /&gt;
&lt;br /&gt;
=Prerequisites=&lt;br /&gt;
SourceMod requires [[SourceMM|Metamod:Source]] 1.4.2 or higher.  [http://www.sourcemm.net/ Click here] to visit the Metamod:Source homepage. Instructions to install SourceMM muanually can be found [http://wiki.alliedmods.net/index.php/Installing_SourceMM here].&lt;br /&gt;
&lt;br /&gt;
SourceMod will run on any mod built using the Source SDK.  It also supports &amp;quot;The Ship,&amp;quot; which uses the Source engine.&lt;br /&gt;
&lt;br /&gt;
=Uploading/Installing=&lt;br /&gt;
==Local Server==&lt;br /&gt;
To install SourceMod locally, simply extract the &amp;lt;tt&amp;gt;.zip&amp;lt;/tt&amp;gt; (Windows) or &amp;lt;tt&amp;gt;.tar.gz&amp;lt;/tt&amp;gt; (Linux) package to your mod folder (i.e. &amp;lt;tt&amp;gt;cstrike&amp;lt;/tt&amp;gt; for Counter-Strike, &amp;lt;tt&amp;gt;dod&amp;lt;/tt&amp;gt; for Day of Defeat, et cetera).&lt;br /&gt;
&lt;br /&gt;
Next, open the &amp;lt;tt&amp;gt;addons/metamod/metaplugins.ini&amp;lt;/tt&amp;gt; file with your favorite text editor (for example, notepad).  Add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;addons/sourcemod/bin/sourcemod_mm&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save and exit.&lt;br /&gt;
&lt;br /&gt;
==Remote Server==&lt;br /&gt;
To install SourceMod remotely, first extract the &amp;lt;tt&amp;gt;.zip&amp;lt;/tt&amp;gt; (Windows) or &amp;lt;tt&amp;gt;.tar.gz&amp;lt;/tt&amp;gt; (Linux) package to your local computer (for example, your Desktop).  You will see an &amp;lt;tt&amp;gt;addons&amp;lt;/tt&amp;gt; folder.  &lt;br /&gt;
&lt;br /&gt;
Using a tool such as [http://www.google.com/search?q=FTP FTP], locate your mod folder (i.e. &amp;lt;tt&amp;gt;cstrike&amp;lt;/tt&amp;gt; for Counter-Strike, &amp;lt;tt&amp;gt;dod&amp;lt;/tt&amp;gt; for Day of Defeat, et cetera).  Underneath this folder, you should have an &amp;lt;tt&amp;gt;addons&amp;lt;/tt&amp;gt; folder (if not, Metamod:Source is probably not installed).  From your local &amp;lt;tt&amp;gt;addons&amp;lt;/tt&amp;gt; folder, upload the entire contents to your remote &amp;lt;tt&amp;gt;addons&amp;lt;/tt&amp;gt; folder.  When done, your remote &amp;lt;tt&amp;gt;addons&amp;lt;/tt&amp;gt; folder should have a &amp;lt;tt&amp;gt;sourcemod&amp;lt;/tt&amp;gt; folder.&lt;br /&gt;
&lt;br /&gt;
Next, copy the &amp;lt;tt&amp;gt;addons/metamod/metaplugins.ini&amp;lt;/tt&amp;gt; file from FTP onto your computer.  Open it up with your favorite text editor (for example, notepad, or wordpad if you run into problems), and add the following line:&lt;br /&gt;
&amp;lt;pre&amp;gt;addons/sourcemod/bin/sourcemod_mm&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When done, save and exit.  Then, copy the file back to your server, overwriting the original &amp;lt;tt&amp;gt;addons/metamod/metaplugins.ini&amp;lt;/tt&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
If you have trouble with these steps, you need to get acquainted with FTP and server management.  However, you can also ask your server provider for help.  Some providers also have web interfaces for managing your server.&lt;br /&gt;
&lt;br /&gt;
=Checking the Install=&lt;br /&gt;
Your folder layout should look like:&lt;br /&gt;
*&amp;lt;tt&amp;gt;[mod]&amp;lt;/tt&amp;gt; - Your mod's folder&lt;br /&gt;
**&amp;lt;tt&amp;gt;addons&amp;lt;/tt&amp;gt;&lt;br /&gt;
***&amp;lt;tt&amp;gt;metamod&amp;lt;/tt&amp;gt; - Metamod:Source&lt;br /&gt;
***&amp;lt;tt&amp;gt;sourcemod&amp;lt;/tt&amp;gt; - SourceMod&lt;br /&gt;
&lt;br /&gt;
Once SourceMod is uploaded/copied and configured with Metamod:Source, restart your server completely.  If it is local, shut it down and restart it.  If it is remote, you may need to ask your server provider for help.  However, it is often safe to issue a &amp;quot;quit&amp;quot; command via [[rcon]], and most providers will automatically restart your server.&lt;br /&gt;
&lt;br /&gt;
First, in your [[server console]] (not client console), type:&lt;br /&gt;
&amp;lt;pre&amp;gt;meta list&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the install worked, you will see something like:&lt;br /&gt;
&amp;lt;pre&amp;gt;] meta list&lt;br /&gt;
-Id- Name                  Version     Author           Status  &lt;br /&gt;
[01] SourceMod             1.0.0.571   AlliedModders,   RUN     &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should then be able to use the SourceMod root console command, which can be invoked with simply:&lt;br /&gt;
&amp;lt;pre&amp;gt;sm&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;] sm version&lt;br /&gt;
 SourceMod Version Information:&lt;br /&gt;
    SourceMod Version: 1.0.0.571&lt;br /&gt;
    JIT Version: JIT (x86), 1.0.0.431&lt;br /&gt;
    JIT Settings: Generic 80486&lt;br /&gt;
    http://www.sourcemod.net/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Lastly, assuming you have already setup your administration user, you can test the in game menu by joining the server, and in the client console type the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;sm_admin&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should see a menu popup with all you options.&lt;br /&gt;
&lt;br /&gt;
=Troubleshooting=&lt;br /&gt;
If the install failed, you will generally see one of four symptoms.  &lt;br /&gt;
&lt;br /&gt;
==Metamod reports NOFILE or FAILED==&lt;br /&gt;
If &amp;quot;meta list&amp;quot; replies with something like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;] meta list&lt;br /&gt;
-Id- Name                  Version     Author           Status  &lt;br /&gt;
[01] -                     -           -                NOFILE  &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Most likely, either the files are not located in the correct place, or the file could not be loaded.  For more information, use the following command (except use the correct list number):&lt;br /&gt;
&amp;lt;pre&amp;gt;meta list 1&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Metamod lists no plugins==&lt;br /&gt;
If &amp;quot;meta list&amp;quot; replies with something like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;] meta list&lt;br /&gt;
-Id- Name                  Version     Author           Status  &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You forgot to add SourceMod to the &amp;lt;tt&amp;gt;addons/metamod/metaplugins.ini&amp;lt;/tt&amp;gt; file.&lt;br /&gt;
Or if that doesn't fix your problem, make sure you are using the correct build of Sourcemod (zip = windows, tar = linux).&lt;br /&gt;
&lt;br /&gt;
==Metamod says nothing==&lt;br /&gt;
If &amp;quot;meta list&amp;quot; has no reply at all, Metamod:Source is not properly installed. [http://wiki.alliedmods.net/index.php/Installing_SourceMM This wiki page] may provide you with clues on how to solve this problem.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Support=&lt;br /&gt;
See [[SourceMod Support]].&lt;br /&gt;
&lt;br /&gt;
[[Category:SourceMod Documentation]]&lt;/div&gt;</summary>
		<author><name>Gh0stalker</name></author>
		
	</entry>
</feed>