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

[Any] Hub (a modular store)


  • 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 02.02.2013 15:55

[ANY] Hub

Hub is a central plugin where credits are managed; it's designed to be an open !store plugin where you can easily modify existing plugins or add new plugins for use with the Hub. Hub Menu OptionsUsers who access the !hub menu will see the following 3 options by default:

  • Purchase Item
  • Gift Item
  • Refund Item
Cvarssm_hub_vbulletin (this provides vBulletin integration for forums with steam_code linked to their vb_user table)sm_hub_database (provides the databases.cfg entry to use to connect)sm_hub_link_url (if vBulletin integration is set, this will bring users to this website when !hub is entered and they don't have a steam_code linked to the forum)sm_hub_sell_rate (this is the percentage of credits a user will get returned to them when they sell an item from the hub)sm_hub_chat_prefix (self explanatory, the color codes are included)Features Config [addons/sourcemod/configs/hub/features.cfg]These entries will populate into the Sell, Gift, and Purchase options in the Hub. Each feature name should be unique. The menus can be 3 layers deep. Category names are allowed to better organize features but each actual feature needs to have a "Cost" value associated with it. The names for these features should match exactly the plugin that it's integrating with. For instance, using Zephyrus's Hats plugin, you would copy each entry in the hats.txt config over and add a Cost for all the hats. A sample is provided.Menus Config [addons/sourcemod/configs/hub/menus.cfg]These entries will add custom menus below the three default Hub options of Purchase, Sell, and Gift. The menus can be 2 layers deep. Category names are allowed to better organize menus but each menu entry should have a "command" value associated with it. The command is the console command the client would need to enter to access that feature. For instance, using Zephyrus's Hats plugin, the command entry would have "sm_hats" associated with it. A sample is provided.Optional UpdatingThis will work with GoD-Tony's Updater plugin, if present.User Commands!hub / !store / !perks / !features -> All of these link to the main hub menu.Admin Commandssm_credit [optional:amount]When the amount is left blank, it returns the credits for the targeted client; otherwise, it will add the amount specified of credits to the users account.Special ThanksZephyrus for suggestions and efficient cvar handlingGoD-Tony for helping to get the Updater plugin workingWhoever wrote BuildDynamicMenuChangelog1.0.6 Initial Private Release (3 July 2012)1.0.7 Forwards added (11 August 2012)--- Moved to Public Plugins (2 February 2013)

Attached Files Dołączona grafika hub.smx (22.1 KB) Dołączona grafika Get Plugin or Get Source (hub.sp - 41.7 KB) Dołączona grafika hub.inc (2.0 KB) Dołączona grafika hub.phrases.txt (2.0 KB) Dołączona grafika features.cfg (305 Bytes) Dołączona grafika menus.cfg (77 Bytes)

Wyświetl pełny artykuł




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

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