←  [RSS] Pluginy

AMXX.pl: Support AMX Mod X i SourceMod

»

[TF2] Weapon Limiter

Adminek AMXX.PL - zdjęcie Adminek AMXX.PL 31.07.2012

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ł
Odpowiedz