插件开发

pause:比赛暂停

!pause 暂停比赛不破坏节奏,双方 !ready 后倒计时恢复。

对抗比赛标配:任何玩家 !pause 暂停比赛(冻结所有实体),处理掉线、争议后双方 !ready 确认,倒计时后恢复。

常用

  • !pause 请求暂停、!unpause/!ready 准备恢复。
  • 管理员 !forcepause / !forceunpause 强制操作。

文件位置

项目路径
插件文件plugins/optional/pause.smx
源码addons/sourcemod/scripting/optional/pause.sp
当前版本6.8.2

命令一览

命令类型权限说明
sm_forcepause管理员ADMFLAG_BANPauses the game and only allows admins to unpause
sm_forceunpause管理员ADMFLAG_BANUnpauses the game regardless of team ready status. Must be used to unpause admin pauses
sm_hide玩家/控制台-Shows a hidden pause panel
sm_pause玩家/控制台-Pauses the game
sm_ready玩家/控制台-Marks your team as ready for an unpause
sm_s玩家/控制台-Moves you to the spectator team
sm_show玩家/控制台-Hides the pause panel so other menus can be seen
sm_spec玩家/控制台-Moves you to the spectator team
sm_spectate玩家/控制台-Moves you to the spectator team
sm_toggleready玩家/控制台-Toggles your team's ready status
sm_unpause玩家/控制台-Marks your team as ready for an unpause
sm_unready玩家/控制台-Marks your team as ready for an unpause

聊天中输入 !命令名(去掉 sm_ 前缀)等价于控制台命令。