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

Simple Menu Builder


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   ALL        Category:   Server Management       
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 06-24-2016 , 08:29   Simple Menu Builder
Reply With Quote #1



Simple Menu Builder


Description
  • With this plugin you can easily create server menus that will execute commands in the client's console.

Plugin Settings
  • You can change the settings from the file configs/SimpleMenu.ini, which looks like this:
  • [Default Settings] - In this section you can change the default settings that will be used for every new menu, in case you don't change a specific setting for a specific menu.
    • MENU_TITLE: Menu title.
    • MENU_TITLE_PAGE: The text that will be added in the title if the menu has more than one page.
    • MENU_BACK: Text for the "previous page" field.
    • MENU_NEXT: Text for the "next page" field.
    • MENU_EXIT: Text for the "exit menu" field.
    • MENU_OPEN: Commands that open the menu. Separate them with commans ( , ). Use say and say_team for chat commands. Bear in mind that you need to add this setting in every single menu, because two different menus can't be opened with the same command.
    • MENU_FLAG: If you want the menu to be available to players with a specific flag only, otherwise leave it "0".
    • MENU_TEAM: If you want the menu to be available for a certain team only (0 = all; 1 = T; 2 = CT; 3 = SPEC).
    • MENU_ALIVEONLY: Change it to "1" if you want the menu to be available to alive players only, or "2" - only for dead players.
    • MENU_ITEMS_PER_PAGE: Number of items per page. Change it to "0" to remove the previous and next page options, as well as the exit option and make the menu use one page only.
    • MENU_REOPEN: If you want the menu to reopen after being used.
    • MENU_ITEM_FORMAT: How are the items going to be displayed in the menu. Use %item% for the item's name.
    • MENU_PREFIX: The prefix for chat messages.
    • MENU_NOACCESS: The message that will show in chat if you don't have access to the menu.
    • MENU_NOTEAM: The message that will show in chat if your team doesn't have access to the menu.
    • MENU_ALIVE: The message that will show in chat if it's available for alive players only.
    • MENU_DEAD: The message that will show in chat if it's available for dead players only.
    • MENU_SOUND: If you want the menu to play a sound when you open it.
  • How to add a new menu:

    [New Menu = My Menu] - This tells the plugin that you're making a new menu and everything below this line will be related to that menu.
    [Menu Settings] - Below this line you can add the menu settings. Bear in mind that you don't have to add a certain settings if you want it to be the same as the one in the default settings. You must add the MENU_OPEN option.
    [Menu Items] - This section contains the menu items. There's no limit on how many items you can add. This is how you can add an item:
    • Name: This is the name of the item that will be displayed in the menu.
      Command: The command that will be executed when the menu option is chosen.
      Flag: If you want the item to be available for players with a certain flag only.
      Team: If you want the item to be available for a certain team only.
  • In order to add a blank line, use #blank 0/1 (1 = shift the numbering down; 0 = don't shift).
    You can also add a text with #text "your text" 0/1 (1 = shift the numbering down; 0 = don't shift).
    In order to make a players menu, use #addplayers "your command" "flags" (flags: "a" = don't add players who have immunity; "b" = add yourself; "c" = don't add dead players).
  • You can also make some menus or menu items appear on specific maps only. Use - mapname - for a specific map, - map_* - for map prefix and -#all - to use all maps again.
  • You can even execute a function from another plugin. You can do this by using do.func(plugin_name.amxx, function_name). Please note that you should use functions that have only one parameter, and that parameter should be the player's id.




Last edited by OciXCrom; 08-23-2018 at 06:52. Reason: Update v2.0 @ 14.01.2017
OciXCrom is offline
Send a message via Skype™ to OciXCrom
 



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 10:30.


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