Quote:
|
And one more thing does anyone know anything about Menus
|
:ROFL: Sorry, but yeah. Add this to plugin_init
Code:
register_menucmd(register_menuid("menu_MainMenu"),1023,"MenuAction_MainMenu");
Then make a menu function.
Code:
MainMenu(id) {
new menu[256]
new key = MENU_KEY_0|MENU_KEY_1|MENU_KEY_2
new sMenu = format(menu, 255, "\yMain Menu:")
sMenu += format(menu[sMenu], 255-sMenu, "^n\w1. Option 1")
sMenu += format(menu[sMenu], 255-sMenu, "^n\w2. Option 2")
sMenu += format(menu[sMenu], 255-sMenu, "^n^n\w0. Exit")
show_menu(id, key, menu, -1, "menu_MainMenu")
}
Now make a menuaction func =P
Code:
public MenuAction_MainMenu(id, key) {
switch(key) {
case 0: {
//When option 1 is pressed this will activate. =P
}
case 1: {
//When option 2 is pressed this will activate.
}
//You don't need a case 2 for exit, since it'll exit anyways if theres nothing here.
}
}
I'm done helping, please just look at the docs or other people's plugins, and some tutorials. You'll learn. ^.^
And FuncWiki is your friend ^_^
__________________