Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /***
- * $$\ $$\
- * $$ | $\ $$ |
- * $$ |$$$\ $$ | $$$$$$\ $$$$$$\ $$$$$$\ $$$$$$\ $$$$$$$\
- * $$ $$ $$\$$ |$$ __$$\ \____$$\ $$ __$$\ $$ __$$\ $$ __$$\
- * $$$$ _$$$$ |$$$$$$$$ | $$$$$$$ |$$ / $$ |$$ / $$ |$$ | $$ |
- * $$$ / \$$$ |$$ ____|$$ __$$ |$$ | $$ |$$ | $$ |$$ | $$ |
- * $$ / \$$ |\$$$$$$$\ \$$$$$$$ |$$$$$$$ |\$$$$$$ |$$ | $$ |
- * \__/ \__| \_______| \_______|$$ ____/ \______/ \__| \__|
- * $$ |
- * $$ |
- * \__|
- * $$\ $$\ $$\ $$\
- * $$ | \__| \__| $$ |
- * $$ | $$\ $$$$$$\$$$$\ $$\ $$$$$$\ $$$$$$\ $$$$$$\
- * $$ | $$ |$$ _$$ _$$\ $$ |\_$$ _| $$ __$$\ $$ __$$\
- * $$ | $$ |$$ / $$ / $$ |$$ | $$ | $$$$$$$$ |$$ | \__|
- * $$ | $$ |$$ | $$ | $$ |$$ | $$ |$$\ $$ ____|$$ |
- * $$$$$$$$\ $$ |$$ | $$ | $$ |$$ | \$$$$ |\$$$$$$$\ $$ |
- * \________|\__|\__| \__| \__|\__| \____/ \_______|\__|
- *
- *
- *
- * This plugin limits the number of specific weapons or weapon classes on
- * a per team / per server basis. When a limit is reached, the last player
- * to equip the limited weapon will have that weapon's slot removed until
- * they change weapons. Limits can be specified in a configuration file
- * "weapon_limits.cfg", or using the console.
- *
- * Weapon classes & weapon definition indexes:
- * http://wiki.alliedmods.net/Team_Fortress_2_Item_Definition_Indexes
- *
- */
- "weapon_limiter"
- {
- /**
- * Default enabled/disabled state of the plugin.
- */
- "Enabled" "1"
- /**
- * Whitelist entries usage:
- *
- * - whitelist player for all weapons, weapon classes and slots
- * {
- * "player_id" "<STEAM ID>"
- * }
- *
- * - whitelist player for specific slot
- * {
- * "player_id" "<STEAM ID>"
- * "slot" "primary|secondary|melee|grenade|build|pda|item1|item2"
- * }
- *
- * - whitelist player for specific weapon
- * {
- * "player_id" "<STEAM ID>"
- * "item_index" "<Item Definition Index>"
- * }
- *
- * - whitelist player for weapon class
- * {
- * "player_id" "<STEAM ID>"
- * "item_class" "<Item Class String>"
- * }
- *
- */
- "Whitelist"
- {
- }
- /**
- *
- * Weapon limits sample usage:
- *
- * - Limit specific weapon per team
- * {
- * "item_index" "<Item Definition Index>"
- * "team" "<limit>"
- * }
- *
- * - Limit weapon class for red and blue
- * {
- * "item_class" "<Item Class String>"
- * "red" "<limit>"
- * "blue" "<limit>"
- * }
- *
- * - Limit specific slot for all players
- * {
- * "slot" "primary|secondary|melee|grenade|build|pda|item1|item2"
- * "player_class" "scout|sniper|soldier|demo|medic|heavy|pyro|spy|engineer"
- * "total" "<limit>"
- * }
- *
- */
- "Limits"
- {
- "0"
- { // Blocks loch n load
- "item_index" "308"
- "team" "0"
- }
- "1"
- { // Blocks natelauncher
- "item_index" "19"
- "team" "0"
- }
- "2"
- { // Blocks pipebomb launcher
- "item_index" "20"
- "team" "0"
- }
- "3"
- { // Blocks scottish resistance
- "item_index" "130"
- "team" "0"
- }
- "4"
- { // Blocks Sticky Jumper
- "item_index" "265"
- "team" "0"
- }
- }
- }
Add Comment
Please, Sign In to add comment