Skip to content

Instantly share code, notes, and snippets.

@yanneves
Last active January 25, 2019 22:48
Show Gist options
  • Save yanneves/cae8ad7bec7e35ebd701f664228370da to your computer and use it in GitHub Desktop.
Save yanneves/cae8ad7bec7e35ebd701f664228370da to your computer and use it in GitHub Desktop.
Garry's Mod Server Commands
banid <player_id>; "Add a user ID to the ban list"
banip <ip_address>; "Add an IP address to the ban list"
bot; "Add a bot"
bot_attack; "Shoot!"
bot_flipout; "When on, all bots fire their guns"
bot_mimic <player_name>; "Bot uses usercmd of player by index"
bot_zombie; "Brraaaaaiiiins"
changegamemode <gamemode>; "Start a map with named gamemode instead of the default"
changelevel <map>; "Change server to the specified map"
explode <player_name>; "Kills the player with explosive damage"
give <item_name>; "Give item to player"
listid; "Lists banned users"
listip; List IP addresses on the ban list"
listmodels; List loaded models"
maps *; "Displays list of maps"
quit; "Exit the engine"
restart; "Restart the game on the same level (add setpos to jump to current view position on restart)"
say <text>; "Display player message"
kick <player_name>; "Kick a player by name"
kickid <player_id>; "Kick a player by userid or uniqueid, with a message"
kill <player_name>; "Kills the player with generic damage"
killserver; "Shutdown the server"
writeid <player_id>; Writes a list of permanently-banned user IDs to banned_user.cfg
writeip <ip_address>; Save the ban list to banned_ip.cfg
user <player_name>; "Show user data"
users; "Show user info for players on server"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment