AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [Source 2009] Rainbowize! (https://forums.alliedmods.net/showthread.php?t=185003)

Dr. McKay 05-11-2012 15:15

[Source 2009] Rainbowize!
 
[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

http://i.imgur.com/azGZ1.png

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)

AeroAcrobat 05-11-2012 15:33

Re: [TF2] Rainbowize!
 
no offence but that yellow looks really ugly lol
but its nice to see that someone already used the new color option :)
keep on!

Dr. McKay 05-11-2012 15:40

Re: [TF2] Rainbowize!
 
Quote:

Originally Posted by AeroAcrobat (Post 1706980)
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.

noodleboy347 05-11-2012 16:55

Re: [TF2] Rainbowize!
 
Quote:

Originally Posted by Dr. McKay (Post 1706988)
Yeah, well, the alternative was hard to see.

You mean item color

Because I beg to differ

Dr. McKay 05-11-2012 17:12

Re: [TF2] Rainbowize!
 
Quote:

Originally Posted by noodleboy347 (Post 1707029)
You mean item color

Because I beg to differ

Why did I not think of that? I just tried full yellow.

xomp 05-11-2012 18:13

Re: [TF2] Rainbowize!
 
Very nice. Glad to see these coming out now :D

Dr. McKay 05-11-2012 18:24

Re: [TF2] Rainbowize!
 
There you go. 1.0.1 is up now and uses the Unique quality yellow.

xomp 05-11-2012 19:00

Re: [TF2] Rainbowize!
 
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.

ReFlexPoison 05-11-2012 19:06

Re: [TF2] Rainbowize!
 
Oh gawd xD its a rainbow =D

Dr. McKay 05-11-2012 19:29

Re: [TF2] Rainbowize!
 
Quote:

Originally Posted by xomp (Post 1707077)
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.


All times are GMT -4. The time now is 04:06.

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