Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "New Plugin"
#define VERSION "1.0"
#define AUTHOR "Author"
#define KeysMy Simple Menu (1<<3) // Keys: 4
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_menucmd(register_menuid("My Simple Menu"), KeysMy Simple Menu, "PressedMy Simple Menu")
// Add your code here...
}
public ShowMy Simple Menu(id) {
show_menu(id, KeysMy Simple Menu, "\rChoise One^nChoise Two^nChoise Three^nChoise Four^n", -1, "My Simple Menu") // Display menu
}
public PressedMy Simple Menu(id, key) {
/* Menu:
* Choise One
* Choise Two
* Choise Three
* Choise Four
*/
switch (key) {
case 0:{
//do something with the First choise
}
case 1:(
//do something with the Second choise
}
case 2:{
//do something with the Third choise
}
case 3: { // 4
//do something with the last choise
}
}
}
__________________