Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: raportu.
1. Nie usuwa raportu.
Siema, jeden problem z wysy?aniem raportu rozwi?za?em ale urodzi?o si? co? innego...
Nie usuwa raportu z "?ciany" dopiero po restarcie zasobu znika no ale to oczywiste. Mo?e kto? wyt?umaczy? czym to jest spowodowane lub/i co? nie dzia?a podsy?am fragment kodu:


[lua][code]addCommandHandler("raport", function(plr,cmd,cel,...)
if not cel then
outputChatBox("U?yj: /raport <kawa?ek nick'u> <pow?d>", plr)
return
end
local target = findPlayer(plr,cel)
if not target then
outputChatBox("Nie znaleziono podanego gracza.", plr, 255, 0, 0)
return
end
local text=table.concat({...}, " ")
desc = getPlayerName(plr).."("..getElementData(plr,"ID")..") >> "..getPlayerName(target).."("..getElementData(target,"ID").."): "..text
triggerClientEvent(root, "admin:addReport", resourceRoot, desc, getElementData(target,"ID"))
outputChatBox("Pomy?lnie wys?ano zg?oszenie na gracza: "..getPlayerName(target), plr)
end)

addCommandHandler("cl", function(plr,cmd,ID,...)
if getElementData(plr, "duty") == 1 or getElementData(plr, "duty") == 2 or getElementData(plr, "duty") == 3 then
if not tonumber(ID) then
outputChatBox("U?yj: /cl <ID> <pow?d usuni?cia>", plr)
return
end
local reason = table.concat({...}, " ")
local target = findPla...