Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Script Report Bug by: Natsmiro#0000
- adm = "Natsmiro#0000"
- local reportList = {}
- local reportPopupId = 1
- function eventChatCommand(p, cmd)
- local cmds = {}
- for value in cmd:gmatch("%S+") do
- cmds[#cmds + 1] = tonumber(value) or value
- end
- if cmds[1] == "report" and not cmds[2] then
- ui.addPopup(reportPopupId, 2, "Relatar um erro:", p, 400-(300/2), 180, 300, true)
- end
- -- Cargos altos
- if cmd and p == adm then
- if cmds[1] == "report" and cmds[2] == "delete" and cmds[3] then
- table.remove(reportList, cmds[3])
- print("Relato número " .. cmds[3] .." removido com sucesso.", p)
- end
- if (cmd == "reportlist") or (cmds[1] == "report" and cmds[2] == "list") then
- if #reportList > 0 then
- print("<font color='#ed67ea'>[+] Bugs reportados no jogo:</font>", p)
- for number,list in ipairs(reportList) do
- print("<font color='#ffc800'>ID: " .. number .. "</font><font color='#6C77C1'>, - </font>" .. list, p)
- end
- else
- print("<font color='#2ecf73'>Nenhum bug relatado. :)</font>")
- end
- end
- end
- end
- function eventPopupAnswer(popupId, p, answer)
- reportList[#reportList + 1] = os.date("(%d/%m/%y) ") .. p .." : " .. tostring(answer) -- os.date("%m/%d/%y") se for internacional
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement