How to give yourself weapons in CS2
Run sv_cheats 1, then type give weapon_ak47 in the console to get an AK-47 without buying it. Any item class name works.
give
Hands you any weapon or item by its class name, without buying it.
give <item> Examples
give weapon_ak47 Get an AK-47.
give weapon_smokegrenade Get a smoke grenade.
Arguments
itemRequired- Item class name, such as
weapon_awporweapon_smokegrenade.
What it does
Use the weapon class name, such as weapon_ak47. Used in practice to get weapons and grenades without buying. On a normal server it only works with sv_cheats 1.
The game's own description: Give item to player. Arguments: <item_name>
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.