Thorn
Spriting since 2013
Hello guys!! is it possible to change this broadcast script to work with access?? account access? i want onluy gms and tutor be allowed to broadcast, but without changing the flag values?
tfs 1.3
tfs 1.3
LUA:
local color = {
['green'] = MESSAGE_INFO_DESCR,
['blue'] = MESSAGE_STATUS_CONSOLE_BLUE,
['orange'] = MESSAGE_STATUS_CONSOLE_ORANGE,
['white'] = MESSAGE_EVENT_ADVANCE,
}
function onSay(player, words, param)
if not player:hasFlag(PlayerFlag_CanBroadcast) then
return true
end
local split = param:split(",")
if color[split[1]] == nil then
player:sendCancelMessage("Wrong color")
return false
end
broadcastMessage(split[2], color[split[1]])
return false
end