CS-Nation

Covering the future of Counter-Strike
mousewheel menus
Making a Mousewheel Menu
Make a handy dandy Mousewheel menu that lets you buy stuff with a little push, easy when your lazy like me and don't feel like moving your hands from the mouse ;D. This script requires a basic knowledge of being able to create a buy alias. If your confidence isn't all that high about your abilities to create a buy script shake your butt on over to d0nk3t's Buy Script Tutorial and learn fast ;P

The Useful Aliases
These are the common aliases for this kind of menu, there used on almost every line...
alias "cd1" "clear; developer 1"
alias "e3" "echo ; echo ; echo "
alias "menu_left" "wep4"
alias "menu_right" "wep2"
alias "pick" "wep1"
alias "d0" "developer 0"
Clears all echos on the screen, and turns Developer On so that echos show up on-screen.
Three echos makes the menu appear as if its being refreshed instantaneously.
Moves the menu to the left one item, this command is realiased each time a new item is selected.
Moves the menu to the right one item, this command is realiased each time a new item is selected.
Chooses the current Item selected and performs an action, whether moving to a new category or buying an item.
Turns Developer Mode Off so that echos won't be shown on-screen.

Beginning the Menu
The first alias were going to define is the wep1 alias...
alias "wep1" "cd1; e3; echo ->Five-Seven<- MP5 AUG Desert Eagle ; d0; alias menu_left wep4; alias menu_right wep2; alias pick fiveseven"

For this alias to be complete you have to define the alias on the end. Its fairly obvious that this alias would buy a Five-Seven Pistol. These type of Menus are basically just giant Toggle/Cycle scripts.

The Rest of the Menu
They aliases are all similar in format...
alias wep2 "cd1; e3; echo Five-Seven ->MP5<- AUG Desert Eagle ; d0; alias menu_left wep1; alias menu_right wep3; alias pick hkmp5"
alias wep3 "cd1; e3; echo Five-Seven MP5 ->AUG<- Desert Eagle ; d0; alias menu_left wep2; alias menu_right wep4; alias pick steyraug"
alias wep4 "cd1; e3; echo Five-Seven MP5 AUG ->Desert Eagle<- ; d0; alias menu_left wep3; alias menu_right wep1; alias pick deagle"

As you can see the only thing the that changes between each alias are the arrows (-> <-), the aliases the menu_left and right change to, and the pick option at the end. These kind of menus are also k0ol, because you can make seperate categories like this.....

alias cat1 "cd1; e3; echo ->SMGs<- Shotguns Handguns ; d0; alias menu_left wep3; alias menu_right wep1; alias pick smgs1">

To do this all you have to is with the pick option modify it to instead of buying something, sending the alias to the 1st menu of the weapon category, in this case smgs1. Which should then open up a new menu similar to the ones we defined before...
alias smgs1 "cd1; e3; echo ->MP5<- UMP.45 TMP ; d0; alias menu_left wep3; alias menu_right smgs2; alias pick mp5"

- 0cT@goN