<div><font face="Comic Sans MS"><b><font size="7"><div align="center"><font color="#FF0000"><</font> <font color="#0000BF"> Simple Menu Builder</font> <font color="#FF0000">></font></div></font></b><br /><div align="center"><font color="#FF0000"><b>With this plugin you can easily create server menus that will execute commands in the client's console.</b></font></div><br /><b><font size="4"><u><font color="#0000BF">Plugin Settings:</font></u></font></b><br /><br />You can change the settings from the file <b><font color="#FF8000">configs/SimpleMenu.ini</font></b>, which looks like this:<br /><br /><div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">PHP Code:</div>
<div class="alt2">
<hr />
<code style="white-space:nowrap">
<div dir="ltr" style="text-align:left;">
<!-- php buffer start --><code><span style="color: #000000">
<span style="color: #0000BB"></span><span style="color: #007700">[Default </span><span style="color: #0000BB">Settings</span><span style="color: #007700">]
<br />;</span><span style="color: #0000BB">These are the </span><span style="color: #007700">default </span><span style="color: #0000BB">settings </span><span style="color: #007700">for </span><span style="color: #0000BB">each menu created</span><span style="color: #007700">.
<br />;</span><span style="color: #0000BB">You can add certain options in </span><span style="color: #007700">[</span><span style="color: #0000BB">Menu Settings</span><span style="color: #007700">] if </span><span style="color: #0000BB">you want to change them</span><span style="color: #007700">.
<br />;</span><span style="color: #0000BB">Please note that every menu needs to have a different MENU_OPEN settings</span><span style="color: #007700">, </span><span style="color: #0000BB">therefore there</span><span style="color: #DD0000">'s no default one.
<br />
<br />MENU_TITLE = My Simple Menu
<br />MENU_TITLE_PAGE = %newline%Page:d
<br />MENU_BACK = yPrevious Page
<br />MENU_NEXT = yNext Page
<br />MENU_EXIT = rClose
<br />;MENU_OPEN = say /menu, say_team /menu, amx_mymenu -- This must be set with a different value on every menu!
<br />MENU_FLAG = 0
<br />MENU_ALIVEONLY = 0
<br />MENU_ITEMS_PER_PAGE = 7
<br />MENU_ITEM_FORMAT = %item%
<br />MENU_PREFIX = !g[Simple Menu]!n
<br />MENU_NOACCESS = You have no access to this menu.
<br />MENU_ALIVE = You need to be alive to use this menu.
<br />MENU_DEAD = You need to be dead to use this menu.
<br />MENU_SOUND =
<br />
<br />[New Menu = Menu Sample]
<br />
<br />[Menu Settings]
<br />MENU_OPEN = say /menu, say_team /menu, amx_mymenu
<br />
<br />[Menu Items]
<br />"Show Rules" "say /rules"
<br />"Hats Menu" "say /hats" b
<br />"Turn the Radio On" "say /radio"
<br />"Leave the Server" "disconnect"
<br />"Open Sub-Menu" "submenu1"
<br />"Command #5" ""
<br />"Command #6" ""
<br />"Command #7" "" d
<br />"Command #8" "" d
<br />"Command #9" ""
<br />"Command #10" ""
<br />
<br />[New Menu = Sub Menu]
<br />
<br />[Menu Settings]
<br />MENU_OPEN = submenu1
<br />MENU_TITLE = My Simple Sub Menu
<br />MENU_ITEM_FORMAT = r< y%item% r>
<br />
<br />[Menu Items]
<br />"Option 1" "say option1"
<br />"Option 2" "say option2"
<br />"Option 3" "say option3"
<br />"Option 4" "say option4"
<br /></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div><b><font color="#FF8000">[Default Settings]</font></b> - 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.<ul><li><b><font color="#8040FF">MENU_TITLE</font></b>: Menu title.</li>
<li><b><font color="#8040FF">MENU_TITLE_PAGE</font></b>: The text that will be added in the title if the menu has more than one page.</li>
<li><b><font color="#8040FF">MENU_BACK</font></b>: Text for the "previous page" field.</li>
<li><b><font color="#8040FF">MENU_NEXT</font></b>: Text for the "next page" field.</li>
<li><b><font color="#8040FF">MENU_EXIT</font></b>: Text for the "exit menu" field.</li>
<li><b><font color="#8040FF">MENU_OPEN</font></b>: Commands that open the menu. Separate them with commans ( , ). Use <b>say</b> and <b>say_team</b> 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.</li>
<li><b><font color="#8040FF">MENU_FLAG</font></b>: If you want the menu to be available to players with a specific flag only, otherwise leave it "0".</li>
<li><b><font color="#8040FF">MENU_ALIVEONLY</font></b>: Change it to "1" if you want the menu to be available to alive players only, or "2" - only for dead players.</li>
<li><b><font color="#8040FF">MENU_ITEMS_PER_PAGE</font></b>: 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.</li>
<li><b><font color="#8040FF">MENU_ITEM_FORMAT</font></b>: How are the items going to be displayed in the menu. Use %item% for the item's name.</li>
<li><b><font color="#8040FF">MENU_PREFIX</font></b>: The prefix for chat messages.</li>
<li><b><font color="#8040FF">MENU_NOACCESS</font></b>: The message that will show in chat if you don't have access to the menu.</li>
<li><b><font color="#8040FF">MENU_ALIVE</font></b>: The message that will show in chat if it's available for alive players only.</li>
<li><b><font color="#8040FF">MENU_DEAD</font></b>: The message that will show in chat if it's available for dead players only.</li>
<li><b><font color="#8040FF">MENU_SOUND</font></b>: If you want the menu to play a sound when you open it.</li>
</ul><br /><b><u>How to add a new menu:</u></b><br /><br /><b><font color="#FF8000">[New Menu = My Menu]</font></b> - This tells the plugin that you're making a new menu and everything below this line will be related to that menu.<br /><b><font color="#FF8000">[Menu Settings]</font></b> - 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.<br /><b><font color="#FF8000">[Menu Items]</font></b> - 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:<ul><li><b><font color="#8040FF">Name</font></b>: This is the name of the item that will be displayed in the menu.<br /><b><font color="#8040FF">Command</font></b>: The command that will be executed when the menu option is chosen.<br /><b><font color="#8040FF">Flag</font></b>: If you want the item to be available for players with a certain flag only.</li>
</ul><br /><img src="http://i.imgur.com/6feMABS.jpg"border="0" alt="" /> <img src="http://i.imgur.com/dfRDLRN.jpg" border="0" alt="" /><br /><br /><a href="http://www.gametracker.com/search/?search_by=server_variable&search_by2=simplemenu&query=&loc=_all&sort=&order=" target="_blank"><b><font size="4"><u><font color="#0000BF">Servers using this plugin</font></u></font></b></a></font></div>
<br /> <div style="padding:6px">
<fieldset class="fieldset">
<legend>Attached Files</legend>
<table cellpadding="0" cellspacing="3" border="0">
<tr>
<td><img class="inlineimg" src="https://forums.allie...attach/sma.gif"alt="File Type: sma" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>
<a href="http://www.amxmodx.o...76"><strong>GetPlugin</strong></a> or
<a href="https://forums.allie...1466771346">GetSource</a> (crx_simplemenu.sma - 11.2 KB)
</td>
</tr><tr>
<td><img class="inlineimg" src="https://forums.allie...attach/ini.gif"alt="File Type: ini" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>
<a href="https://forums.allie...pleMenu.ini</a>(1.4 KB)
</td>
</tr>
</table>
</fieldset>
</div>
Wyświetl pełny artykuł
Witamy w Nieoficjalnym polskim support'cie AMX Mod X
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
Guest Message by DevFuse

Simple Menu Builder
Temat rozp. Adminek AMXX.PL, 24.06.2016 13:29
Brak odpowiedzi do tego tematu
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych