(1. Cooler, 2. Fountain, 3. Drinks, 4. Vendor)
- 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).
- AtomicStryker, Zuko and McFlurry - For source code (credits inside).
- alexip121093
- disawar1
- xioSlayer
- [Resistance] Yoshi
- januto
- Recon-1
- ilyaadminman
- Herbie_06
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

Wyświetl pełny artykuł