Skocz do zawartości

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

Buy Menu Management (v0.1beta)


  • 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:7 476
  • Lokalizacja:AMXX.PL
Offline

Napisano 26.12.2012 14:38

Plugin by Mr. Frost (Danakt). Current version: 0.1beta.This plugin allows modify and supplement the standard Buy Menu to suit your needs. This includes adding new items from third-party plugins through a little API.How to add a weapon to the menu. While those until two:1. Through a third-party plugin: PHP Code:

/** * Registers a custom item which will be added to the buy menu * * Note: The returned item ID can be later used to catch item * purchase events for the bmm_item_selected() forward. * * @param name Caption to display on the menu. * @param cost Money to be deducted on purchase. * @param teams Bitsum of teams which should be applied for the item. * @param type Category number which should be applied for the item. * @return An internal extra item ID. */native bmm_add_item(const name[], cost, team, type, access=ADMIN_ALL);/*** Called when a player check item * * @param id Player index. * @param itemid Item ID. */forward bmm_item_selected(id, itemid);

2. Plguin supported Zombie Plague Extra ItemsCommands:amx_bmm_category — open the menu categories. When adding a weapon with ZP Extra Items, in Buy Menu appears item "Uncategorised", in which they are located. Using amx_bmm_category you can move the items in the appropriate category.You can also move already categorized items. Information about categories saved in file bmm_items.ini.Cvars:
  • bmm_on 1 — Enable/Disable the plugin
  • bmm_multiple 1 — When registering ZP Extra Items price indicated in ammopacks, that significantly lower than the cost default weapons. This cvar multiplies the set price, if it low.
  • bmm_multiple_min 100 — Minimum price, after which it is multiplied.
  • bmm_multiple_num 1000 — How many times to multiple
If you have suggestions or comments, speak up.P.S. Sorry for my bad English. If I made a mistake in the text or in plugin, please correct me. Attached Files Dołączona grafika Get Plugin or Get Source (buy_menu_management_01beta.sma - 20.8 KB) Dołączona grafika bmm.txt (1.3 KB) Dołączona grafika bmm.inc (1.1 KB) Dołączona grafika Get Plugin or Get Source (bmm_default_weapons.sma - 3.6 KB)

Wyświetl pełny artykuł




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

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