Witam!
Ot?? mam pewien problem.. gdy usuwam reporta na gracza to powinien mu si? wy?wietli? komunikat: Twoje zg?oszenie przyj??: (PenkY) z odpowiedzi?.. lecz niestety to si? nie dzieje i zamiast jemu wy?wietla si? mi.. M?g?by mi kto? w tym pom?c? ustawi? kod tak aby jemu si? wy?wietla?o? stawiam
[lua]
addCommandHandler("cl", function(plr,cmd,id,...)
if not getAdmin(plr) then
exports["lr_noti"]:addNotification(plr, "* Nie posiadasz uprawnie?.", plr, 255, 0, 0)
return
end
if not id then
exports.lr_noti:addNotification(plr, "Nie wybra?e? ID gracza!", plr)
return
end
local reason=table.concat({...}, " ")
local target=exports["pystories-core"]:findPlayer(plr,id)
opis = "Brak Online"
if target then
id=getElementData(target,"id")
opis=getPlayerName(target)
end
for i,v in ipairs(getElementsByType("player")) do
if getAdmin(v) then
-- if getElementData(v,"player:admin") then
triggerEvent("admin:removeReport", resourceRoot, id)
outputChatBox("#FFFF00CL #FFFFFF> #FF0000"..getPlayerName(plr):gsub("#%x%x%x%x%x%x","").." #919191usun??/??a raport na: #FF0000"..opis:gsub("#%x%x%x%x%x%x","").."#919191/#FF0000"..id.."#919191: #919191"..reason, v, 255, 0, 0, true) -- end
end
end
outputChatBox("* Twoje zg?oszenie przy... |