//  written by:
//      ______        ____________ ________ _______
//     / ____/\      /  __  __   //  __   //  _   /\
//    / /\___\___   /  /\/_/ /  //  /_/  //  //  / /
//   / /_/ /\/__/\ /  / /\_\/  //  __   //  //  / /
//  /_____/ /\__\//__/ /   /__//__/ /__//__//__/ /
//  \_____\/      \__\/    \__\\__\/\__\\__\\__\/
//
//  Advanced Scripter 
// 
text === BUY BOT: ECONOMICAL NO ZOOM WEAPONS ===
echo === BUY BOT: ECONOMICAL NO ZOOM WEAPONS ===
alias siground "exec buybots/economical3"

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

alias hasnoprimary nop
alias weaponcheck  "if hasno xm1014 if hasno m3    if hasno mp5navy if hasno tmp  if hasno p90 if hasno mac10 weaponcheck2"
alias weaponcheck2 "if hasno ump45  if hasno ak47  if hasno sg552   if hasno m4a1 if hasno aug if hasno scout weaponcheck3"
alias weaponcheck3 "if hasno awp    if hasno g3sg1 if hasno sg550   if hasno m249 hasnoprimary"


// part1: primary weapon
alias part1 "alias hasnoprimary buysomething; weaponcheck"
alias buysomething "if is ct part1CT else part1T"

//(awp,sig,ak,p90,ump45,mp5,mac10)
alias part1T  "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"

//(awp,aug,m4,p90,ump,mp5,tmp)
alias part1CT  "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 has glock18 deagle else if money>= 500 if has glock18 usp"

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


