function onSay(player, words, param)
if not player:getGroup():getAccess() then
return true
end
if player:getAccountType() < ACCOUNT_TYPE_GOD then
return false
end
local giftId = 5092
for _, onlinePlayer in pairs(Game.getPlayers()) do
local gift = Game.createItem(giftId, 1)
local message = ("You have received %s."):format(gift:getNameDescription(gift:getSubType(), true))
if not onlinePlayer:addItemEx(gift, false) then
onlinePlayer:getDepotChest(1, true):addItemEx(gift, FLAG_NOLIMIT)
message = ("%s It has been sent to your inbox because it couldn't be carried."):format(message)
end
onlinePlayer:sendTextMessage(MESSAGE_EVENT_ADVANCE, message)
end
end