//  written by:
//      ______        ____________ ________ _______
//     / ____/\      /  __  __   //  __   //  _   /\
//    / /\___\___   /  /\/_/ /  //  /_/  //  //  / /
//   / /_/ /\/__/\ /  / /\_\/  //  __   //  //  / /
//  /_____/ /\__\//__/ /   /__//__/ /__//__//__/ /
//  \_____\/      \__\/    \__\\__\/\__\\__\\__\/
//
//  Advanced Scripter 
// 
text === BUY BOT: BEST WEAPON (NoAwp) ===
echo === BUY BOT: BEST WEAPON (NoAwp) ===
alias siground "exec buybots/bestweapon2"

buyoption
later 0.5 "part1;buyoption"
later 0.7 "part2;buyoption"
later 0.9 "part3;buyoption"

// part1: primary weapon
alias part1 "if is ct part1CT else part1T"

alias part1T  "if money>= 3500 if hasno sg552 sg552 else part1T2"
alias part1T2 "if money>= 2500 if hasno ak47 ak47   else if money>= 2350 if hasno p90 p90  else part1T3"
alias part1T3 "if money>= 1700 if hasno ump45 ump45 else if money>= 1500 if hasno mp5navy mp5navy else part1T4"
alias part1T4 "if money>= 1400 if hasno mac10 mac10 else echo need at least &r1400$&a for mac10"

alias part1CT  "if money>= 3500 if hasno aug   aug   else part1CT2"
alias part1CT2 "if money>= 3100 if hasno m4a1 m4a1   else if money>= 2350 if hasno p90 p90     else part1CT3"
alias part1CT3 "if money>= 1700 if hasno ump45 ump45 else if money>= 1500 if hasno mp5navy mp5navy else part1CT4"
alias part1CT4 "if money>= 1250 if hasno tmp  tmp else echo need at least &r1250$&a for tmp"


// part 2: primary ammo, defuse + deagle (only if targeted weapon available)
alias part2 "ammo1;defuse;if money>= 650 if hasno deagle deagle"

// part 3: secondary ammo, grenades, vest
alias part3     "ammo2;gren+vest;clmenu"
alias gren+vest "allgran; if armor< 50 fullvest"


