hi everyone, so i wanted a talkactions which allows you to broadcast and i searched and found this
so i created a .lua named bc then i added this to talkactions.xml
<talkaction words="!bc" script="bc.lua"/>
then i try to write this !bc hello for example ,
and nothing happends , it just comes a !bc hello in normal if you know what i mean
so what iam doing wrong or missing something ?
i give rep+
Code:
function onSay(cid, words, param)
local money = 30000
if param ~= nil then
if doPlayerRemoveMoney(cid,money) == TRUE then
doBroadcastMessage("".. getCreatureName(cid) .."[".. getPlayerLevel(cid) .."]:".. param .."",MESSAGE_STATUS_CONSOLE_RED)
else
doPlayerSendCancel(cid,"You don't have enough money.")
end
else
doPlayerSendCancel(cid,"Param can't be nil.")
end
return FALSE
end
so i created a .lua named bc then i added this to talkactions.xml
<talkaction words="!bc" script="bc.lua"/>
then i try to write this !bc hello for example ,
and nothing happends , it just comes a !bc hello in normal if you know what i mean
so what iam doing wrong or missing something ?
i give rep+