限时抢购 50% 全场服务器优惠 最后一天!
距结束还剩: 00D 00H 00M 00S
background image
Game Servers 380 7 Days to Die 4 Abiotic Factor 2 Aloft 2 alt:V 2 Americas Army Proving Grounds 2 Among Us 2 Archean 2 ARK Survival Ascended 6 ARK Survival Evolved 3 Arma 3 3 Arma Reforger 2 Aska 2 AssaultCube 2 Assetto Corsa 3 Astro Colony 2 Astroneer 2 Automobilista 2 2 Avorion 2 Banana Shooter 2 Barotrauma 3 BATTALION Legacy 2 BeamNG.drive (BeamMP) 2 Black Mesa 2 Brickadia 2 Call of Duty 2 Citadel: Forged with Fire 2 ClassiCube 2 Clone Hero 2 Colony Survival 2 Conan Exiles 4 Contagion 2 Core Keeper 2 Counter-Strike 2 3 Craftopia 2 CryoFall 2 CS2D 2 Cube 2: Sauerbraten 2 Cubic Odyssey 2 DayZ 4 DDNet 2 DDRaceNetwork 2 Dead Matter 2 Dont Starve Together 4 Eco 2 Empyrion Galactic Survival 2 Enshrouded 3 Escape from Tarkov 2 Euro Truck Simulator 2 2 Factorio 2 Farming Simulator 25 2 Fistful of Frags 2 FiveM 3 FortressCraft Evolved 2 Foundry 2 Foundry VTT 2 Frozen Flame 2 FTL Tachyon 2 Garrys Mod 3 Ground Branch 2 Half-Life 2 Deathmatch 2 Hogwarp 2 Holdfast: Nations at War 2 HumanitZ 2 Hurtworld 2 Hytale 1 Icarus 2 Insurgency Sandstorm 2 IOSoccer 2 Just Cause 3 Multiplayer 2 Kerbal Space Program 2 Killing Floor 2 3 LeagueSandbox 2 Left 4 Dead 2 Left 4 Dead 2 3 Longvinter 2 Los Angeles Crimes 2 Medal of Honor 2 Midnight Ghost Hunt 2 Mindustry 2 Minecraft 4 Minetest 2 Modiverse 2 Mordhau 3 Mount & Blade II: Bannerlord 2 Myth of Empires 2 Nazi Zombies Portable 2 Necesse 2 NeosVR 2 Neverwinter Nights EE 2 Night of the Dead 2 Nightingale 2 No Love Lost 2 No More Room in Hell 2 No One Survived 2 Nova-Life Amboise 2 Nuclear Option 2 Onset 2 Open Fortress 2 OpenArena 2 OpenRA 2 OpenRCT2 2 OpenTTD 2 Operation Harsh Doorstop 2 Palworld 3 Path of Titans 2 Pavlov VR 3 PixARK 2 Plains of Pain 2 Portal Knights 2 Post Scriptum 2 Project Zomboid 8 Puck 2 Quake Live 2 R5Reloaded 2 RedM 2 Renown 2 Resonite 2 Return to Moria 2 Rimworld Together 2 Rising World 2 Risk of Rain 2 1 Rust 4 Satisfactory 1 SCP Secret Laboratory 3 SCUM 2 Smalland 2 Solace Crafting 2 Soldat 2 Soldat 2 2 Sonic Robo Blast 2 2 Sons of the Forest 2 Soulmask 2 SourceCoop 2 Space Engineers 3 Space Station 14 2 Squad 3 Starbound 3 StarMade 2 Stationeers 2 Stormworks 2 Subnautica Nitrox 2 Sunkenland 2 SuperTuxKart 2 Sven Co-op 2 Swords 'n Magic and Stuff 2 Team Fortress 2 3 Teeworlds 2 Terraria 3 TerraTech Worlds 2 TF2 Classified 2 The Forest 3 The Front 2 The Isle 2 Tower Unite 2 Trackmania 2 Unturned 4 Urban Terror 2 V Rising 3 Valheim 3 VEIN 2 Veloren 2 Vintage Story 3 Voyagers of Nera 2 Wolfenstein: Enemy Territory 2 Wreckfest 2 Wurm Unlimited 2 Xonotic 2 Zandronum 2 Getting Started 2 Network & Connectivity 1 Server Management 2
分类

Half-Life 2 Deathmatch 管理员命令


本指南涵盖 Half-Life 2: Deathmatch 服务器的管理员设置、Source 引擎 RCON 命令、玩家管理、地图命令、SourceMod/MetaMod 支持、自定义地图和故障排除。有关初始设置、配置和连接说明,请参阅 Half-Life 2: Deathmatch 服务器设置指南

1. RCON 设置

通过 RCON_PASSWORD 启动变量或在 hl2mp/cfg/server.cfg 中设置 RCON 密码:

rcon_password "YourStrongPassword"

通过游戏内控制台(~)进行身份验证:

rcon_password YourStrongPassword
rcon <command>

您也可以通过 GPanel Console 标签页直接发送命令。

请妥善保管您的 RCON 密码。 任何拥有该密码的人都拥有服务器的完全控制权。请使用强且唯一的密码。

2. 玩家管理

命令描述
rcon status列出玩家及其用户 ID、Steam ID、IP 和延迟。
rcon kick <userid>通过用户 ID 踢出玩家。
rcon kick "<playername>"通过显示名称踢出玩家。
rcon banid <minutes> <userid>通过用户 ID 封禁。0 = 永久封禁。
rcon banip <minutes> <ip>封禁一个 IP 地址。
rcon removeid <steamid>移除一个 Steam ID 封禁。
rcon removeip <ip>移除一个 IP 封禁。
rcon writeid将封禁列表保存到 banned_user.cfg
rcon writeip将 IP 封禁保存到 banned_ip.cfg
务必保存封禁列表。 封禁后请运行 rcon writeidrcon writeip。不保存的话,封禁将在重启后丢失。

3. 地图命令

命令描述
rcon changelevel <mapname>切换地图,保持玩家连接。
rcon map <mapname>从头加载地图,断开所有玩家连接。
rcon maps *列出所有可用地图。
rcon mp_timelimit <min>更改地图时间限制。
rcon mp_fraglimit <frags>更改击杀数限制。
rcon mp_restartgame 1重启当前回合并重置分数。

4. 服务器管理

命令描述
rcon hostname "Name"更改服务器名称。
rcon sv_password "pass"设置或更改加入密码。
rcon mp_friendlyfire <0/1>切换友军伤害开关。
rcon sv_alltalk <0/1>切换跨队语音聊天。
rcon say "message"发送全服聊天消息。
rcon exec <filename>执行一个配置文件。
rcon quit关闭服务器。

5. SourceMod 和 MetaMod

如需高级管理功能,请安装 MetaMod:SourceSourceMod

安装

  1. 从 GPanel 停止您的服务器。
  2. sourcemm.net 下载 MetaMod:Source 并通过 SFTP 上传到 hl2mp/
  3. sourcemod.net 下载 SourceMod 并上传到 hl2mp/
  4. 启动服务器并使用 meta versionsm version 进行验证。

添加 SourceMod 管理员

编辑 hl2mp/addons/sourcemod/configs/admins_simple.ini

"STEAM_0:1:12345678" "99:z"   // Full admin access

在聊天或控制台中使用 sm_admin 打开游戏内管理菜单。

6. 自定义地图

  1. 下载自定义地图 .bsp 文件。
  2. 通过 SFTP 上传到 hl2mp/maps/(参见 如何通过 SFTP 上传文件)。
  3. 将地图名称添加到 mapcycle.txt
  4. 使用 rcon changelevel mapname 进行测试。

7. 故障排除

  • 服务器启动时崩溃: 检查 GPanel 控制台中的错误信息。验证起始地图是否存在于 hl2mp/maps/ 中。
  • 玩家无法连接: 确认服务器正在运行,检查 GPanel 中的 IP/端口,并确保游戏版本匹配。
  • RCON 无法使用: 验证 rcon_password 已设置,并在发送命令前完成身份验证。
  • SourceMod 问题: 确保文件位于 hl2mp/(而非服务器根目录),并使用了正确的版本。

相关文章

需要帮助?

如果您遇到本指南未涵盖的 HL2DM 服务器问题,请 提交支持工单,并附上您的服务器 IP、问题描述以及 GPanel 控制台中的相关错误信息。


这篇文章对您有帮助吗?

Ready to Get Started?

The servers are booted, select your plan and become our latest satisfied client.