function onSay(cid, words, param)
local tid = getPlayerByName(param)
if not isPlayer(tid) then
return doPlayerSendCancel(cid, param .. " is not online or doesn't exists."), true
end
if words == "!love" then
setPlayerStorageValue(tid, 12913, cid.uid)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, getCreatureName(cid) .. "["..getPlayerLevel(cid).."]: "..getCreatureName(tid).." would you marry me?")
return true
end
if not (getPlayerStorageValue(cid, 12913) == tid.uid) then
return doPlayerSendCancel(cid, "This player didn't propose to you."), true
end
if words == "!accept" then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, getCreatureName(cid) .. "["..getPlayerLevel(cid).."]: Yes, I do!")
setPlayerStorageValue(cid, 12914, tid.uid)
setPlayerStorageValue(cid, 12914, cid.uid)
elseif words == "!reject" then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, getCreatureName(cid) .. "["..getPlayerLevel(cid).."]: No.")
end
return true
end
Ficou bem simples e nao serve para nada.
Ex: Colaborador de Scripting
Contato: bepokemon@hotmail.com