Guest User

Untitled

a guest
Aug 9th, 2012
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.47 KB | None | 0 0
  1. /***
  2. * $$\ $$\
  3. * $$ | $\ $$ |
  4. * $$ |$$$\ $$ | $$$$$$\ $$$$$$\ $$$$$$\ $$$$$$\ $$$$$$$\
  5. * $$ $$ $$\$$ |$$ __$$\ \____$$\ $$ __$$\ $$ __$$\ $$ __$$\
  6. * $$$$ _$$$$ |$$$$$$$$ | $$$$$$$ |$$ / $$ |$$ / $$ |$$ | $$ |
  7. * $$$ / \$$$ |$$ ____|$$ __$$ |$$ | $$ |$$ | $$ |$$ | $$ |
  8. * $$ / \$$ |\$$$$$$$\ \$$$$$$$ |$$$$$$$ |\$$$$$$ |$$ | $$ |
  9. * \__/ \__| \_______| \_______|$$ ____/ \______/ \__| \__|
  10. * $$ |
  11. * $$ |
  12. * \__|
  13. * $$\ $$\ $$\ $$\
  14. * $$ | \__| \__| $$ |
  15. * $$ | $$\ $$$$$$\$$$$\ $$\ $$$$$$\ $$$$$$\ $$$$$$\
  16. * $$ | $$ |$$ _$$ _$$\ $$ |\_$$ _| $$ __$$\ $$ __$$\
  17. * $$ | $$ |$$ / $$ / $$ |$$ | $$ | $$$$$$$$ |$$ | \__|
  18. * $$ | $$ |$$ | $$ | $$ |$$ | $$ |$$\ $$ ____|$$ |
  19. * $$$$$$$$\ $$ |$$ | $$ | $$ |$$ | \$$$$ |\$$$$$$$\ $$ |
  20. * \________|\__|\__| \__| \__|\__| \____/ \_______|\__|
  21. *
  22. *
  23. *
  24. * This plugin limits the number of specific weapons or weapon classes on
  25. * a per team / per server basis. When a limit is reached, the last player
  26. * to equip the limited weapon will have that weapon's slot removed until
  27. * they change weapons. Limits can be specified in a configuration file
  28. * "weapon_limits.cfg", or using the console.
  29. *
  30. * Weapon classes & weapon definition indexes:
  31. * http://wiki.alliedmods.net/Team_Fortress_2_Item_Definition_Indexes
  32. *
  33. */
  34.  
  35. "weapon_limiter"
  36. {
  37. /**
  38. * Default enabled/disabled state of the plugin.
  39. */
  40. "Enabled" "1"
  41.  
  42. /**
  43. * Whitelist entries usage:
  44. *
  45. * - whitelist player for all weapons, weapon classes and slots
  46. * {
  47. * "player_id" "<STEAM ID>"
  48. * }
  49. *
  50. * - whitelist player for specific slot
  51. * {
  52. * "player_id" "<STEAM ID>"
  53. * "slot" "primary|secondary|melee|grenade|build|pda|item1|item2"
  54. * }
  55. *
  56. * - whitelist player for specific weapon
  57. * {
  58. * "player_id" "<STEAM ID>"
  59. * "item_index" "<Item Definition Index>"
  60. * }
  61. *
  62. * - whitelist player for weapon class
  63. * {
  64. * "player_id" "<STEAM ID>"
  65. * "item_class" "<Item Class String>"
  66. * }
  67. *
  68. */
  69. "Whitelist"
  70. {
  71. }
  72.  
  73. /**
  74. *
  75. * Weapon limits sample usage:
  76. *
  77. * - Limit specific weapon per team
  78. * {
  79. * "item_index" "<Item Definition Index>"
  80. * "team" "<limit>"
  81. * }
  82. *
  83. * - Limit weapon class for red and blue
  84. * {
  85. * "item_class" "<Item Class String>"
  86. * "red" "<limit>"
  87. * "blue" "<limit>"
  88. * }
  89. *
  90. * - Limit specific slot for all players
  91. * {
  92. * "slot" "primary|secondary|melee|grenade|build|pda|item1|item2"
  93. * "player_class" "scout|sniper|soldier|demo|medic|heavy|pyro|spy|engineer"
  94. * "total" "<limit>"
  95. * }
  96. *
  97. */
  98. "Limits"
  99. {
  100. "0"
  101. { // Blocks loch n load
  102. "item_index" "308"
  103. "team" "0"
  104. }
  105. "1"
  106. { // Blocks natelauncher
  107. "item_index" "19"
  108. "team" "0"
  109. }
  110. "2"
  111. { // Blocks pipebomb launcher
  112. "item_index" "20"
  113. "team" "0"
  114. }
  115. "3"
  116. { // Blocks scottish resistance
  117. "item_index" "130"
  118. "team" "0"
  119. }
  120. "4"
  121. { // Blocks Sticky Jumper
  122. "item_index" "265"
  123. "team" "0"
  124. }
  125. }
  126. }
Add Comment
Please, Sign In to add comment