Skocz do zawartości

  • Zaloguj korzystając z Facebooka Zaloguj korzystając z Twittera Zaloguj przez Steam Zaloguj poprzez Google      Logowanie »   
  • Rejestracja

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.

  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse
 

Zdjęcie

Simple Menu Builder


  • Nie możesz napisać tematu
  • Zaloguj się, aby dodać odpowiedź
Brak odpowiedzi do tego tematu

#1 Adminek AMXX.PL

    Admin :)

  • Bot

Reputacja: 156
Profesjonalista

  • Postów:7179
  • Lokalizacja:AMXX.PL
Offline

Napisano 24.06.2016 13:29

<div><font face="Comic Sans MS"><b><font size="7"><div align="center"><font color="#FF0000">&lt;</font> <font color="#0000BF"> Simple Menu Builder</font> <font color="#FF0000">&gt;</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&nbsp;</span><span style="color: #0000BB">Settings</span><span style="color: #007700">]
<br />;</span><span style="color: #0000BB">These&nbsp;are&nbsp;the&nbsp;</span><span style="color: #007700">default&nbsp;</span><span style="color: #0000BB">settings&nbsp;</span><span style="color: #007700">for&nbsp;</span><span style="color: #0000BB">each&nbsp;menu&nbsp;created</span><span style="color: #007700">.
<br />;</span><span style="color: #0000BB">You&nbsp;can&nbsp;add&nbsp;certain&nbsp;options&nbsp;in&nbsp;</span><span style="color: #007700">[</span><span style="color: #0000BB">Menu&nbsp;Settings</span><span style="color: #007700">]&nbsp;if&nbsp;</span><span style="color: #0000BB">you&nbsp;want&nbsp;to&nbsp;change&nbsp;them</span><span style="color: #007700">.
<br />;</span><span style="color: #0000BB">Please&nbsp;note&nbsp;that&nbsp;every&nbsp;menu&nbsp;needs&nbsp;to&nbsp;have&nbsp;a&nbsp;different&nbsp;MENU_OPEN&nbsp;settings</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">therefore&nbsp;there</span><span style="color: #DD0000">'s&nbsp;no&nbsp;default&nbsp;one.
<br />
<br />MENU_TITLE&nbsp;=&nbsp;My&nbsp;Simple&nbsp;Menu
<br />MENU_TITLE_PAGE&nbsp;=&nbsp;%newline%Page:d
<br />MENU_BACK&nbsp;=&nbsp;yPrevious&nbsp;Page
<br />MENU_NEXT&nbsp;=&nbsp;yNext&nbsp;Page
<br />MENU_EXIT&nbsp;=&nbsp;rClose
<br />;MENU_OPEN&nbsp;=&nbsp;say&nbsp;/menu,&nbsp;say_team&nbsp;/menu,&nbsp;amx_mymenu&nbsp;--&nbsp;This&nbsp;must&nbsp;be&nbsp;set&nbsp;with&nbsp;a&nbsp;different&nbsp;value&nbsp;on&nbsp;every&nbsp;menu!
<br />MENU_FLAG&nbsp;=&nbsp;0
<br />MENU_ALIVEONLY&nbsp;=&nbsp;0
<br />MENU_ITEMS_PER_PAGE&nbsp;=&nbsp;7
<br />MENU_ITEM_FORMAT&nbsp;=&nbsp;%item%
<br />MENU_PREFIX&nbsp;=&nbsp;!g[Simple&nbsp;Menu]!n
<br />MENU_NOACCESS&nbsp;=&nbsp;You&nbsp;have&nbsp;no&nbsp;access&nbsp;to&nbsp;this&nbsp;menu.
<br />MENU_ALIVE&nbsp;=&nbsp;You&nbsp;need&nbsp;to&nbsp;be&nbsp;alive&nbsp;to&nbsp;use&nbsp;this&nbsp;menu.
<br />MENU_DEAD&nbsp;=&nbsp;You&nbsp;need&nbsp;to&nbsp;be&nbsp;dead&nbsp;to&nbsp;use&nbsp;this&nbsp;menu.
<br />MENU_SOUND&nbsp;=
<br />
<br />[New&nbsp;Menu&nbsp;=&nbsp;Menu&nbsp;Sample]
<br />
<br />[Menu&nbsp;Settings]
<br />MENU_OPEN&nbsp;=&nbsp;say&nbsp;/menu,&nbsp;say_team&nbsp;/menu,&nbsp;amx_mymenu
<br />
<br />[Menu&nbsp;Items]
<br />"Show&nbsp;Rules"&nbsp;"say&nbsp;/rules"
<br />"Hats&nbsp;Menu"&nbsp;"say&nbsp;/hats"&nbsp;b
<br />"Turn&nbsp;the&nbsp;Radio&nbsp;On"&nbsp;"say&nbsp;/radio"
<br />"Leave&nbsp;the&nbsp;Server"&nbsp;"disconnect"
<br />"Open&nbsp;Sub-Menu"&nbsp;"submenu1"
<br />"Command&nbsp;#5"&nbsp;""
<br />"Command&nbsp;#6"&nbsp;""
<br />"Command&nbsp;#7"&nbsp;""&nbsp;d
<br />"Command&nbsp;#8"&nbsp;""&nbsp;d
<br />"Command&nbsp;#9"&nbsp;""
<br />"Command&nbsp;#10"&nbsp;""
<br />
<br />[New&nbsp;Menu&nbsp;=&nbsp;Sub&nbsp;Menu]
<br />
<br />[Menu&nbsp;Settings]
<br />MENU_OPEN&nbsp;=&nbsp;submenu1
<br />MENU_TITLE&nbsp;=&nbsp;My&nbsp;Simple&nbsp;Sub&nbsp;Menu
<br />MENU_ITEM_FORMAT&nbsp;=&nbsp;r&lt;&nbsp;y%item%&nbsp;r&gt;
<br />
<br />[Menu&nbsp;Items]
<br />"Option&nbsp;1"&nbsp;"say&nbsp;option1"
<br />"Option&nbsp;2"&nbsp;"say&nbsp;option2"
<br />"Option&nbsp;3"&nbsp;"say&nbsp;option3"
<br />"Option&nbsp;4"&nbsp;"say&nbsp;option4"&nbsp;
<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 &quot;previous page&quot; field.</li>
<li><b><font color="#8040FF">MENU_NEXT</font></b>: Text for the &quot;next page&quot; field.</li>
<li><b><font color="#8040FF">MENU_EXIT</font></b>: Text for the &quot;exit menu&quot; 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 &quot;0&quot;.</li>
<li><b><font color="#8040FF">MENU_ALIVEONLY</font></b>: Change it to &quot;1&quot; if you want the menu to be available to alive players only, or &quot;2&quot; - only for dead players.</li>
<li><b><font color="#8040FF">MENU_ITEMS_PER_PAGE</font></b>: Number of items per page. Change it to &quot;0&quot; 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&amp;search_by2=simplemenu&amp;query=&amp;loc=_all&amp;sort=&amp;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ł




Użytkownicy przeglądający ten temat: 0

0 użytkowników, 0 gości, 0 anonimowych