I was just wondering if there is a script/addon that sends an anouncemnet every like 30-60 seconds? like kind of the one thats in darkrp except i can choose when it sends the message and what the message says?
If you use Assmod for a server it sends a message every minute or something. You can change the hints im pretty sure.
[lua]
local announcements = {
"Our server rocks!",
"Quit DMing. You know who you are.",
"Visit our forums at www.coolioclan.com"
}
function PrintAnnouncements()
local to_announce = table.Random(announcements)
for _,v in ipairs(player.GetAll()) do
v:ChatPrint(to_announce)
end
end
timer.Create("printAnnouncements",60,0,PrintAnnouncements)[/lua]
That should do what you want. Just place your announcements in the table.
Wait so where do i put this? Im new to this kind of stuff
Bump
lua/autorun/server I believe.
Sorry, you need to Log In to post a reply to this thread.