There are two types of client console commands. The first type are native to clanmod and can be executed by anybody with the appropriate access level. The second are the aliases defined in cm_aliases.cfg. An alias in ClanMod is a client-side shortcut that maps to a server side command. See cm_alias in the "Server Command Reference" section of the ClanMod Manual for more details on defining your own aliases. See the cm_aliases.cfg file on your server for the exact aliases defined on your system. See the entire "Server Command Reference" section of the ClanMod Manual for details on the server side commands that these aliases are executing.
Below are listed first the native commands available to admins and players and then the aliases. Aliases are broken down into sections based on the mod pack in which the aliases are defined.
The following format is used to describe the native commands:
- client_command
Brief description of the command.
Available to <access level>
- client_command = server_command
Brief description of the command.
These commands can be executed by admins from their client consoles. All files referenced in this section are in <mod_dir>/addons/clanmod.
- clanmodmenu
This command causes the ClanMod menu to be displayed on the client. Make sure you have the correct privileges to display this menu. If you do not have sufficient privileges, it will show only the publicly available functions. If the first page is not available, ClanMod will attempt to show the second page.
- clanmodmenu2
Calls the second page of ClanMod menu. This functions just like clanmodmenu above. If the second menu is not available, it will try to show the first.
- cm <server command>
This is the same as the rcon command but you don't need to set rcon_password. You can issue any command to the server. This command is defined using the cm_alias command in the cm_aliases.cfg file. By default, you must have the "O" flag to use this command.
- cm_demoname <name of prefix>
Set the prefix for the demo names. This is useful if you want to describe demos shortly. The default prefix is cm_demo. The rest of demo name contains the map name, the player's nick, and demo index. See the section "Record Demo Menu" under "Other Menu Items" for more details.
- cm_help
If the player is an admin, this will show the contents of the adminhelp.txt file. Otherwise, it will show the contents of the playerhelp.txt file. Either way, these will be displayed in a graphic window on the client. The files displayed can be set using the cm_adminhelpfile and cm_playerhelpfile cvars. See the cvars section for more details.
- cm_rules
This will display the contents of the file rules.txt in a graphic window on the client.
- say <parameter> <text>
Using the regular client "say" command (by default, bound to "y"), and prefixing your statement with one or more "@" symbols will allow you to take advantage of this feature. For bold text placed at various locations on the screen, use the following:
@ = Left side of screen @@ = Centre of screen @@@ = Bottom centre of screen
To colour the text, add one of the following letters after the "@":
- b = Blue
- g = Green
- j = Brown
- l = Green (light)
- n = Purple
- o = Orange
- p = Purple (light)
- r = Red
- s = Blue (light)
- y = Yellow
If you use @@@@, the text will will appear as regular chat text however, it will not indicate who said the message.
To speak only to a specific player, use @x where "x" is the id of the player want to speak to.
Examples of usage: Say "Hello everyone!" in green at the centre of the screen:
- say @@g Hello everyone!
- say_team <parameter> <text>
For chat between admins use the say_team (or messagemode2) command with an @ at the beginning. This will speak only to admins. If player wants to say something to an admin, he should perform a regular say his text with @ at the beginning.
These commands can be executed by any player on the server using the client console. They can also be aliased so that the player can just use "say" to execute them.
- clanmod_version
Shows info about ClanMod version and text from cvar cm_info in the player's console.
- cm_forgivetkcmd
Forgives the last teammate who killed you so that he won't be punished for the t/k.
- cm_nextmapcmd
Displays the next map in the mapcycle. Often aliased so that players can say "nextmap" to execute this command.
- cm_thetimecmd
Displays the current real time on the server. Often aliased so that players can say "thetime" to execute this command.
- cm_timeleftcmd
Displays time remaining on the current map. Often aliased so that players can say "timeleft" to execute this command.
- cm_votemapcmd
Displays a menu of all available maps for a vote. If there is more than one page, "9" goes to the next page and "0" returns to a previous page. Select a map by hitting the number next to the map. Often aliased so that players can say "votemap" to execute this command.
Available to "D" level (cancel voting):
- cvote = cm_cancelvote
Cancels the current vote in progress.
Available to "J" level (clanmodmenu2)
- clanmodmenu = clanmodmenu_cmd2
Will show the second menu to the calling player.
- cm_listplayer = cm_listplayer
Shows a list of players currently on the server. Admins are shown with "@" next to their name.
- menu = clanmodmenu_cmd2
This is a "say" command. If a player says "menu", this will show the second menu to that player.
Available to "K" level (kick)
- lp = cm_listplayer
Shows a list of players currently on the server. Admins are shown with "@" next to their name.
- cm_listplayer = cm_listplayer
Shows a list of players currently on the server. Admins are shown with "@" next to their name.
Available to "M" level (changelevel)
- cl <map> = changelevel <map>
Changes the map to <map>.
Available to "O" level (operators)
- clexec <parameters> = cm_clexec <parameters>
Causes a command to be executed on the targer client(s).
- cm <command> = <command>
Allows for generic commands to be sent to the server.
- cm_banid <mask> = cm_banid <mask>
Bans the player matching <mask>. See cm_banid server command for more info.
- cm_kick <mask> = cm_kick <mask>
Kicks the player matching <mask>. See cm_kick server command for more info.
- cm_listtask = cm_listtask:
Shows all tasks defined on the server.
Available to "S" level (server settings)
- cm_bury/cm_unbury
This will allow you to bury a player in the ground, using cm_unbury will reverse the effect of cm_bury
- cm_listadmin = cm_listadmin
Shows a list of admins with "@" next to those who are currently on the server.
- cm_gag/cm_ungag
Will allow you to gag a player, this will prevent him from using say/team_say, cm_ungang will reverse the effect of cm_gag
- la = cm_listadmin
Shows a list of admins with "@" next to those who are currently on the server.
- lps = cm_listplayer listplayer.txt
Shows a list of players currently on the server. Admins are shown with "@" next to their name. This alias also saves the list of players on the server in <mod_dir>/listplayer.txt.
- lt = cm_listtask
Shows all tasks defined on the server.
- menu = clanmodmenu_cmd2
This is a "say" command. I a player says "menu", this will show the information menu to that player.
- nopass = sv_password ""
Unlocks the server by removing the password
- pa = cm_pause
Pauses the game.
- pw <password> = sv_password <password>
Sets the server password to <password>.
- tl <number> = mp_timelimit <number>
Sets the map timelimit.
Available to "V" level (voting):
- votec <vote options> = cm_vote <vote options>
Starts a generic vote.
- votek <vote options> = cm_votekick <vote options>
Starts a kick vote.
- votem <vote options> = cm_votemap <vote options>
Starts a map vote.
Available to all players through "say"
- myid = say My name is &name&, wonid: &wonid&, and ip: &ip&" alsc
Says name, WON, and IP to everyone.
- timeleft = cm_timeleftcmd
Causes the server to say the timeleft on the current map.
- nextmap = cm_nextmapcmd
Causes the server to say the next map in the cycle.
- thetime = cm_thetimecmd
Causes the server to say the current time (in the server's time zone).
- votemap = cm_votemapcmd
Shows the player a map vote menu.
- clanmod = clanmod
Causes the server to say what version of clanmod is running.
- addbots <number> = mp_bots
Manualy adds a AHL bot
- kickbot <nick/Authid = kickbot
kicks a AHL bot
- addbot = mp_bots
Will add 1 extra AHL Bot, maximum bots are 20
- rm <check manual> = cm_restrictmenu
Can be used to restric access to buy menus
- tcm = mp_clan_match
Will turn mp_clan_match on and off
- smc = mp_clan_restartround 1
Will start the Clan match count down