Thorn
Spriting since 2013
hello people of otland, well i have this problem, when the tutor use /bc comand to speak in red, the message is ok, but i want that that tha name of the tutor is in the message too, i don't know if i explain myself...
this is the broadcast.lua i have for that command
this is the broadcast.lua i have for that command
Lua:
function onSay(cid, words, param, channel)
if(param == '') then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.")
return true
end
local t = string.explode(param, ";")
if(not t[2]) then
doBroadcastMessage(t[1])
elseif(not doBroadcastMessage(t[2], MESSAGE_TYPES[t[1]])) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Bad message color type.")
end
return true
end