function onSay(cid, words, param)
local player = Player(cid)
if not player:getGroup():getAccess() then
return true
end
if player:getAccountType() < ACCOUNT_TYPE_GOD then
return false
end
local split = param:split(",")
local target = Player(split[1])
if not target then
player:sendCancelMessage("A player with that name is not online.")
return false
end
if not split[2] then
player:sendCancelMessage("Insufficient parameters.")
return false
end
local mountId = tonumber(split[2])
if not target:hasMount(mountId) then
target:addMount(mountId)
player:getPosition():sendMagicEffect(CONST_ME_MAGIC_GREEN)
else
player:sendCancelMessage(string.format("%s already have this mount.", target:getName()))
end
return false
end