function cmd_cl(plr,cmd,id,...)
if (not id) then
outputChatBox("U?yj: /cl <id/nick> <powod>", plr)
return
end
local powod=table.concat(arg, " ")
if (string.len(powod)<2) then
outputChatBox("U?yj: /cl <id/nick> <powod>", plr)
return
end
local target=exports["czaty"]:findPlayer(plr,id)
local opis="?"
if (target) then
id=getElementData(target,"id")
opis=getPlayerName(target)
end
reportView(tonumber(id))
local supportLogin=getElementData(plr, "admin:addText")
msgToSupport(supportLogin .. " usun??/??a raport na " .. opis .. "/".. id .. ": " .. powod)
end
addCommandHandler("cl", cmd_cl, false, false)