.setinfo _vgui_menus 0

alias clmenu_x  "echo &gclearing menu;.slot10;buyoption;later 0.3 .slot10"
alias clmenu    ".timeleft;later 0.3 clmenu_x"
alias nop       ";"

// Weapons
alias usp       ".buy; .menuselect 1; .menuselect 1;echo &rbought: &wusp"
alias glock18   ".buy; .menuselect 1; .menuselect 2;echo &rbought: &wglock"
alias deagle    ".buy; .menuselect 1; .menuselect 3;echo &rbought: &wdeagle"
alias p228      ".buy; .menuselect 1; .menuselect 4;echo &rbought: &wp228"
alias elite     ".buy; .menuselect 1; .menuselect 5;echo &rbought: &welite"
alias fiveseven ".buy; .menuselect 1; .menuselect 6;echo &rbought: &wfiveseven" 

alias mp5       ".buy; .menuselect 3; .menuselect 1;echo &rbought: &wmp5navy"
alias mp5navy   ".buy; .menuselect 3; .menuselect 1;echo &rbought: &wmp5navy"
alias tmp       ".buy; .menuselect 3; .menuselect 2;echo &rbought: &wtmp"
alias p90       ".buy; .menuselect 3; .menuselect 3;echo &rbought: &wp90"
alias mac10     ".buy; .menuselect 3; .menuselect 4;echo &rbought: &wmac10"
alias ump45     ".buy; .menuselect 3; .menuselect 5;echo &rbought: &wump4"

alias m3        ".buy; .menuselect 2; .menuselect 1;echo &rbought: &wm3"
alias xm1014    ".buy; .menuselect 2; .menuselect 2;echo &rbought: &wxm1014"

alias ak47      ".buy; .menuselect 4; .menuselect 1;echo &rbought: &wak47"
alias m4a1      ".buy; .menuselect 4; .menuselect 3;echo &rbought: &wm4a1"
alias sg552     ".buy; .menuselect 4; .menuselect 2;echo &rbought: &wsg552"
alias aug       ".buy; .menuselect 4; .menuselect 4;echo &rbought: &waug"
alias scout     ".buy; .menuselect 4; .menuselect 5;echo &rbought: &wscout"
alias awp       ".buy; .menuselect 4; .menuselect 6;echo &rbought: &wawp"
alias g3sg1     ".buy; .menuselect 4; .menuselect 7;echo &rbought: &wg3sg1"

alias para      ".buy; .menuselect 5; .menuselect 1;echo &rbought: &wpara"

//Items
alias fullvest  ".buy;.menuselect 8;.menuselect 1;.buy;.menuselect 8;.menuselect 2;echo &rbought: &wfullvest"

alias flashbang ".buy; .menuselect 8; .menuselect 3"
alias allflash  "flashbang; flashbang"
alias hegrenade ".buy; .menuselect 8; .menuselect 4"
alias smokegren ".buy; .menuselect 8; .menuselect 5"
alias allgran   "buyhe;buyflash;buysmoke;echo &rbought: &wgrenades"

alias defuse            ".buy; .menuselect 8; .menuselect 6"
//alias nvg             ".buy; .menuselect 8; .menuselect 7"

//Munition
alias ammo1     ".buy;.menuselect 6;echo &rbought: &wammo1"
alias ammo2     ".buy;.menuselect 7;echo &rbought: &wammo2"



// =========================================================================================
//     buy option (run/knife)
// =========================================================================================
alias buyoption "toknifeX"

alias toknife_0 "text Switch to Knife OFF;init toknife toknife_0;alias toknifeX nop          ;alias toknife_t toknife_1"
alias toknife_1 "text Switch to Knife ON ;init toknife toknife_1;alias toknifeX .weapon_knife;alias toknife_t toknife_0"
toknife_1


// =========================================================================================
//     grenade select toggles
// =========================================================================================

alias buyhe_0 "alias buyhe nop      ;text HE Grenades: 0;init buyhe buyhe_0;alias buyhe_t buyhe_1"
alias buyhe_1 "alias buyhe hegrenade;text HE Grenades: 1;init buyhe buyhe_1;alias buyhe_t buyhe_0"
buyhe_1

alias buyflash_0 "alias buyflash nop      ;text Flashbangs  :  0;init buyfl buyflash_0;alias buyflash_t buyflash_1"
alias buyflash_1 "alias buyflash flashbang;text Flashbangs  :  1;init buyfl buyflash_1;alias buyflash_t buyflash_2"
alias buyflash_2 "alias buyflash allflash ;text Flashbangs  :  2;init buyfl buyflash_2;alias buyflash_t buyflash_0"
buyflash_1

alias buysmoke_0 "alias buysmoke nop      ;text Smoke Gren. :  0;init buysm buysmoke_0;alias buysmoke_t buysmoke_1"
alias buysmoke_1 "alias buysmoke smokegren;text Smoke Gren. :  1;init buysm buysmoke_1;alias buysmoke_t buysmoke_0"
buysmoke_0
