Raised This Month: $51 Target: $400
 12% 

sm_admin toggles menu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
UWS_C!@
Junior Member
Join Date: Sep 2008
Location: Canada, BC
Old 09-24-2008 , 02:52   sm_admin toggles menu
Reply With Quote #1

Request the ability to toggle admin menu on & off with sm_admin...
UWS_C!@ is offline
CrimsonGT
Veteran Member
Join Date: Oct 2007
Location: Gainesville, FL
Old 09-24-2008 , 02:54   Re: sm_admin toggles menu
Reply With Quote #2

What do you mean? Just Bind m "sm_admin" and hit it once to turn it on and again to turn it off?
__________________
CrimsonGT is offline
UWS_C!@
Junior Member
Join Date: Sep 2008
Location: Canada, BC
Old 09-24-2008 , 16:58   Re: sm_admin toggles menu
Reply With Quote #3

Is that in the form of a question?
Or
Are you stating that it already does as I requested?

Recap:
Yes id like to see the sm_admin be used for toggling the menu.

Two examples:
1.) "bind F9 sm_admin"
When pressed 1st time it opens and then the 2nd time it closes.
Or
2.) sm_admin and/or sm_admin <0|1>
With the ability to bind a key to toggle
"alias "admin_toggle" "admin_off"
alias "inv_on" "sm_admin 1; alias admin_toggle admin_off"
alias "admin_off" "sm_admin 0; alias admin_toggle admin_on"
bind F9 "admin_toggle"

Step two would allow you to open and close then menu in any way you want.

Little off topic but with "Super commands menu, adminmenu_custom.cfg" is there or how do you set a menu to return to a certain section
Example:
Code:
        "Unlimited Nades"
        {
            "admin"        "sm_ban"
            "cmd"        "sm_unnades #1 #2 #3"
            "execute"    "player"
            "return"     "main" : Example if not an option.
            "return"     "3" : Example if not an option.
            "1"
            {
                "type"         "player"
                "method"    "name"
                "title"        "Player:"
            }
            "2"
            {
                "type"         "list"
                "title"        "Type :"
                "1"        "he"
                "2"        "flash"
                "3"        "smoke"

            }
            "3"
            {
                "type"        "onoff"
            }
        }
So how would you get it to return to either the main menu...
which could be done, I guess by adding sm_admin to the end of a "cmd".
...Or lets say section "3" "onoff" so if you turn it on that menu pretty much stays on the "onoff" section until you hit back.

Hope I made myself clear enough.
UWS_C!@ is offline
necrosect
Senior Member
Join Date: Jun 2008
Old 09-25-2008 , 08:29   Re: sm_admin toggles menu
Reply With Quote #4

just do this,

alias +admintoggle1 "sm_admin"
alias -admintoggle1 "bind F9 +admintoggle2"
alias +admintoggle2 "slot10"
alias -admintoggle2 "bind F9 +admintoggle1"
bind F9 "+admintoggle1"
necrosect is offline
UWS_C!@
Junior Member
Join Date: Sep 2008
Location: Canada, BC
Old 09-25-2008 , 18:17   Re: sm_admin toggles menu
Reply With Quote #5

I'll try that out, thanks...
What does "slot10" represent?... Keypress?

Edit : Never mind i didn't read it completely, you're rebinding...
UWS_C!@ is offline
necrosect
Senior Member
Join Date: Jun 2008
Old 09-30-2008 , 10:31   Re: sm_admin toggles menu
Reply With Quote #6

yeah slot10 is just equivalent of pressing 0 on your keyboard to close the menu....
necrosect is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:21.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode