I would suggest the following change ("diff -i -b -Naur" relative to the current sm_super_menu.sp):
Code:
--- /opt/halflife/downloads/sm_super_menu.sp 2007-12-01 03:19:18.000000000 +0100
+++ sm_super_menu.sp 2007-12-29 15:04:48.000000000 +0100
@@ -616,9 +616,15 @@
new String:execute[7];
KvGetString(kv, "execute", execute, sizeof(execute), "player");
+ //added by BehaartesEtwas: option to close the menu after command execution (instead of displaying the TopMenu again)
+ new String:oneshot[11];
+ KvGetString(kv, "oneshot", oneshot, sizeof(oneshot), "persistant");
+
KvGoBack(kv);
+ if (oneshot[0]=='p') {
DisplayTopMenu(hTopMenu, client, TopMenuPosition_LastCategory);
+ }
if (execute[0]=='p')
{
This will allow an option "oneshot" for a menu item which causes the super menu to disapper after executing the command, instead of showing the main menu again. This is usefull, if the command displays a menu itself (e.g. a vote), which results in very confusing situations else...