Plugin Commands: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
 
m (→‎Usage: unpreified)
Line 7: Line 7:
  {{syntax|plugin_load <plugin>}}
  {{syntax|plugin_load <plugin>}}


<code><plugin></code> is a DLL or SO file that rests in the addons directory, you must *NOT* put in the file extension when using plugin_load.
<code><plugin></code> is a DLL or SO file that rests in the addons directory, you must *NOT* put in the file extension when using plugin_load.
 
==plugin_print==
==plugin_print==
'''plugin_print''' is a server side command that displays the currently loaded plugin. This is used alongside [[plugin_unload]] to unload a plugin.
'''plugin_print''' is a server side command that displays the currently loaded plugin. This is used alongside [[plugin_unload]] to unload a plugin.

Revision as of 20:51, 19 May 2006

The following commands are server commands that are meant to be executed by the host in order to control plugins.

plugin_load

plugin_load is used to load a plugin after the server is started (some plugins may not work, or cause instability when doing this).

Usage

To use it you must input the following:

Syntax: plugin_load <plugin>

<plugin> is a DLL or SO file that rests in the addons directory, you must *NOT* put in the file extension when using plugin_load.

plugin_print

plugin_print is a server side command that displays the currently loaded plugin. This is used alongside plugin_unload to unload a plugin.

Usage

Syntax: plugin_print

Example of output:

Loaded plugins:
---------------------
0: "Detox Server Plugin v0.91"
---------------------

plugin_unload

plugin_unload is used to unload a loaded plugin (depending on the plugin this may be unstable and cause a server to crash.

Usage

After using plugin_print to determin plugin ID's if you want to unload a plugin you must type the following.

Syntax: plugin_unload <id>

You will get a confirmation message as follows:

Unloaded plugin "<id>"