AMXX Menu Generator is a program that allows both new and experienced programmers to generate a menu for their AMX Mod X plugin. This program allows customization of nearly every menu option available. The generator will generate a fully operational plugin if you enter everything correctly. Please note that this is my first program I've ever built, so please point out any bugs you may find. Also, suggestions are always welcome!
Features:
Define menu name
Define menu handler name
Decide if menu has exit option
Change items per page in menu
Change back button name
Change next button name
Change exit button name
Define no colors on menu
Define color of numbers on menu
Option of choosing to display/destroy menu after item is pressed
1.3 - 5/31/2013
- Fixed small bugs
- Added option to display menu again
- Changed menu_destroy to menu_cancel since this generator does not create dynamic menus
1.2 - 5/30/2013
- Optimized code
- Added save .sma option
- Made dropdowns non-editable
- Fixed bug where leaving button names blank declared as "" (null)
- Added scrollbar to menu item text box
- Items per page field will filter out any non-numeric characters
- Made "#include <amxmisc>" string add to plugin only if admin level specified
- Fixed confusion between no color number and colored numbers
- Various changes in appearence including banner tweak and tab effects
- Changed output box's font to Lucidia console for better readability
- Widened output box and entire window
switch(item)
{
case 0: client_print(id, print_chat, "You have selected a");
case 1: client_print(id, print_chat, "You have selected b");
case 2: client_print(id, print_chat, "You have selected c");
case 3: client_print(id, print_chat, "You have selected d");
case 4: client_print(id, print_chat, "You have selected e");
case 5: client_print(id, print_chat, "You have selected f");
case 6: client_print(id, print_chat, "You have selected f");
case 7: client_print(id, print_chat, "You have selected g");
case 8: client_print(id, print_chat, "You have selected h");
case 9: client_print(id, print_chat, "You have selected i");
case 10: client_print(id, print_chat, "You have selected j");
case 11: client_print(id, print_chat, "You have selected k");
case 12: client_print(id, print_chat, "You have selected l");
case 13: client_print(id, print_chat, "You have selected m");
case 14: client_print(id, print_chat, "You have selected n");
case 15: client_print(id, print_chat, "You have selected o");
case 16: client_print(id, print_chat, "You have selected p");
case 17: client_print(id, print_chat, "You have selected q");
case 18: client_print(id, print_chat, "You have selected r");
case 19: client_print(id, print_chat, "You have selected s");
case 20: client_print(id, print_chat, "You have selected t");
case 21: client_print(id, print_chat, "You have selected u");
case 22: client_print(id, print_chat, "You have selected v");
case 23: client_print(id, print_chat, "You have selected w");
case 24: client_print(id, print_chat, "You have selected x");
case 25: client_print(id, print_chat, "You have selected y");
case 26: client_print(id, print_chat, "You have selected z");
case 27: client_print(id, print_chat, "You have selected 0");
case 28: client_print(id, print_chat, "You have selected 1");
case 29: client_print(id, print_chat, "You have selected 2");
case 30: client_print(id, print_chat, "You have selected 3");
case 31: client_print(id, print_chat, "You have selected 4");
case 32: client_print(id, print_chat, "You have selected 5");
case 33: client_print(id, print_chat, "You have selected 6");
case 34: client_print(id, print_chat, "You have selected 7");
case 35: client_print(id, print_chat, "You have selected 8");
case 36: client_print(id, print_chat, "You have selected 9");
case 0: client_print(id, print_chat, "You have selected a");
case 1: client_print(id, print_chat, "You have selected b");
case 2: client_print(id, print_chat, "You have selected c");
case 3: client_print(id, print_chat, "You have selected d");
case 4: client_print(id, print_chat, "You have selected e");
case 5: client_print(id, print_chat, "You have selected f");
case 6: client_print(id, print_chat, "You have selected f");
case 7: client_print(id, print_chat, "You have selected g");
case 8: client_print(id, print_chat, "You have selected h");
case 9: client_print(id, print_chat, "You have selected i");
case 10: client_print(id, print_chat, "You have selected j");
case 11: client_print(id, print_chat, "You have selected k");
case 12: client_print(id, print_chat, "You have selected l");
case 13: client_print(id, print_chat, "You have selected m");
case 14: client_print(id, print_chat, "You have selected n");
case 15: client_print(id, print_chat, "You have selected o");
case 16: client_print(id, print_chat, "You have selected p");
case 17: client_print(id, print_chat, "You have selected q");
case 18: client_print(id, print_chat, "You have selected r");
case 19: client_print(id, print_chat, "You have selected s");
case 20: client_print(id, print_chat, "You have selected t");
case 21: client_print(id, print_chat, "You have selected u");
case 22: client_print(id, print_chat, "You have selected v");
case 23: client_print(id, print_chat, "You have selected w");
case 24: client_print(id, print_chat, "You have selected x");
case 25: client_print(id, print_chat, "You have selected y");
case 26: client_print(id, print_chat, "You have selected z");
case 27: client_print(id, print_chat, "You have selected 0");
case 28: client_print(id, print_chat, "You have selected 1");
case 29: client_print(id, print_chat, "You have selected 2");
case 30: client_print(id, print_chat, "You have selected 3");
case 31: client_print(id, print_chat, "You have selected 4");
case 32: client_print(id, print_chat, "You have selected 5");
case 33: client_print(id, print_chat, "You have selected 6");
case 34: client_print(id, print_chat, "You have selected 7");
case 35: client_print(id, print_chat, "You have selected 8");
case 36: client_print(id, print_chat, "You have selected 9");
case 0: client_print(id, print_chat, "You have selected a");
case 1: client_print(id, print_chat, "You have selected b");
case 2: client_print(id, print_chat, "You have selected c");
case 3: client_print(id, print_chat, "You have selected d");
case 4: client_print(id, print_chat, "You have selected e");
case 5: client_print(id, print_chat, "You have selected f");
case 6: client_print(id, print_chat, "You have selected f");
case 7: client_print(id, print_chat, "You have selected g");
case 8: client_print(id, print_chat, "You have selected h");
case 9: client_print(id, print_chat, "You have selected i");
case 10: client_print(id, print_chat, "You have selected j");
case 11: client_print(id, print_chat, "You have selected k");
case 12: client_print(id, print_chat, "You have selected l");
case 13: client_print(id, print_chat, "You have selected m");
case 14: client_print(id, print_chat, "You have selected n");
case 15: client_print(id, print_chat, "You have selected o");
case 16: client_print(id, print_chat, "You have selected p");
case 17: client_print(id, print_chat, "You have selected q");
case 18: client_print(id, print_chat, "You have selected r");
case 19: client_print(id, print_chat, "You have selected s");
case 20: client_print(id, print_chat, "You have selected t");
case 21: client_print(id, print_chat, "You have selected u");
case 22: client_print(id, print_chat, "You have selected v");
case 23: client_print(id, print_chat, "You have selected w");
case 24: client_print(id, print_chat, "You have selected x");
case 25: client_print(id, print_chat, "You have selected y");
case 26: client_print(id, print_chat, "You have selected z");
case 27: client_print(id, print_chat, "You have selected 0");
case 28: client_print(id, print_chat, "You have selected 1");
case 29: client_print(id, print_chat, "You have selected 2");
case 30: client_print(id, print_chat, "You have selected 3");
case 31: client_print(id, print_chat, "You have selected 4");
case 32: client_print(id, print_chat, "You have selected 5");
case 33: client_print(id, print_chat, "You have selected 6");
case 34: client_print(id, print_chat, "You have selected 7");
case 35: client_print(id, print_chat, "You have selected 8");
case 36: client_print(id, print_chat, "You have selected 9");
case 0: client_print(id, print_chat, "You have selected a");
case 1: client_print(id, print_chat, "You have selected b");
case 2: client_print(id, print_chat, "You have selected c");
case 3: client_print(id, print_chat, "You have selected d");
case 4: client_print(id, print_chat, "You have selected e");
case 5: client_print(id, print_chat, "You have selected f");
case 6: client_print(id, print_chat, "You have selected f");
case 7: client_print(id, print_chat, "You have selected g");
case 8: client_print(id, print_chat, "You have selected h");
case 9: client_print(id, print_chat, "You have selected i");
case 10: client_print(id, print_chat, "You have selected j");
case 11: client_print(id, print_chat, "You have selected k");
case 12: client_print(id, print_chat, "You have selected l");
case 13: client_print(id, print_chat, "You have selected m");
case 14: client_print(id, print_chat, "You have selected n");
case 15: client_print(id, print_chat, "You have selected o");
case 16: client_print(id, print_chat, "You have selected p");
case 17: client_print(id, print_chat, "You have selected q");
case 18: client_print(id, print_chat, "You have selected r");
case 19: client_print(id, print_chat, "You have selected s");
case 20: client_print(id, print_chat, "You have selected t");
case 21: client_print(id, print_chat, "You have selected u");
case 22: client_print(id, print_chat, "You have selected v");
case 23: client_print(id, print_chat, "You have selected w");
case 24: client_print(id, print_chat, "You have selected x");
case 25: client_print(id, print_chat, "You have selected y");
case 26: client_print(id, print_chat, "You have selected z");
case 27: client_print(id, print_chat, "You have selected 0");
case 28: client_print(id, print_chat, "You have selected 1");
case 29: client_print(id, print_chat, "You have selected 2");
case 30: client_print(id, print_chat, "You have selected 3");
case 31: client_print(id, print_chat, "You have selected 4");
case 32: client_print(id, print_chat, "You have selected 5");
case 33: client_print(id, print_chat, "You have selected 6");
case 34: client_print(id, print_chat, "You have selected 7");
case 35: client_print(id, print_chat, "You have selected 8");
case 36: client_print(id, print_chat, "You have selected 9");
case 0: client_print(id, print_chat, "You have selected a");
case 1: client_print(id, print_chat, "You have selected b");
case 2: client_print(id, print_chat, "You have selected c");
case 3: client_print(id, print_chat, "You have selected d");
case 4: client_print(id, print_chat, "You have selected e");
case 5: client_print(id, print_chat, "You have selected f");
case 6: client_print(id, print_chat, "You have selected f");
case 7: client_print(id, print_chat, "You have selected g");
case 8: client_print(id, print_chat, "You have selected h");
case 9: client_print(id, print_chat, "You have selected i");
case 10: client_print(id, print_chat, "You have selected j");
case 11: client_print(id, print_chat, "You have selected k");
case 12: client_print(id, print_chat, "You have selected l");
case 13: client_print(id, print_chat, "You have selected m");
case 14: client_print(id, print_chat, "You have selected n");
case 15: client_print(id, print_chat, "You have selected o");
case 16: client_print(id, print_chat, "You have selected p");
case 17: client_print(id, print_chat, "You have selected q");
case 18: client_print(id, print_chat, "You have selected r");
case 19: client_print(id, print_chat, "You have selected s");
case 20: client_print(id, print_chat, "You have selected t");
case 21: client_print(id, print_chat, "You have selected u");
case 22: client_print(id, print_chat, "You have selected v");
case 23: client_print(id, print_chat, "You have selected w");
case 24: client_print(id, print_chat, "You have selected x");
case 25: client_print(id, print_chat, "You have selected y");
case 26: client_print(id, print_chat, "You have selected z");
case 27: client_print(id, print_chat, "You have selected 0");
case 28: client_print(id, print_chat, "You have selected 1");
case 29: client_print(id, print_chat, "You have selected 2");
case 30: client_print(id, print_chat, "You have selected 3");
case 31: client_print(id, print_chat, "You have selected 4");
case 32: client_print(id, print_chat, "You have selected 5");
case 33: client_print(id, print_chat, "You have selected 6");
case 34: client_print(id, print_chat, "You have selected 7");
case 35: client_print(id, print_chat, "You have selected 8");
case 36: client_print(id, print_chat, "You have selected 9");
case 0: client_print(id, print_chat, "You have selected a");
case 1: client_print(id, print_chat, "You have selected b");
case 2: client_print(id, print_chat, "You have selected c");
case 3: client_print(id, print_chat, "You have selected d");
case 4: client_print(id, print_chat, "You have selected e");
case 5: client_print(id, print_chat, "You have selected f");
case 6: client_print(id, print_chat, "You have selected f");
case 7: client_print(id, print_chat, "You have selected g");
case 8: client_print(id, print_chat, "You have selected h");
case 9: client_print(id, print_chat, "You have selected i");
case 10: client_print(id, print_chat, "You have selected j");
case 11: client_print(id, print_chat, "You have selected k");
case 12: client_print(id, print_chat, "You have selected l");
case 13: client_print(id, print_chat, "You have selected m");
case 14: client_print(id, print_chat, "You have selected n");
case 15: client_print(id, print_chat, "You have selected o");
case 16: client_print(id, print_chat, "You have selected p");
case 17: client_print(id, print_chat, "You have selected q");
case 18: client_print(id, print_chat, "You have selected r");
case 19: client_print(id, print_chat, "You have selected s");
case 20: client_print(id, print_chat, "You have selected t");
case 21: client_print(id, print_chat, "You have selected u");
case 22: client_print(id, print_chat, "You have selected v");
case 23: client_print(id, print_chat, "You have selected w");
case 24: client_print(id, print_chat, "You have selected x");
case 25: client_print(id, print_chat, "You have selected y");
case 26: client_print(id, print_chat, "You have selected z");
case 27: client_print(id, print_chat, "You have selected 0");
case 28: client_print(id, print_chat, "You have selected 1");
case 29: client_print(id, print_chat, "You have selected 2");
case 30: client_print(id, print_chat, "You have selected 3");
case 31: client_print(id, print_chat, "You have selected 4");
case 32: client_print(id, print_chat, "You have selected 5");
case 33: client_print(id, print_chat, "You have selected 6");
case 34: client_print(id, print_chat, "You have selected 7");
case 35: client_print(id, print_chat, "You have selected 8");
case 36: client_print(id, print_chat, "You have selected 9");
case 0: client_print(id, print_chat, "You have selected a");
case 1: client_print(id, print_chat, "You have selected b");
case 2: client_print(id, print_chat, "You have selected c");
case 3: client_print(id, print_chat, "You have selected d");
case 4: client_print(id, print_chat, "You have selected e");
case 5: client_print(id, print_chat, "You have selected f");
case 6: client_print(id, print_chat, "You have selected f");
case 7: client_print(id, print_chat, "You have selected g");
case 8: client_print(id, print_chat, "You have selected h");
case 9: client_print(id, print_chat, "You have selected i");
case 10: client_print(id, print_chat, "You have selected j");
case 11: client_print(id, print_chat, "You have selected k");
case 12: client_print(id, print_chat, "You have selected l");
case 13: client_print(id, print_chat, "You have selected m");
case 14: client_print(id, print_chat, "You have selected n");
case 15: client_print(id, print_chat, "You have selected o");
case 16: client_print(id, print_chat, "You have selected p");
case 17: client_print(id, print_chat, "You have selected q");
case 18: client_print(id, print_chat, "You have selected r");
case 19: client_print(id, print_chat, "You have selected s");
case 20: client_print(id, print_chat, "You have selected t");
case 21: client_print(id, print_chat, "You have selected u");
case 22: client_print(id, print_chat, "You have selected v");
case 23: client_print(id, print_chat, "You have selected w");
case 24: client_print(id, print_chat, "You have selected x");
case 25: client_print(id, print_chat, "You have selected y");
case 26: client_print(id, print_chat, "You have selected z");
case 27: client_print(id, print_chat, "You have selected 0");
case 28: client_print(id, print_chat, "You have selected 1");
case 29: client_print(id, print_chat, "You have selected 2");
case 30: client_print(id, print_chat, "You have selected 3");
case 31: client_print(id, print_chat, "You have selected 4");
case 32: client_print(id, print_chat, "You have selected 5");
case 33: client_print(id, print_chat, "You have selected 6");
case 34: client_print(id, print_chat, "You have selected 7");
case 35: client_print(id, print_chat, "You have selected 8");
case 36: client_print(id, print_chat, "You have selected 9");
case 0: client_print(id, print_chat, "You have selected a");
case 1: client_print(id, print_chat, "You have selected b");
case 2: client_print(id, print_chat, "You have selected c");
case 3: client_print(id, print_chat, "You have selected d");
case 4: client_print(id, print_chat, "You have selected e");
case 5: client_print(id, print_chat, "You have selected f");
case 6: client_print(id, print_chat, "You have selected f");
case 7: client_print(id, print_chat, "You have selected g");
case 8: client_print(id, print_chat, "You have selected h");
case 9: client_print(id, print_chat, "You have selected i");
case 10: client_print(id, print_chat, "You have selected j");
case 11: client_print(id, print_chat, "You have selected k");
case 12: client_print(id, print_chat, "You have selected l");
case 13: client_print(id, print_chat, "You have selected m");
case 14: client_print(id, print_chat, "You have selected n");
case 15: client_print(id, print_chat, "You have selected o");
case 16: client_print(id, print_chat, "You have selected p");
case 17: client_print(id, print_chat, "You have selected q");
case 18: client_print(id, print_chat, "You have selected r");
case 19: client_print(id, print_chat, "You have selected s");
case 20: client_print(id, print_chat, "You have selected t");
case 21: client_print(id, print_chat, "You have selected u");
case 22: client_print(id, print_chat, "You have selected v");
case 23: client_print(id, print_chat, "You have selected w");
case 24: client_print(id, print_chat, "You have selected x");
case 25: client_print(id, print_chat, "You have selected y");
case 26: client_print(id, print_chat, "You have selected z");
case 27: client_print(id, print_chat, "You have selected 0");
case 28: client_print(id, print_chat, "You have selected 1");
case 29: client_print(id, print_chat, "You have selected 2");
case 30: client_print(id, print_chat, "You have selected 3");
case 31: client_print(id, print_chat, "You have selected 4");
case 32: client_print(id, print_chat, "You have selected 5");
case 33: client_print(id, print_chat, "You have selected 6");
case 34: client_print(id, print_chat, "You have selected 7");
case 35: client_print(id, print_chat, "You have selected 8");
case 36: client_print(id, print_chat, "You have selected 9");
case 0: client_print(id, print_chat, "You have selected a");
case 1: client_print(id, print_chat, "You have selected b");
case 2: client_print(id, print_chat, "You have selected c");
case 3: client_print(id, print_chat, "You have selected d");
case 4: client_print(id, print_chat, "You have selected e");
case 5: client_print(id, print_chat, "You have selected f");
case 6: client_print(id, print_chat, "You have selected f");
case 7: client_print(id, print_chat, "You have selected g");
case 8: client_print(id, print_chat, "You have selected h");
case 9: client_print(id, print_chat, "You have selected i");
case 10: client_print(id, print_chat, "You have selected j");
case 11: client_print(id, print_chat, "You have selected k");
case 12: client_print(id, print_chat, "You have selected l");
case 13: client_print(id, print_chat, "You have selected m");
case 14: client_print(id, print_chat, "You have selected n");
case 15: client_print(id, print_chat, "You have selected o");
case 16: client_print(id, print_chat, "You have selected p");
case 17: client_print(id, print_chat, "You have selected q");
case 18: client_print(id, print_chat, "You have selected r");
case 19: client_print(id, print_chat, "You have selected s");
case 20: client_print(id, print_chat, "You have selected t");
case 21: client_print(id, print_chat, "You have selected u");
case 22: client_print(id, print_chat, "You have selected v");
case 23: client_print(id, print_chat, "You have selected w");
case 24: client_print(id, print_chat, "You have selected x");
case 25: client_print(id, print_chat, "You have selected y");
case 26: client_print(id, print_chat, "You have selected z");
case 27: client_print(id, print_chat, "You have selected 0");
case 28: client_print(id, print_chat, "You have selected 1");
case 29: client_print(id, print_chat, "You have selected 2");
case 30: client_print(id, print_chat, "You have selected 3");
case 31: client_print(id, print_chat, "You have selected 4");
case 32: client_print(id, print_chat, "You have selected 5");
case 33: client_print(id, print_chat, "You have selected 6");
case 34: client_print(id, print_chat, "You have selected 7");
case 35: client_print(id, print_chat, "You have selected 8");
case 36: client_print(id, print_chat, "You have selected 9");
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
another one is that if you put an access flag, can't be removed.
Again, this is awesome. you can put a drop list for all commands available to call the menu, so it could not confuse newbies.