In-game actions
Instead of console commands, you can use various in-game actions. Here are their descriptions and code-names (use them in your CS:GO scripts).
Attack +attack;
Secondary attack +attack2;
Reload weapon +reload;
Use +use;
Next Weapon invnext;
Previous Weapon invprev;
Next grenade invnextgrenade;
Next item invnextitem;
Switch weapon primary/secondary invnextnongrenade;
Switch to primary weapon slot1;
Switch to secondary weapon slot2;
Switch to knife slot3;
Switch to grenades slot4;
Switch to bomb slot5;
Last used lasting;
Drop Weapon drop;
Inspect Weapon +lookatweapon;
Activate buy menu buymenu;
Rebuy rebuy;
Show scoreboard +score.
For the movements, use the following commands (their meaning is quite obvious:
+forward;
+back;
+moveleft;
+moveright;
+jump;
+duck;
+left (to turn);
+right;
+speed (to walk).
Look at key binds - examples of simple