mam problem poniewaz mozna przyjmowania rapsa jak nie ma rapsa i sie nalicza
[code]addCommandHandler("pr", function(plr,cmd,id,...)
if not getAdmin(plr) then
return
end
local reason = table.concat({...}, " ")
if not id then return outputChatBox("ⓘ#ffffff /pr <id> <odpowied?>", plr, 255, 0, 0, true) end
if not reason then return outputChatBox("ⓘ#ffffff /pr <id> <odpowied?>", plr, 255, 0, 0, true) end
local target=exports["pystories-core"]:findPlayer(plr,id)
opis = "U?ytkownik offline"
if target then
id = getElementData(target,"id")
opis = getPlayerName(target)
if target ~= plr and not getAdmin(target) then
end
end
if opis == "U?ytkownik offline" then outputChatBox("ⓘ#ffffff Nie ma takiego gracza", plr, 255, 0, 0, true) return end
if target == plr then
outputChatBox("ⓘ#ffffff Nie mo?esz przyj?? swojego zg?oszenia", plr, 255, 0, 0, true)
return end
if reason == "" or reason == " " then
reason = "#C00004Brak#ffffff"
end
for i,v in ipairs(getElementsByType("player")) do
if getElementData(v,"player:admin") then
triggerEvent("admin:removeReport", resourceRoot, id)
local raporcik = getElementData(plr, "admin:reporty") or 0
outputChatBox("ⓘ#ffffff "..getPlayerName(...