Multi-Colored Server Messages
By Valgoid (6/9/2014) Version 1.0
Similar To ULX
Features:
- Over millions of colors in 1 message
- Unlimited amount of messages
- Unlimited text in messages
- Customizable time for messages to display
- Works on single player!
How To Use:
To make a multi-colored message see the code below:
{Color(0,255,0), "Feel free to join our steam group, type !join in chat", Color(255,0,0), " please join!"}
How This Code Comes Out: "Feel free to join our steam group, type !join in chat please join!"
To make a single-colored message see the code below:
{Color(255,155,0), "Feel free to join our steam group, type !join in chat"}
How This Code Comes Out: "Feel free to join our steam group, type !join in chat!"
Requirements:
None
Get The Script:
--[[----------------------------------
Multi-Colored Server Messages
By Valgoid
Version 1.0
----------------------------------]]--
if SERVER then AddCSLuaFile() return end
local adverts = { -- Add messages here in new line
{Color(255,255,255), "Feel free to join our steam group, type !join in chat"},
{Color(255,255,255), "Please make sure to read the rules, type !motd in chat"},
}
local index = 0
local function advertise()
timer.Simple( 180, advertise ) -- Edit time here (in seconds)
chat.AddText( unpack( adverts[ index % #adverts + 1 ] ) )
index = index + 1;
end
advertise()
How To Install:
Name the script something like "messages.lua"
Place it into your autorun folder