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: reportach
1. Czas w reportach
Witam .

Dzi? mam pytanko odno?nie report?w pod mysql .

Czy ten kod :
[lua]
addCommandHandler("report", function(plr,cmd,cel,...)
if not cel then
triggerClientEvent(plr,"dodaj:powiadomienie", plr, "* U?yj: /report <nick/ID> <pow?d>")
return
end
local target=exports["ogrpg-core"]:findPlayer(plr,cel)
if not target then
triggerClientEvent(plr,"dodaj:powiadomienie", plr, "* Nie znaleziono podanego gracza!")
return
end
local text=table.concat({...}, " ")
desc=getPlayerName(plr):gsub("#%x%x%x%x%x%x","").."("..getElementData(plr,"id")..") >> "..getPlayerName(target):gsub("#%x%x%x%x%x%x","").."("..getElementData(target,"id").."): "..text:gsub("#%x%x%x%x%x%x","")
triggerClientEvent(root, "admin:addReport", resourceRoot, desc, getElementData(target,"id"))
triggerClientEvent(plr,"dodaj:powiadomienie", plr, "* Pomy?lnie wys?ano zg?oszenie na gracza: "..getPlayerName(target):gsub("#%x%x%x%x%x%x","").."")
for i,v in ipairs(getElementsByType("player")) do
if getAdmin(v,1) or getAdmin(v,2) or getAdmin(v,3) or getAdmin(v,4) then
if getElementData(v,"player:admin") then
outputChatBox("* ( REPORT ) Nowy report od "..getPlayerName(p...