function onSay(cid, words, param, channel)
local ret = getAccountIdByName(getPlayerName(cid))
local list = getBanList(BAN_NOTATION, ret)
if(type(list) ~= "table" or table.maxn(list) <= 0) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You don't have any notations.")
return true
end
ret = "Notations for your account:\n"
for i, ban in ipairs(list) do
local tmp = ban.adminId ~= 0 and getPlayerNameByGUID(ban.adminId) or "unknown"
ret = ret .. "\nAdded at " .. os.date("%c", ban.added) .. " by " .. tmp .. " with reason: " .. getBanReason(ban.reason) .. " and comment: " .. ban.comment .. "."
end
doPlayerPopupFYI(cid, ret)
return true
end