Tickit
Member
Hi im looking for a broadcast system like:
You need one item to make one broadcast
Does someone got a script like this?
talkactions.xml
You need one item to make one broadcast
Does someone got a script like this?
talkactions.xml
PHP:
<talkaction words="!broadcast" event="script" value="broadcastservice.lua"/>[/QUOTE]
data\talactions\scripts\broadcastservice
[QUOTE]function onSay(cid, words, param, channel)
if param == "" then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You don\'t have anything to say.")
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
return TRUE
end
if param ~= "" and doPlayerRemoveItem(cid, 11319, 1) == TRUE then
doBroadcastMessage(getPlayerName(cid) .." says:\n".. param, MESSAGE_STATUS_WARNING)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have broadcasted.")
else
doPlayerSendCancel(cid, "You must have an addon doll to get this addon.")
return TRUE
end
end
Last edited: