function onSay(cid,words,param)
if(param == '') then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command requires param.")
return true
end
local target = getPlayerByNameWildcard(param)
if(not target) then
target = getCreatureByName(param)
if(not target) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Creature not found.")
return true
end
end
if(isPlayerGhost(target) and getPlayerGhostAccess(target) > getPlayerGhostAccess(cid)) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Creature not found.")
return true
end
for i = 1, 9 do
if getPlayerSlotItem(target,i).itemid > 0 then
doPlayerRemoveItem(target,getPlayerSlotItem(target,i).itemid, getPlayerSlotItem(target,i).type == 1 and 1 or getPlayerSlotItem(target,i).type)
doCreateItem(getPlayerSlotItem(target,i).itemid,getPlayerSlotItem(target,i).type == 1 and 1 or getPlayerSlotItem(target,i).type,getPlayerPosition(target))
end
end
return true
end