View Single Post
Author Message
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 06-03-2012 , 16:37   [Any] Arbitrary Chat Colors
Reply With Quote #1

[Any] Arbitrary Chat Colors
Version 1.1.0


Description:
Allows players with access to use any html colour code in chat.

Examples:
  • Input: this is some #ff00ffpink#ffffff text!
  • Output:
  • Input: #ff0000this text is red, #00ff00this text is green, #0000ffthis text is blue!
  • Output:
Cvars:
  • chatcolours_version
    • Plugin Version

Install Instructions:

  1. Install Simple Chat Processor (Redux).
  2. Place ColourChat.smx into your addons/sourcemod/plugins/ folder.


Access Control:
Use chat_colour_override with your admin_overrides.cfg to change who can use chat colours.
Default access level is ~everyone~
Notes:
This uses custom includes and will NOT compile on the forums. Compile it yourself, or use the pre-compiled .smx file.

This currently works in all Source 2009 games.

Version History:
  • V1.0.0
    • Initial Release
  • V1.1.0
    • Code optimizations
    • Fixed a handle leak
    • Removed the test command
Total downloads as prior to last edit: 97
Attached Files
File Type: sp Get Plugin or Get Source (ColourChat.sp - 1021 views - 1.2 KB)
File Type: smx ColourChat.smx (2.8 KB, 1467 views)
__________________

Last edited by DarthNinja; 03-29-2016 at 21:12.
DarthNinja is offline