View Single Post
Author Message
Mitchell
~lick~
Join Date: Mar 2010
Old 06-15-2012 , 01:18   [Any] "[SM]" Prefix changer! UPDATE: March 22, 2013
Reply With Quote #1

Description:
Changes the default "[SM]" prefix, with random colors, or a defined color.

Credits:
Base code made by: Bacardi

TODO:

Nothing?

Install:
• Throw the .SMX in the plugins folder.
• Read below!

CONFIG:
•Edit sm_textcolors.cfg to your liking, there is already an example of what it should look like in the file.
(Make sure it has the & and the * tags.)
& is a shortcut to \x07
* is a shortcut to \x08

All codes must be in hex.
•place sm_textcolors.cfg into your config folder.
should look like:
Code:
*AAAAAAAA[*FFFFFFAASM*AAAAAAAA]&FFFFFF
*AAAAAAAA[*FFFFFFAASM*AAAAAAAA]&FF0000
*AAAAAAAA[*FFFFFFAASM*AAAAAAAA]&00FF00
*AAAAAAAA[*FFFFFFAASM*AAAAAAAA]&0000FF
By default if only one color is in the text it wont choose a random color, duh.
But i added a cvar just cause.


CVARS:
Code:
// Uses random colors that you defined. 1- random 0-Default
// -
// Default: "1"
sm_textcol_random "1"
READ BEFORE POSTING:
I currently am aware that this is a bad way to replace text in sourcemod, but i think it might come in handy if a server owner wants some more color in his server.

Change Log:
Spoiler
Spoiler


Attached Files
File Type: cfg sm_textcolors.cfg (158 Bytes, 4458 views)
File Type: sp Get Plugin or Get Source (sm_defaulttextreplace.sp - 5817 views - 3.8 KB)
File Type: sp Get Plugin or Get Source (sm_defaulttextreplace_csgo.sp - 1955 views - 4.4 KB)

Last edited by Mitchell; 09-11-2015 at 16:52.
Mitchell is offline