Raised This Month: $32 Target: $400
 8% 

[Source 2009] Rainbowize!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Plugin ID:
2947
Plugin Version:
1.7.0
Plugin Category:
Fun Stuff
Plugin Game:
Any
Plugin Dependencies:
Servers with this Plugin:
4 
Plugin Description:
Rainbows!
Old 05-11-2012 , 15:15   [Source 2009] Rainbowize!
Reply With Quote #1

[Source 2009] Rainbowize!

v1.7.0

Description:
Rainbow chat! Requires Simple Chat Processor.

Only works in Source 2009 games, which include:
  • Team Fortress 2
  • Counter-Strike: Source
  • Half-Life 2: Deathmatch
  • Day of Defeat: Source



Commands:
sm_rainbowize - toggles rainbow chat on yourself
sm_rainbowize <target> - toggles rainbow chat on target
sm_rainbowize <target> [1/0] - sets rainbow chat on target

Default flag is ADMFLAG_CHAT

Overrides:
By default, admins with ADMFLAG_CHAT can target both themselves and everyone else (respecting immunity, of course). If you want lower-level admins to only be able to target themselves, you need to override RainbowizeTargetOthers to the high-level admin flag and sm_rainbowize to the low-level admin flag.

If you want to override sm_rainbowize to a different flag with full access, override both sm_rainbowize and RainbowizeTargetOthers.

Cvars:
rainbowize_version - plugin version
sm_rainbowize_random (default 0) - should colors be in a random order?

Custom Colors:
You can specify custom colors. Simply create a file called rainbowize_colors.ini in your configs folder and put your custom colors there, one per line. Do not prefix the colors with a # symbol. All colors must be in hexadecimal notation. Alpha is not supported.

For example:

Code:
FF0000
FF7F00
FFD700
00AA00
0000FF
6600FF
8B00FF
If no config file is found, the default colors (shown above) will be used.

Requirements:
Requires the Simple Chat Processor plugin.

Developers:
This plugin fires the following forward:
PHP Code:
forward Action:OnRainbowizingChat(client); 
Return Plugin_Handled or Plugin_Stop to prevent chat from being rainbowized, or Plugin_Continue or Plugin_Changed to allow it. DO NOT START A NEW USERMESSAGE (e.g. PrintToChat, PrintToChatAll) WITHIN THIS FORWARD.

Installation:
Put rainbowize.smx into /addons/sourcemod/plugins and reboot your server or type "sm plugins load rainbowize" into your console or rcon.

Auto Update:
Install Updater. The plugin will be autoupdated according to your Updater settings. It'll work without Updater.

Changelog:
  • v1.7.0 (8/11/13)
    • Improved Updater integration and SCP detection
  • v1.6.0 (11/11/12)
    • Added custom colors ability
  • v1.5.0 (9/27/12)
    • Changed update URL to SVN repository
    • Plugin now properly fails to load when Simple Chat Processor is not installed
  • v1.4.0 (9/16/12)
    • Updated plugin to support the renamed Custom Chat Colors forwards
  • v1.3.0 (7/12/12)
    • Added ability to disable automatic updating (sm_rainbowize_auto_update)
  • v1.2.0 (6/2/12)
  • v1.1.0 (5/30/12)
    • Plugin now uses Simple Chat Processor
    • Added random color option
    • Added separate override options
    • Added OnRainbowizingChat forward
  • v1.0.0 (5/11/12)
    • Initial release

Download Plugin (rainbowize.smx)
View Source (rainbowize.sp)
__________________

Last edited by Dr. McKay; 07-14-2020 at 04:20.
Dr. McKay is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:31.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode