插件开发

basechat:管理聊天命令

管理员聊天工具:全体公告、心理聊天、管理员频道。

SourceMod 官方聊天命令集,供管理员发公告和内部沟通。

常用

  • sm_say 全体公告、sm_csay 屏幕中央公告、sm_hsay 提示框公告、sm_msay 菜单公告。
  • sm_chat 管理员频道聊天、sm_psay 私聊。

文件位置

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

命令一览

命令类型权限说明
sm_chat管理员ADMFLAG_CHATsm_chat <message> - sends message to admins
sm_csay管理员ADMFLAG_CHATsm_csay <message> - sends centered message to all players
sm_dsay管理员ADMFLAG_CHATsm_dsay <message> - sends hud message to all players
sm_hsay管理员ADMFLAG_CHATsm_hsay <message> - sends hint message to all players
sm_msay管理员ADMFLAG_CHATsm_msay <message> - sends message as a menu panel
sm_psay管理员ADMFLAG_CHATsm_psay <name or #userid> <message> - sends private message
sm_say管理员ADMFLAG_CHATsm_say <message> - sends message to all players
sm_tsay管理员ADMFLAG_CHATsm_tsay [color] <message> - sends top-left message to all players

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