function onSay(cid, words, param, channel)
if(param ~= "")then
local params = list({"name", "outfit", "addon"}, string.explode(param, ",", 3))
local player = getPlayerByName(params["name"])
if(isPlayer(player) == true)then
local addon = (params["outfit", "addon"])
if (getNotationsCount(getPlayerAccount(player)) < 1) then
doPlayerAddOutfit(player, addons)
doPlayerSendTextMessage(player, MESSAGE_STATUS_CONSOLE_ORANGE, "You have recieved a new outfit from ".. getCreatureName(cid) ..".")
doSendMagicEffect(getCreaturePosition(player), CONST_ME_GIFT_WRAPS)
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "This player has to many notations to recieve this outfit.")
end
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "This player is not online.")
end
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Command requires param.")
end
return true
end