BroadcastMessage "Green & White" não pega, será que alguem pode postar ai como posso ajeitar?
Ex:
/bc green Bem vindos ao servidor!
/bc white Bem vindos ao servidor!
BroadcastMessage "Green & White" não pega, será que alguem pode postar ai como posso ajeitar?
Ex:
/bc green Bem vindos ao servidor!
/bc white Bem vindos ao servidor!
Copyright © .mcD|Wey, all right reserved! ;)
veja se seu script ta certo, ta ae o meu que eu sei que funciona:
local colors = {["advance"] = ESSAGE_EVENT_ADVANCE,
["event"] = MESSAGE_EVENT_DEFAULT,
["orange"] = MESSAGE_STATUS_CONSOLE_ORANGE,
["info"] = MESSAGE_INFO_DESCR,
["small"] = MESSAGE_STATUS_SMALL,
["blue"] = MESSAGE_STATUS_CONSOLE_BLUE,
["red"] = MESSAGE_STATUS_CONSOLE_RED,
["warning"] = MESSAGE_STATUS_WARNING,
["status"] = MESSAGE_STATUS_DEFAULT
}
function onSay(cid, words, param)
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(doBroadcastMessage(t[2], colors[t[1]]) == LUA_ERROR) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Bad message color type.")
return TRUE
end
return TRUE
end
vc acha nas talktions(se o seu server for o the forgotten server) o script da broadcastclass e coloca isso ai dentro :smile_positivo:
Assinatura bugada, movido para "sobre mim"
Vlw, consegui >.< =]
Copyright © .mcD|Wey, all right reserved! ;)