View Single Post
Author Message
ferret
SourceMod Developer
Join Date: Dec 2004
Location: Atlanta, GA
Old 06-20-2007 , 14:41   Basic Chat (sm_say, sm_chat, sm_csay, etc)
#1

Basic Chat
Version 1.5.2

By: ferret!

Description

Adds a range of basic chat commands. These include multiple methods for admins to talk to players, and a private admin communication method.

Installation
  1. Place the basechat.smx file inside of the addons/sourcemod/plugins/ folder.
Commands
  • sm_say <message>
    • Message is sent to all players in the Chat window.
  • sm_chat <message>
    • Message is sent to all admins in the Chat window.
  • sm_csay <message>
    • Message is sent to all players in the center of the screen
  • sm_hsay <message>
    • Message is sent to all players as a hint message
  • sm_tsay [color] <message>
    • Message is sent to all players as a dialog in the top left, colored white by default.
    • Allowed colors: White, Red, Green, Blue, Yellow, Purple, Cyan, Orange, Pink, Olive, "Lime, Violet, Lightblue
  • sm_psay <target> <message>
    • A messge is privately sent to the target.
  • sm_msay <message>
    • Sends a message to every as a menu panel. Use \n for new lines.
  • say @message
    • Using standard chat, this is a shortcut for sm_say
  • say @@target message
    • Using standard chat, this is a shortcut for sm_psay
  • say @@@message
    • Using standard chat, this is a shortcut for sm_csay
  • say_team @message
    • Using the team chat, this is a shortcut for sm_chat
Cvars
  • sm_chat_mode
    • Allows non-admins to use the @alias for sm_chat. They cannot read the responses though. Default is on.
    • Set to 0 to turn off.
  • sm_psay_mode
    • Allows non-admins to use the @@alias for sm_psay. Default is off.
    • Set to 1 to turn on.
Changelog
  • Version 1.5.2
    • Removed special Rcon/client 0 naming.
  • Version 1.5.1
    • Fix for psay chat alias
  • Version 1.5 (July 5th)
    • sm_tsay has a color parameter now.
    • sm_psay now prefixed in green, and with Private from
    • SendDialogToAll() fixed
    • Using say via console now works, so you can bind it.
    • Abandoned Hungarian notation
    • RCON should now be able to use commands.
    • New say trigger: @@<player> <message> does sm_psay
    • New say trigger: @@@<message> does sm_csay
    • New cvar: sm_chat_mode - Controls whether players can use say_team @<message>. Default on. They still cannot read it though.
    • New cvar: sm_psay_mode - Allows players to use the psay alias "@@<player> <message>". Default is off.
    • New command: sm_msay
  • Version 1.4.3 (July 4th)
    • Final tsay fix
    • Final GetUserAdmin fix.
  • Version 1.4.2 (July 3rd)
    • Lol. Now using GetUserAdmin...
  • Version 1.4.1 (July 2nd)
    • Forgot to change one function to use NAME/IP authmethod stock.
  • Version 1.4 (July 2nd)
    • Add sm_tsay
    • sm_say and sm_chat now prefixed in green.
    • NAME and IP authmethods should now work with chat triggers.
  • Version 1.3 (June 29th)
    • Minor changes to conform to plugin submission rules
    • Added sm_basevotes_version Cvar
__________________
I'm a blast from the past!

Last edited by ferret; 07-26-2007 at 20:39.
ferret is offline