How to make an alias in CS2
Type alias prac "sv_cheats 1; sv_infinite_ammo 1" in your game console, then type prac to run both commands at once.
alias
Creates a shortcut name that runs one or more commands.
alias <name> "<commands>" Examples
alias prac "sv_cheats 1; sv_infinite_ammo 1; mp_roundtime_defuse 60" Type prac to set up practice.
Arguments
nameRequired- Shortcut name.
commandsRequired- Commands separated by semicolons, in quotes.
What it does
Lets you combine several commands under one name, often used in practice configs and binds. Run the alias by typing its name.
The game's own description: Alias a command.
Run it on your server
On a SLASHPLAY server, type it in the Console tab of the server page; the reply shows right under it. A value set there lasts until the server restarts. To keep it, add the line to game/csgo/cfg/server.cfg. New to this? Start a CS2 server first.
Your own
CS2 server.
From $0.03 an hour, only while it runs. New accounts get 6 free tokens.