HEEEEEEEEY GUYS!!!! This script was made by me. I accept opinions
broadcastprivate.lua:
talkactions.xml:
Bye!!
broadcastprivate.lua:
Code:
function onSay(cid, words, param)
t = string.explode(param, ",")
if not t[2] then
doPlayerSendCancel(cid, "Invalid command! :(")
elseif not getPlayerByName(t[1]) then
doPlayerSendCancel(cid, "This player is not online. Try again later")
end
doPlayerSendTextMessage(getPlayerByName(t[1]), MESSAGE_STATUS_WARNING, t[2])
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Your message was sent to "..getCreatureName(getPlayerByName(t[1]))..".")
return true
end
talkactions.xml:
Code:
<talkactionlog="yes"access="3"words="/bcp"event="script"value="broadcastprivate.lua"/>
Bye!!