Ulysses Stuff > Releases
Multi-Colored Server Messages
Valgoid:
Multi-Colored Server MessagesBy 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:
--- Code: ---{Color(0,255,0), "Feel free to join our steam group, type !join in chat", Color(255,0,0), " please join!"}
--- End code ---
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:
--- Code: ---{Color(255,155,0), "Feel free to join our steam group, type !join in chat"}
--- End code ---
How This Code Comes Out: "Feel free to join our steam group, type !join in chat!"
Requirements:
None
Get The Script:
--- Code: -----[[----------------------------------
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()
--- End code ---
How To Install:
Name the script something like "messages.lua"
Place it into your autorun folder
JamminR:
ULX can be set up for multi-color messages.
They would simply need to be grouped together. First in one color, second in the next.
Yes, perhaps I'm a bit biased, but this seems to duplicate what adverts in ULX can do - just in a different, perhaps not as readable, configuration method.
Valgoid:
Oh ok.
MrPresident:
Don't let that keep you from continuing to learn.
Not everything you make will be the new must-have addon for servers and certainly not your first scripts, but the best way to learn is to keep doing and by posting them here you can get valuable feedback from the community that will help you to learn and grow!
Valgoid:
Thanks :D
Navigation
[0] Message Index
[#] Next page
Go to full version