function onSay(cid, words, param)
	if(param == "") then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You need to type the parameter.")
		doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
		return false
	else
		param = string.explode(param, " ")
	end

	local playerPos = getPlayerPosition(cid)

	local itemid = tonumber(param[1])
	local itemcount = param[2] ~= nil and tonumber(param[2]) or 1
	local count = math.min(itemcount, 100)
	
	if isValidItemId(itemid) == false then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Invalid item id.")	
		doSendMagicEffect(playerPos, CONST_ME_POFF)
		return false
	end

	if isInArray({ ITEM_MAGICWALL, ITEM_MAGICWALL_SAFE, ITEM_WILDGROWTH, ITEM_WILDGROWTH_SAFE }, itemid) and 
		getBooleanFromString("magic_wall_disappear_on_walk", true) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Please, use /ifr to create magic walls and wild growths.")
		doSendMagicEffect(playerPos, CONST_ME_POFF)
		return false
	end

	local item = doCreateItemEx(itemid, itemcount)
	if item ~= false then
		if doPlayerAddItemEx(cid, item, true) ~= RETURNVALUE_NOERROR then
			doRemoveItem(item)
		else
			doDecayItem(item)
			doSendMagicEffect(playerPos, CONST_ME_MAGIC_GREEN)
			return false
		end
	end

	doSendMagicEffect(playerPos, CONST_ME_POFF)
	doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Item could not be summoned.")
	return false
end
