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

[forums.alliedmods.net] [L4D & L4D2] Health Vending Machines (1.0) [28-Feb-2012]


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

Napisano 28.02.2012 05:33

Dołączona grafika
(1. Cooler, 2. Fountain, 3. Drinks, 4. Vendor)

About:
  • Gives temporary health or main health. Not above 100 HP.
  • Selection of 4 Health Vending Machines.
  • Save up to 32 Vendors for auto-spawning. (Saved to l4d_vendor.cfg in addonssourcemoddata).
Thanks:
  • AtomicStryker, Zuko and McFlurry - For source code (credits inside).
  • alexip121093
  • disawar1
  • xioSlayer
  • [Resistance] Yoshi
  • januto
  • Recon-1
  • ilyaadminman
  • Herbie_06
Admin Commands: (requires "z" flag)



PHP Code:

sm_vendor // Spawns a temporary vending machine at your crosshair. Usage: sm_vendor <1|2|3|4>.
sm_vendorsave // Spawns a vending machine at your crosshair and saves to config. Usage: sm_vendorsave <1|2|3|4>.
sm_vendordel // Removes the vending machine your crosshair is pointing at.
sm_vendorwipe // Removes all vendors from the current map and deletes them from the config.
sm_vendorglow // Toggle to enable glow on all vendors to see where they are placed.
sm_vendorlist // Display a list vending machine positions and the total number of.


Cvars:

Saved to l4d_vendor.cfg in your left4dead2cfgsourcemod folder.



PHP Code:

l4d_vendor_allow "1" // 0=Plugin off, 1=Plugin on.
l4d_vendor_glow "100" // 0=Off. Any other value is the range at which the glow will turn on.
l4d_vendor_health_cooler "2" // The health given to players when using the Drink Coolers (1).
l4d_vendor_health_drinks "5" // The health given to players when using the Small Drink Dispensers (3).
l4d_vendor_health_fountain "2" // The health given to players when using the Water Fountains (2).
l4d_vendor_health_vendor "5" // The health given to players when using the Drink Vendors (4).
l4d_vendor_max_cooler "15" // 0=Infinite. Maxiumum number of times this type of vendor can be used.
l4d_vendor_max_drinks "10" // 0=Infinite. Maxiumum number of times this type of vendor can be used.
l4d_vendor_max_fountain "15" // 0=Infinite. Maxiumum number of times this type of vendor can be used.
l4d_vendor_max_vendor "10" // 0=Infinite. Maxiumum number of times this type of vendor can be used.
l4d_vendor_modes "" // Do not create vendors on these gamemodes. Separate by commas (no spaces). (Empty = all).
l4d_vendor_random "-1" // -1=All, 0=None. Otherwise randomly select this many vendors to spawn from the maps confg.
l4d_vendor_temp "25" // 0=Add to normal health. -1=Add temporary health. Values between 1 and 100 create a chance to give health.
l4d_vendor_timed "1.0" // How many seconds it takes to use a vending machine.
l4d_vendor_version // Vending Machine plugin version.


Installation:
  • Click "Get Plugin" and save to your addonssourcemodplugins folder.

Attached Files Dołączona grafika Get Plugin or Get Source (l4d_vendor.sp - 41.8 KB)

Wyświetl pełny artykuł




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

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