插件开发

basecomm:禁言禁麦

sm_gag / sm_mute / sm_silence 底层命令,SourceComms 在其上扩展。

SourceMod 官方通讯控制:文字禁言(gag)、语音禁麦(mute)、双禁(silence)。Anne 服由 sbpp_comms 在其上做入库和时长管理,网页封禁页可查记录。全部需要 ADMFLAG_CHAT。

文件位置

项目路径
插件文件plugins/basecomm.smx
源码addons/sourcemod/scripting/sourcemod/basecomm.sp

命令一览

命令类型权限说明
sm_gag管理员ADMFLAG_CHATsm_gag <player> - Removes a player's ability to use chat.
sm_mute管理员ADMFLAG_CHATsm_mute <player> - Removes a player's ability to use voice.
sm_silence管理员ADMFLAG_CHATsm_silence <player> - Removes a player's ability to use voice or chat.
sm_ungag管理员ADMFLAG_CHATsm_ungag <player> - Restores a player's ability to use chat.
sm_unmute管理员ADMFLAG_CHATsm_unmute <player> - Restores a player's ability to use voice.
sm_unsilence管理员ADMFLAG_CHATsm_unsilence <player> - Restores a player's ability to use voice and chat.

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