drifter8779
Member
- Joined
- Oct 17, 2009
- Messages
- 163
- Reaction score
- 7
I just wondered if an Auto Broad-Cast System has been released for TFS 1.0 or if anyone knows of one that works?
Its the same script as i linked, and he didnt ask for a cast system???Auto Broadcast:
by @NinjaCode:local t, i = {"test", "testing", "test123"}, 1 function onThink(interval) broadcastMessage(t[i], MESSAGE_STATUS_WARNING) i = i == #t and 1 or i + 1 return true end
and about cast system:
I think don't people release this for FREE.
You have probably wrote something wrongi tried this and got this error...
![]()
i had it at 3~ seconds for testingYou have probably wrote something wrong
<globalevent name="autoBroadcast" interval="3" script="others/broadcast.lua" />
function onThink(interval, lastExecution)
MENSAGEM = {
"message 1",
"message 2",
"message 3",
"message 4",
"message 5",
}
broadcastmessage(MENSAGEM[math.random(1,#MENSAGEM)],19)
end
return TRUE
end
local t, i = {
"message 1",
"message 2",
"message 3",
"message 4",
"message 5",
}, 1
function onThink(interval)
broadcastMessage(t[i], MESSAGE_STATUS_WARNING)
i = i == #t and 1 or i + 1
return true
end