| Tematy otagowane jako: reporty |
| 1. reporty |
witam jak mam zrobic ze np osoba administrator wpisuje /del 1 pisze
< Nick Admina } SID> Przyjmuje Zgloszenie Na < Nick Zgloszonego | SID >
w notyfikacji bo ja cos probowalem zrobic
triggerClientEvent(plr, 'onClientAddNotification', plr, 'Napis', 'info')
Za Pomoc Daje Piwko i respekt ++ |
| 2. Reporty |
Siema mam problem z reportami, mianowicie chodzi o to, ze gracze nie moga pisac reportow ktos powie jak naprawic? pys 3.0
[lua]
addCommandHandler("report", function(plr,cmd,cel,...)
if not (getElementData(plr, "player:logged")) then
return false
end
if not cel then
outputChatBox("#007aff(ⓘ) #ffffffPoprawne u?ycie: #007aff/raport <nick/ID> <pow?d>", plr,255,255,255,true)
return
end
local target=exports["pystories-core"]:findPlayer(plr,cel)
if not target then
outputChatBox("#bf0101() #ffffffNiestety, ale nie znaleziono podanego gracza.", plr, 255, 0, 0,true)
return
end
local text=table.concat({...}, " ")
setElementData(target, "player:raported", true)
desc="["..getElementData(plr,"id").."]"..getPlayerName(plr):gsub("#%x%x%x%x%x%x","").." >> ["..getElementData(target,"id").."]"..getPlayerName(target):gsub("#%x%x%x%x%x%x","")..": "..text:gsub("#%x%x%x%x%x%x","")
triggerEvent("admin:addReport", resourceRoot, desc, getElementData(target,"id"))
outputChatBox("#339933() #ffffffPomy?lnie wys?ano zg?oszenie na gracza:#ffffff (#339933"..getElementData(target,"id").."#ffffff) #339933"..getPlayerName(target):gsub("... |
| 3. Reporty |
Witam, mam taki problem ze mam skrypt na raporty element data jest itp ale i tak nie pokazuje mi raportow ani napisu "Lista raportow" prosze o pomoc za pomoc daje piwo+rep
[b]"report.lua" (Client)[/b]
[lua]
local xtext=nil
local gameView={" "}
local reportView={"Lista raport?w:"}
local sx,sy=guiGetScreenSize()
addEventHandler("onClientRender", root, function()
if getElementData(localPlayer, "adminduty") == 1 or getElementData(localPlayer, "amodduty") == 2 or getElementData(localPlayer, "samodduty") == 3 then
concat=table.concat(gameView, "n")
dxDrawText(concat, sx*(10+1)/1024, sy*(279+1)/768, sx*(326+1)/1024, sy*(497+1)/768, tocolor(0, 0, 0, 255), 1.00, "default", "left", "top", false, true)
dxDrawText(concat, sx*(10)/1024, sy*(279)/768, sx*(326)/1024, sy*(497)/768, white, 1.00, "default", "left", "top", false, true)
end
end)
function renderingInfo()
--dxDrawRectangle(sx*(258)/1024, sy*(0)/768, sx*(500)/1024, sy*(23)/768, tocolor(0, 0, 0, 155), false)
dxDrawRectangle(sx*(843)/1280, sy*(536)/600, sx*(427)/1280, sy*(28)/600, tocolor(0, 0, 0, 155), false)
--dxDrawText(xtext, sx*(258+1)/1024, sy*(0+1)/768, sx*(758+1)/1024, sy*(23+1)/768, tocolor(0, 0, 0, 255), 1.00, "default", "center", "center", false, true)
--dxDrawText(xtext, sx*(258)/1024, sy*(0)/768, sx*(7... |
| 4. reporty |
| Witam mam problem a mam tak serwer ogrpg i mam komend? /report i jak wpisze np /report 1 ssss to wyskakuje jakies okienko z reportem innym tym z ,,P" panelu admina ma ktos jakis pomysl jak to wylaczyc? |
| 5. reporty |
nie dzia?? mi system report?w nic sie nie wy?wietla na czacie
strona serwera
[lua]
function cmd_raport(plr, cmd, id, ...)
if (not id) then
outputChatBox("U?yj: /raport <id/nick> <powod>", plr)
return
end
local target=getElementByID("id"..id)
local target=exports["czaty"]:findPlayer(plr,id)
if (not target) then
outputChatBox("Nie odnaleziono gracza o podanym ID.", plr)
return
end
local opis=table.concat(arg, " ")
opis = getPlayerName(target) .. "/"..getElementData(target,"id").. " - " .. opis
opis = opis .. "-- "..getPlayerName(plr).."/"..getElementData(plr,"id")
reportView_add(opis,getElementData(target,"id"))
outputChatBox("Zg?oszenie zosta?o wys?ane." , plr)
end
addCommandHandler("raport", cmd_raport, false,false)
addCommandHandler("report", cmd_raport, false,false)
function cmd_cl(plr,cmd,id,...)
if (not id) then
outputChatBox("U?yj: /cl <id/nick> <powod>", plr)
return
end
local powod=table.concat(arg, " ")
if (string.len(powod)<2) then
outputChatBox("U?yj: /cl <id/nick> <powod>", plr)
return
end
local target=exports["czaty"]:findPlayer(plr,id)
local opis="?"
if (target) then
id=getElementData(target,"id")
opis=getPlayerN... |
| 6. Reporty |
Zrobi?em skrypt aby reporty pojawia?y si? na ?cianie report?w i by?y pisane przez komende ale nie mam poj?cia jak usun?c t? tabele report?w kt?ra jest ju? odrazu wbudowana w MTa prosz? o pomoc jak mam ten panel usun?c
Z g?ry daje piwko ! |
|