免费插件

Team Battlefield

团队战场

两支球队、可调节友军火力、装备、个人球队物品、观众模式

imported

原作者:k1lly0u · 查看 uMod 官方页面 ↗

插件介绍

两支球队、可调节友军火力、装备、个人球队物品、观众模式

Similar to the current game styles on Battlefield-type servers, but with teams.

This plugin has a inbuilt chat and death notification system. If you do not wish to use these you may disable them in the configuration.

Note: Using other chat based handlers can result in plugin conflict.

You must create 2 spawn files, one for each team. Failure to do so will result in the plugin turning itself off. You can also create a optional Admin spawn file. Use Spawns Database to create the spawnfile and set the file names in the configuration.

主要用途

主要用于imported等服务端功能。 本插件由 k1lly0u 发布,当前目录记录版本为 v2.1.45,uMod 累计下载 17,907 次。

适用场景

  • 希望扩展原版服务器功能的服主

功能分类

imported
查看 uMod 官方英文简介

Two teams, adjustable friendly-fire, kits, individual team items, spectator mode

指令说明

/switchteam

Open the team selection GUI and allows player to change teams/spectate

/t

Team chat, just type /t before your message to send to all players on your team

配置说明

{ "Admin": { // Admin team options "Chat_Color": "<color=#00ff04>", "Chat_Prefix": "[Admin] ", "Gear": [ // Default Admin gear { "amount": 1, "container": "wear", // Container options are wear, belt and main "name": "Hoodie", "shortname": "hoodie", "skin": 10129 }, { "amount": 1, "container": "wear", "name": "Pants", "shortname": "pants", "skin": 10078 }, { "amount": 1, "container": "wear", "name": "Gloves", "shortname": "burlap.gloves", "skin": 10128 }, { "amount": 1, "container": "wear", "name": "Boots", "shortname": "shoes.boots", "skin": 10023 } ], "Spawnfile": "admin_spawns" }, "Gear": { "CommonGear": [ // Common gear all players will receive { "amount": 1, "container": "belt", "name": "Machete", "shortname": "machete", "skin": 0 }, { "amount": 2, "container": "belt", "name": "Medical Syringe", "shortname": "syringe.medical", "skin": 0 }, { "amount": 1, "container": "belt", "name": "Bandage", "shortname": "bandage", "skin": 0 }, { "amount": 1, "container": "belt", "name": "Paper Map", "shortname": "map", "skin": 0 }, { "amount": 1, "container": "wear", "name": "Metal ChestPlate", "shortname": "metal.plate.torso", "skin": 0 } ], "StartingWeapons": [ // Weapons all players will receive { "ammo": 120, "ammoType": "ammo.rifle.hv", "amount": 1, "container": "belt", "contents": [ "weapon.mod.holosight" ], "name": "AssaultRifle", "shortname": "rifle.ak", "skin": 0 }, { "ammo": 120, "ammoType": "ammo.pistol.hv", "amount": 1, "container": "belt", "contents": [ "weapon.mod.silencer" ], "name": "SemiAutoPistol", "shortname": "pistol.semiauto", "skin": 0 } ] }, "Options": { "BroadcastDeath": true, // Broadcast player deaths "FF_DamageScale": 0.5, // Friendlyfire damage scale (1.0 is normal, 0.5 is 50%) "MaximumTeamCountDifference": 5, // Maximum team count difference before auto assigning new players "RemoveSleeper_Timer": 5, // The amount of time a offline players stats will remain in memory "UsePluginChatControl": true // Chat controller (shows teams and colors name) }, "ScoreboardUI": { // Adjust the scoreboard position and dimensions "XDimension": 0.22, "XPosition": 0.39, "YDimension": 0.05, "YPosition": 0.95 }, "Spectators": { // Spectator options "Chat_Color": "<color=white>", "Chat_Prefix": "[Spectator] ", "EnableSpectators": true // Enable/Disable spectator mode }, "TeamA": { // Team A options "Chat_Color": "<color=#0066ff>", "Chat_Prefix": "[Team A] ", "Gear": [ { "amount": 1, "container": "wear", "name": "Hoodie", "shortname": "hoodie", "skin": 14178 }, { "amount": 1, "container": "wear", "name": "Pants", "shortname": "pants", "skin": 10020 }, { "amount": 1, "container": "wear", "name": "Gloves", "shortname": "burlap.gloves", "skin": 10128 }, { "amount": 1, "container": "wear", "name": "Boots", "shortname": "shoes.boots", "skin": 10023 } ], "Spawnfile": "team_a_spawns" }, "TeamB": { // Team B Options "Chat_Color": "<color=#ff0000>", "Chat_Prefix": "[Team B] ", "Gear": [ { "amount": 1, "container": "wear", "name": "Hoodie", "shortname": "hoodie", "skin": 0 }, { "amount": 1, "container": "wear", "name": "Pants", "shortname": "pants", "skin": 10019 }, { "amount": 1, "container": "wear", "name": "Gloves", "shortname": "burlap.gloves", "skin": 10128 }, { "amount": 1, "container": "wear", "name": "Boots", "shortname": "shoes.boots", "skin": 10023 } ], "Spawnfile": "team_b_spawns" } }

官方配置示例

{
  "Admin": { // Admin team options
    "Chat_Color": "<color=#00ff04>",
    "Chat_Prefix": "[Admin] ",
    "Gear": [ // Default Admin gear
      {
        "amount": 1,
        "container": "wear", // Container options are wear, belt and main
        "name": "Hoodie",
        "shortname": "hoodie",
        "skin": 10129
      },
      {
        "amount": 1,
        "container": "wear",
        "name": "Pants",
        "shortname": "pants",
        "skin": 10078
      },
      {
        "amount": 1,
        "container": "wear",
        "name": "Gloves",
        "shortname": "burlap.gloves",
        "skin": 10128
      },
      {
        "amount": 1,
        "container": "wear",
        "name": "Boots",
        "shortname": "shoes.boots",
        "skin": 10023
      }
    ],
    "Spawnfile": "admin_spawns"
  },
  "Gear": {
    "CommonGear": [ // Common gear all players will receive
      {
        "amount": 1,
        "container": "belt",
        "name": "Machete",
        "shortname": "machete",
        "skin": 0
      },
      {
        "amount": 2,
        "container": "belt",
        "name": "Medical Syringe",
        "shortname": "syringe.medical",
        "skin": 0
      },
      {
        "amount": 1,
        "container": "belt",
        "name": "Bandage",
        "shortname": "bandage",
        "skin": 0
      },
      {
        "amount": 1,
        "container": "belt",
        "name": "Paper Map",
        "shortname": "map",
        "skin": 0
      },
      {
        "amount": 1,
        "container": "wear",
        "name": "Metal ChestPlate",
        "shortname": "metal.plate.torso",
        "skin": 0
      }
    ],
    "StartingWeapons": [ // Weapons all players will receive
      {
        "ammo": 120,
        "ammoType": "ammo.rifle.hv",
        "amount": 1,
        "container": "belt",
        "contents": [
          "weapon.mod.holosight"
        ],
        "name": "AssaultRifle",
        "shortname": "rifle.ak",
        "skin": 0
      },
      {
        "ammo": 120,
        "ammoType": "ammo.pistol.hv",
        "amount": 1,
        "container": "belt",
        "contents": [
          "weapon.mod.silencer"
        ],
        "name": "SemiAutoPistol",
        "shortname": "pistol.semiauto",
        "skin": 0
      }
    ]
  },
  "Options": {
    "BroadcastDeath": true, // Broadcast player deaths
    "FF_DamageScale": 0.5, // Friendlyfire damage scale (1.0 is normal, 0.5 is 50%)
    "MaximumTeamCountDifference": 5, // Maximum team count difference before auto assigning new players
    "RemoveSleeper_Timer": 5, // The amount of time a offline players stats will remain in memory
    "UsePluginChatControl": true // Chat controller (shows teams and colors name)
  },
  "ScoreboardUI": { // Adjust the scoreboard position and dimensions
    "XDimension": 0.22,
    "XPosition": 0.39,
    "YDimension": 0.05,
    "YPosition": 0.95
  },
  "Spectators": { // Spectator options
    "Chat_Color": "<color=white>",
    "Chat_Prefix": "[Spectator] ",
    "EnableSpectators": true // Enable/Disable spectator mode
  },
  "TeamA": { // Team A options
    "Chat_Color": "<color=#0066ff>",
    "Chat_Prefix": "[Team A] ",
    "Gear": [
      {
        "amount": 1,
        "container": "wear",
        "name": "Hoodie",
        "shortname": "hoodie",
        "skin": 14178
      },
      {
        "amount": 1,
        "container": "wear",
        "name": "Pants",
        "shortname": "pants",
        "skin": 10020
      },
      {
        "amount": 1,
        "container": "wear",
        "name": "Gloves",
        "shortname": "burlap.gloves",
        "skin": 10128
      },
      {
        "amount": 1,
        "container": "wear",
        "name": "Boots",
        "shortname": "shoes.boots",
        "skin": 10023
      }
    ],
    "Spawnfile": "team_a_spawns"
  },
  "TeamB": { // Team B Options
    "Chat_Color": "<color=#ff0000>",
    "Chat_Prefix": "[Team B] ",
    "Gear": [
      {
        "amount": 1,
        "container": "wear",
        "name": "Hoodie",
        "shortname": "hoodie",
        "skin": 0
      },
      {
        "amount": 1,
        "container": "wear",
        "name": "Pants",
        "shortname": "pants",
        "skin": 10019
      },
      {
        "amount": 1,
        "container": "wear",
        "name": "Gloves",
        "shortname": "burlap.gloves",
        "skin": 10128
      },
      {
        "amount": 1,
        "container": "wear",
        "name": "Boots",
        "shortname": "shoes.boots",
        "skin": 10023
      }
    ],
    "Spawnfile": "team_b_spawns"
  }
}
string GetPlayerTeams(ulong playerID) // Returns the players team (A,B,SPECTATOR,ADMIN)

更新日志

最新版本: v2.1.45
最后版本发布: 2020-08-07
最后更新(条目): 2026-07-18

本站记录 uMod 官方插件信息。完整的历史更新日志请参阅 uMod 官方页面

安装方法

  1. 确认服务器已安装 Oxide / uMod 或兼容的 Carbon 框架。
  2. 登录本站后点击"下载",由 uMod 官方地址获取作者发布的文件。
  3. 将 .cs 文件放入服务器的 oxide/plugins 目录。
  4. 观察服务端控制台,确认插件编译并成功加载。
  5. 具体配置、权限、指令和依赖请查看原作者的 uMod 页面。

使用前注意

  • Rust 更新后,请先确认插件是否仍兼容当前服务端版本。
  • 修改配置前建议备份原配置文件,并在测试服验证后再部署到正式服。
  • 若插件依赖其他扩展或库,以 uMod 原作者页面的最新说明为准。
  • 本站中文内容用于辅助理解,遇到版本差异时以官方英文文档和源码为准。
来源说明

中文介绍由 uMod 官方简介翻译整理。插件著作权、许可证、完整文档和最新发布状态均以原作者及 uMod 官方页面为准。