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

[TF2] Weapon Limiter


  • 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 31.07.2012 13:28

This is my first attempt at a TF2 / SourceMod plugin, made at the request of my clan's server administrator as a way to limit the number of Gunslingers equipable per team. Please let me know any functionality that you think could improve it and I will try to oblige.List of features:
  • Set limits by weapon or weapon class
  • Set different limits for red/blue and/or a server-wide limit
  • Configurable by configuration file or by commands
  • Ability to whitelist players by their steam ID - whitelisted players can always equip the weapons specified in their whitelist entry(s)
CVAR:

  • weaplimit_version

Admin Commands:
  • weaplimit_enabled <1|0>
    • enable/disable the plugin
  • weaplimit_addlimit
    • add an entry to the limit table
  • weaplimit_printlimits
    • print all entries in the limit table to the console
  • weaplimit_removelimit
    • remove the specified limit from the limit table
  • weaplimit_addwhitelist
    • add an entry to the whitelist table
  • weaplimit_printwhitelist
    • print all entries in the whitelist table to the console
  • weaplimit_removewhitelist
    • remove the specified whitelist entry from the whitelist table
Command Usage Examples:
  • weaplimit_enabled 1
    • enable the plugin
  • weaplimit_addlimit -1 -1 2 scout unknown tf_weapon_scattergun
    • add a limit for blue team scouts of 2 weapons belonging to the "tf_weapon_scattergun" weapon class
  • weaplimit_addlimit 4 -1 -1 unknown unknown 142
    • add a limit for all players of 4 "Gunslinger" weapons, regardless of player class
  • weaplimit_addlimit -1 3 3 unknown secondary tf_weapon_shotgun
    • add a limit for each team of 3 weapons belonging to the "tf_weapon_shotgun" weapon class
  • weaplimit_removelimit 1
    • remove the limit entry with a key of '1' from the limit table
  • weaplimit_addwhitelist STEAM_0:0:12345678 unknown -1
    • add the player with the specified steam id to the whitelist for all weapons
  • weaplimit_addwhitelist STEAM_0:0:12345678 primary -1
    • add the player with the specified steam id to the whitelist for all primary slot weapons
  • weaplimit_removewhitelist 2
    • remove the whitelist entry with a key of '2' from the whitelist table
Configuration File Usage:
  • See attached weapon_limits.cfg file.
Attached Files Dołączona grafika Get Plugin or Get Source (weapon_limiter.sp - 56.4 KB) Dołączona grafika weapon_limits.cfg (4.4 KB)

Wyświetl pełny artykuł




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

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