Counter Strike: Source. Admin commands.

  • email Email to a friend
  • print Print version
  • Add to your del.icio.us del.icio.us
  • Digg this story Digg this

Did you enjoy this article?

(total 25 votes)

Newsletter

Subscribe to newsletter:

Poll: memory

How much memory in your computer do you have?
Adjust font size: Decrease font Enlarge font
image
Counter Strike logo
 

Admin Commands: Rcon Commands, Mani Admin, and Server Cvars

 
Using the console to execute Rcon commands, change server variables (Cvars) and using Mani’s Admin Plugin as an essential function of any server admin.
 
Tips for running a server that players will return to frequently:
  1. Be sure to warn players if they are breaking rules. A player that is punished but does not know what he/she did wrong is more likely to break a rule in the future.
  2. If a player is compliant and offers to stop breaking the rule hold off on punishment until a repeat offense is made.
  3. If a player is not compliant, issue an appropriate punishment and explain why you issued that punishment.
  4. For repeat offenders, multiple punishments or more harsh punishments may be necessary to stop the offenses.
  5. Players that continually break multiple rules should be kicked from the server. If they rejoin, ban them for a small period of time such as 5mins.
  6. Permanent bans should only be used for players known to continually break the rules, use cheats or hacks, or cause server damage.
  7. Stay cool! Although it may be tempting to simply ban a player that is really getting on your nerves, remember that if you ban everyone that breaks a rule, you will have nobody on your server.
     
Notes:
  1. Any string placed in brackets “< >” should not be placed in brackets when entered in the console.
  2. Rcon commands need rcon or ma_rcon placed before the commands.
  3. Mani Mod commands run from chat need @ before the command with no space between the @ and the command.
  4. Server and bot commands need to be run through rcon.
  5. The value shown in the example is the maximum value that can be entered unless otherwise noted.
  6. For times , a time of 0 results in either no limit or disabled depending on the variable, or a permanent ban in the case of ban time
  7. For on/off variables that use a number <1/0>, 1 indicates the parameter/option is enabled and 0 indicates it is disabled.
  8. For player names spaces cannot be used and partial names can be entered.
  9. The following wildcards can be used in place of player names: #all, #ct, #t, #dead, #bot.

Rcon CommandsGame ParametersCommand ExampleDescription
Change levelchangelevel changelevel de_dustChanges the server map to the map entered
Restart gamemp_restartgame mp_restartgame 10Restarts the game in the number of seconds entered
Enable Friendly firemp_friendlyfire <1/0>mp_friendlyfire 1Enables or disables friendly fire (not available in ZM)
Limit roundsmp_roundlimit mp_roundlimit 10Sets the number of rounds before the server changes map
Set round timemp_roundtime mp_roundtime 15Sets the amount of time in minutes each round lasts
Limit map time mp_timelimit mp_timelimit 0Sets the amount of time before the server changes map
Set starting moneymp_startmoney mp_startmoney 16000Sets the amount of money players start out with
Set buy timemp_buytime mp_buytime 3.0Sets the time to buy guns in seconds (FP value)
Set bomb timermp_c4timer mp_c4timer 90Sets the time on the bomb timer in seconds
Set freeze timemp_freezetime mp_freezetime  15Sets the time players are frozen to buy guns
Enable Flashlightsmp_flashlight <1/0>mp_flashlight 1Enables or disables the use of flashlights
Enable hostage-killer penaltiesmp_hostagepenalty mp_hostagepenalty 4Autokicks players that kill the number of hostages specified
Enable team-killer penaltiesmp_tkpunish <1/0>mp_tkpunish 1Enables the forcing of a team killer to sit out a round

Rcon Commands Player ManagementCommand ExampleDescription
List playersstatusstatusLists all the players including bots currently in game
Kick a player (name)kick kick Kicks a player with the specified name from the server
Kick a player (steam ID)kickid Reasonkickid STEAM_0:0:00000000 You have been kicked for spawn killingKicks a Steam ID with an optional reason
Ban a player (steam ID)banid banid 60 STEAM_0:0:00000000Bans a Steam ID for a specified time in minutes
Send message from adminsay Messagesay Hello worldSend a message to all players from the server admin


Mani Mod Game ParametersCommand ExampleDescription
Change levelma_map ma_map de_dustChanges the server map to the map entered
List mapsma_maplistma_maplistLists all the maps the plug-in sees in the maplist.txt file
Balance teamsma_balancema_balanceBalances the teams according to mp_limitteams
Run Rcon commandma_rcon ma_rcon kickidRuns Rcon commands without the Rcon password
Show game typema_gamema_gameShows the current game with a description
Restrict to knives onlyma_knivesma_knivesRestricts weapons so no guns can be purchased
Restrict to pistols onlyma_pistolsma_pistolsRestricts weapons so only pistols can be purchased
Restrict to shotguns onlyma_shotgunsma_shotgunsRestricts weapons so only shotguns can be purchased
Restrict snipersma_nosnipersma_nosnipersRestricts weapons so no snipers can be purchased
Restrict weaponma_restrict ma_restrict awp 6Restricts specified weapon to specified number per team
Unrestrict a weaponma_unrestrict ma_unrestrict awpUnrestricts the specified weapon so it can be purchased
Unrestrict all weaponsma_unrestrictallma_unrestrictallUnrestricts all weapons so all restrictions are lifted
Create a map votema_vote ma_vote end zm_roy_the_ship zm_roy_highway zm_roy_zombieranch_nightCreates a map vote for players to vote on (also extend map)
Create a question votema_votequestion “” ma_votequestion “Change maps?” Yes NoCreates a question vote for players to vote on
Create an rcon votema_votercon <”question”> ma_votequestion “Kick unnamed?” kick unnamedCreates an rcon vote for players to vote on
Enable war modema_war <1/0>ma_war 1Enables or disables war mode (toggles if no value is supplied)
Mani ModPlayer ManagementCommand ExampleDescription
List playersma_usersma_usersLists all the players currently in the game (doesn’t list bots)
List adminsma_adminsma_adminsLists all the admins and their restrictions currently in the game
Send message from adminma_say Messagema_say Hello worldSend a message to all players from admin to appear in chat
Send message from adminma_csay Messagema_csay Hello worldSend a message to all players to appear at the screen center
Send message from adminma_msay Messagema_msay 0 #all Hello worldSend a message to the specified player for the specified time
Send message from admin to playerma_psay Messagema_psay unnamed HelloSends a message to the specified player to appear in chat
Send message to other adminsma_chat Messagema_chat HelloSends a message to all admins to appear in chat
Show your current positionma_positionma_positionShows your current position on the map in x,y,z coordinates
Save your current positionma_savelocma_savlocSaves your current position for use with teleport
Kick a playerma_kick ma_kick STEAM_0:0:00000000Kicks the specified name or Steam ID from the server
Ban a playerma_ban ma_ban STEAM_0:0:00000000 60Bans the specified name or Steam ID from the server
Unban a playerma_unban “”ma_unban “STEAM_0:0:00000000"Unbans the specified Steam ID from the server
Slay a playerma_slay ma_slay unnamedSlays the specified player (not available in ZM)
Slap a playerma_slap ma_slap unnamed 99Slaps the specified player with the specified damage
Blind a playerma_blind ma_blind unnamed 255Blinds the specified player with an amount from 0 - 255
Freeze a playerma_freeze ma_freeze unnamedFreezes the specified player so they cannot move or shoot
Drug a playerma_drug <1/0>ma_drug unnamed 1Drugs the specified player so their z axis changes every 1.5 sec
Teleport a playerma_teleport ma_teleport unnamedTeleports the specified player to the input coordinates
Burn a playerma_burn ma_burn unnamedBurns the specified player for 30 seconds (no way to unburn)
Turn a player into a time bombma_timebomb ma_timebomb unnamedSlays the specified player and nearby players after 10 sec
Turn a player into a fire bombma_firebomb ma_firebomb unnamedBurns the specified player and nearby players after 10 sec
Turn a player into a freeze bombma_freezebomb ma_freezebomb unnamedFreezes the specified player and nearby players after 10 sec
Turn a player into a beaconma_beacon ma_beacon unnamedTurns the specified player into an audiovisual beacon
Put player in godmodema_noclip ma_noclip unnamedAllows the specified player to fly and not take any damage
Give a player weaponsma_give weapon_ma_give unnamed weapon_m4a1Gives the specified player the specified weapon/equipment
Give a player cashma_givecash ma_give unnamed 16000Gives the specified player the specified amount of cash
Set a player’s healthma_sethealth ma_sethealth unnamed 999999Sets the specified player’s health to the specified number
Set a player’s colorma_color ma_color unnamed 255 255 255 255Sets the specified player’s color to the specified parameters
Mute a player’s chatma_mute ma_mute unnamedMutes the specified player so they can’t talk in chat
Mute/gimp a playerma_gimp ma_gimp STEAM_0:0:00000000Mutes both chat and voice from the specified player
Run a client execute commandma_cexec “”ma_cexec unnamed “say hello world”Runs the command through the specified client’s console
Swap a player to the opposite teamma_swapteam ma_swapteam unnamedSwaps the specified player to the other team (not in ZM)
Swap a player to the spectatorsma_specma_spec unnamedSwaps the specified player to the spectators

Server CommandsServer ParametersCommand ExampleDescription
Set a password for your serversv_passwordsv_password passwordSets a password that needs to be entered for players to join
Enable everyone to hear voicesv_alltalk <0/1>sv_alltalk 1Toggles whether all players or just team players can hear mics
Enable file consistency checkssv_consistency <0/1>sv_consistency 1Toggles whether the server checks critical files for consistency
Enable server cheatssv_cheats <0/1>sv_cheats 1Enables all players to change certain parameters thru rcon
Set gravitysv_gravity sv_gravity 800Sets the gravity for objects and people Default = 800
Set bouncesv_bounce sv_bounce 30Sets the amount of bounce on impact with vertical objects
Set frictionsv_friction sv_friction 4Sets the friction for objects and people Default = 4
Set the max velocity of objectssv_maxvelocity sv_maxvelocity 3500Sets the max velocity for moving objects Default = 3500
Set the max speed of playerssv_maxspeed sv_maxspeed 320Sets the max speed players can walk/run at
Set prop push-away forcesv_pushaway_force sv_pushaway_force 99999999999999Sets how hard it is for players to push props in the map
Set the maximum prop push-away forcesv_pushaway_max_force sv_pushaway_max_force 9999999999999999999Sets the maximum force a player can apply to a prop
Enable voicesv_voiceenable <0/1>sv_voiceenable 1Toggles the use of in-game voice with microphones
Set the server voice codecsv_voicecodecsv_voicecodec speedexSelects the codec (DLL) that the server uses for voice

Server CommandsBot parameters Command ExampleDescription
Add a botbot_addbot_addAdds a bot to the game to join the next round
Add a bot to a specific teambot_add bot_add ctAdds a bot to the specified team to join the next round
Kick a botbot_kick bot_kick TomKicks the specified bot, or all bots if none is specified
Kick a bot when a player joinsbot_auto_vacate <1/0>bot_auto_vacate 1Configures the bots so one leaves when a human player joins
Set difficultybot_difficulty bot_difficulty 3Sets the bots’ difficulty levels from 0 to 3
Set radio usebot_chatter bot_chatter normalSets the allowed usage of the radio by bots
Allow bots to perform human tasksbot­_defer_to_human <1/0>bot_defer_to_human 1Allows bots to perform human tasks with humans alive
Force bots to wait for human playersbot_join_after_player <1/0>bot_join_after_player 1Forces bots to wait for human players (0 is not recommended)
Kill a botbot_kill Bot_kill TomKills the specified bot, or all bots if none is specified
Set the bots’ prefixbot_prefix bot_prefix [BOT]Puts the specified prefix in front of all bot names
Set the bot quotabot_quota bot_quota 8Sets the number of bots allowed on the server
Set the bot quota modebot_quota_mode bot_quota_mode normalSets the mode; if set to “full”, bots leave as humans join
Allow bots to follow humansbot_auto_follow <1/0>bot_auto_follow 1Allows bots with high  co-op to follow human players
Allow bots to go rougebot_allow_rouges <1/0>bot_allow_rouges 1Allows bots to go rouge, ignoring mission objectives
Force bots to be inactivebot_zombie <1/0>bot_zombie 1Forces bots to stand still and not attack (sv_cheats 1)
Force bots to freezebot_freeze <1/0>bot_freeze 1Forces bots to stand frozen
Allow bots to use all weaponsbot_all_weapons Allows bots to purchase and use all weapons available
Force bots to use pistolsbot_pistols_onlybot_pistols_onlyForces bots to purchase only pistols
Force bots to use knivesbot_knives_onlybot_knives_onlyForces bots to not buy any weapons and not use their pistols
Force bots to use snipersbot_snipers_onlybot_snipers_onlyForces bots to purchase only sniper rifles
Allow bots to use grenadesbot_allow_grenades <1/0>bot_allow_grenades 1Allows/disallows bots to buy and use grenades
Allow bots to use pistolsbot_allow_pistols <1/0>bot_allow_pistols 1Allows/disallows bots to buy and use pistols
Allow bots to use submachine gunsbot_allow_sub_machine_guns <1/0>bot_allow_sub_machine_guns 1Allows/disallows bots to buy and use submachine guns
Allow bots to use machine gunsbot_allow_machine_guns <1/0>bot_allow_machine_guns 1Allows/disallows bots to buy and use machine guns
Allow bots to use riflesbot_allow_rifles <1/0>bot_allow_rifles 1Allows/disallows bots to buy and use rifles

left logo
Researched and compiled by TheMatt of the techsupportforum.com

© 2008 TheMatt & www.techsupportforum.com
right logo

  • email Email to a friend
  • print Print version
  • Add to your del.icio.us del.icio.us
  • Digg this story Digg this

Post your comment comment Comments (0 posted)