function onSay(cid, words, param, channel)
if(param == '') then
return true
end
doPlayerBroadcastMessage(cid, param)
return true
end
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, " ", 1)
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
<talkaction log="yes" access="3" words="/b" event="script" value="broadcast.lua"/>
function onSay(cid, words, param, channel)
if(param == '') then
return true
end
doPlayerBroadcastMessage(cid, param)
return true
end
have you changed the acces from "3" to "1" as I told you?
go to data/talkactions/scripts and search broadcast.lua
now, inside there delet all and copy this:
PHP:function onSay(cid, words, param, channel) if(param == '') then return true end doPlayerBroadcastMessage(cid, param) return true end
it should work fine now
data\talkactions\scripts
data\talkactions\talkactions.xml
data\talkactions\scripts