Raised This Month: $12 Target: $400
 3% 

[Source 2009] Rainbowize!


Post New Thread Reply   
 
Thread Tools Display Modes
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:
21 
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
AeroAcrobat
AlliedModders Donor
Join Date: Apr 2011
Location: lives in a circus
Old 05-11-2012 , 15:33   Re: [TF2] Rainbowize!
Reply With Quote #2

no offence but that yellow looks really ugly lol
but its nice to see that someone already used the new color option
keep on!
__________________
AeroAcrobat is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 05-11-2012 , 15:40   Re: [TF2] Rainbowize!
Reply With Quote #3

Quote:
Originally Posted by AeroAcrobat View Post
no offence but that yellow looks really ugly lol
but its nice to see that someone already used the new color option
keep on!
Yeah, well, the alternative was hard to see.
__________________
Dr. McKay is offline
noodleboy347
AlliedModders Donor
Join Date: Mar 2009
Old 05-11-2012 , 16:55   Re: [TF2] Rainbowize!
Reply With Quote #4

Quote:
Originally Posted by Dr. McKay View Post
Yeah, well, the alternative was hard to see.
You mean item color

Because I beg to differ
noodleboy347 is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 05-11-2012 , 17:12   Re: [TF2] Rainbowize!
Reply With Quote #5

Quote:
Originally Posted by noodleboy347 View Post
You mean item color

Because I beg to differ
Why did I not think of that? I just tried full yellow.
__________________
Dr. McKay is offline
xomp
BANNED
Join Date: Jul 2008
Old 05-11-2012 , 18:13   Re: [TF2] Rainbowize!
Reply With Quote #6

Very nice. Glad to see these coming out now
xomp is offline
Send a message via Skype™ to xomp
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 05-11-2012 , 18:24   Re: [TF2] Rainbowize!
Reply With Quote #7

There you go. 1.0.1 is up now and uses the Unique quality yellow.
__________________
Dr. McKay is offline
xomp
BANNED
Join Date: Jul 2008
Old 05-11-2012 , 19:00   Re: [TF2] Rainbowize!
Reply With Quote #8

Something I noticed while using this plugin it blocks triggers from other plugins. Like rank from DarthNinja's stats plugin. Might want to fix it if possible.

Last edited by xomp; 05-11-2012 at 19:03.
xomp is offline
Send a message via Skype™ to xomp
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: ☠☠☠
Old 05-11-2012 , 19:06   Re: [TF2] Rainbowize!
Reply With Quote #9

Oh gawd xD its a rainbow =D
ReFlexPoison is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 05-11-2012 , 19:29   Re: [TF2] Rainbowize!
Reply With Quote #10

Quote:
Originally Posted by xomp View Post
Something I noticed while using this plugin it blocks triggers from other plugins. Like rank from DarthNinja's stats plugin. Might want to fix it if possible.
I'd have to rewrite this thing to use Simple Chat Processor. I'll get around to it.
__________________
Dr. McKay is offline
Reply


Thread Tools
Display Modes

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 05:59.


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