SamuraiBarbi
09-13-2007, 14:42
Hello, I've just got a couple questions
1) Is there a way to skip choice numbers when building a menu in SourceMod? For instance, I want to display choices 1, 2 and then skip to 7, 8, and 9. See the picture if you need a visual explanation.
http://downloads.daedalus-online.net/downloads_css/shotgun.jpg
2) When formatting a menu is it possible to display line breaks without having to do \n ? It's not a problem yet, but it's just ugly when I have to do this
new Handle:menu = CreateMenu(MenuHandler1);
SetMenuTitle(menu, "Welcome to KiLL Machine\nServer IP: 72.36.233.18:27015\n \nBuy Menus:");
AddMenuItem(menu, "weapon", "Buy Weapon");
AddMenuItem(menu, "equipment", "Buy Equipment\n \n");
AddMenuItem(menu, "rebuy", "Re-Buy Previous - $2500\n \n \n");
AddMenuItem(menu, "mapstats", "View Map Stats\n");
AddMenuItem(menu, "teamstats", "View Team Stats\n");
AddMenuItem(menu, "mystats", "View My Stats\n");
AddMenuItem(menu, "close", "Close\n \nSay menu to bring this menu up at any time");
SetMenuExitButton(menu, false);
DisplayMenu(menu, client, 20);
return Plugin_Handled;
in order to display this
http://downloads.daedalus-online.net/downloads_css/menu.jpg
1) Is there a way to skip choice numbers when building a menu in SourceMod? For instance, I want to display choices 1, 2 and then skip to 7, 8, and 9. See the picture if you need a visual explanation.
http://downloads.daedalus-online.net/downloads_css/shotgun.jpg
2) When formatting a menu is it possible to display line breaks without having to do \n ? It's not a problem yet, but it's just ugly when I have to do this
new Handle:menu = CreateMenu(MenuHandler1);
SetMenuTitle(menu, "Welcome to KiLL Machine\nServer IP: 72.36.233.18:27015\n \nBuy Menus:");
AddMenuItem(menu, "weapon", "Buy Weapon");
AddMenuItem(menu, "equipment", "Buy Equipment\n \n");
AddMenuItem(menu, "rebuy", "Re-Buy Previous - $2500\n \n \n");
AddMenuItem(menu, "mapstats", "View Map Stats\n");
AddMenuItem(menu, "teamstats", "View Team Stats\n");
AddMenuItem(menu, "mystats", "View My Stats\n");
AddMenuItem(menu, "close", "Close\n \nSay menu to bring this menu up at any time");
SetMenuExitButton(menu, false);
DisplayMenu(menu, client, 20);
return Plugin_Handled;
in order to display this
http://downloads.daedalus-online.net/downloads_css/menu.jpg