0 Üye ve 1 Ziyaretçi konuyu incelemekte.
sx,sy = guiGetScreenSize() uzunluk,genislik = 680,350 konumX = (sx/2) - (uzunluk/2) konumY = (sy/1.8) - (genislik/1.8)local arkaplan = nilfunction reportlar_hepsi ()if getElementData(localPlayer,"duty_admin") == 1 or getElementData(localPlayer,"duty_supporter") == 1 then --if isElement(arkaplan) then -- return --end if (guiGetVisible(arkaplan)==true) then guiSetVisible(arkaplan, false) showCursor(false) return end arkaplan = guiCreateWindow(konumX,konumY,uzunluk-350,genislik+120, "After Roleplay Reportlar", false) guiSetVisible(arkaplan, true) reportlar_liste = guiCreateGridList(0, 25, uzunluk-350, genislik, false, arkaplan) guiGridListAddColumn(reportlar_liste, "ID", 0.2) guiGridListAddColumn(reportlar_liste, "SEBEP", 0.6) guiGridListAddColumn(reportlar_liste, "SAAT", 0.6) for key, value in ipairs(getElementsByType("player")) do if getElementData(value, "raportatti") == 1 then local row = guiGridListAddRow(reportlar_liste) local saat = getElementData(value, "saat") or 0 local dakika = getElementData(value, "dakika") or 0 guiGridListSetItemText(reportlar_liste, row, 1, getElementData ( value, "playerid" ) , false, true) guiGridListSetItemText(reportlar_liste, row, 2, getElementData(value, "rapormemo") , false, true) guiGridListSetItemText(reportlar_liste, row, 3, saat..":"..dakika , false, true) end end showCursor(true) kapatbtn = guiCreateButton(0, 400, uzunluk-350, 35, "Kapat", false, arkaplan)endendaddCommandHandler("reportlar", reportlar_hepsi)addCommandHandler("raporlar", reportlar_hepsi)addCommandHandler("reports", reportlar_hepsi)function kapat () if source == kapatbtn then guiSetVisible(arkaplan, false) showCursor(false) endendaddEventHandler("onClientGUIClick", resourceRoot, kapat)
bindKey ("F2","down", reportlar_hepsi)
sx,sy = guiGetScreenSize() uzunluk,genislik = 680,350 konumX = (sx/2) - (uzunluk/2) konumY = (sy/1.8) - (genislik/1.8)local arkaplan = nilfunction reportlar_hepsi ()if getElementData(localPlayer,"duty_admin") == 1 or getElementData(localPlayer,"duty_supporter") == 1 then --if isElement(arkaplan) then -- return --end if (guiGetVisible(arkaplan)==true) then guiSetVisible(arkaplan, false) showCursor(false) return end arkaplan = guiCreateWindow(konumX,konumY,uzunluk-350,genislik+120, "After Roleplay Reportlar", false) guiSetVisible(arkaplan, true) reportlar_liste = guiCreateGridList(0, 25, uzunluk-350, genislik, false, arkaplan) guiGridListAddColumn(reportlar_liste, "ID", 0.2) guiGridListAddColumn(reportlar_liste, "SEBEP", 0.6) guiGridListAddColumn(reportlar_liste, "SAAT", 0.6) for key, value in ipairs(getElementsByType("player")) do if getElementData(value, "raportatti") == 1 then local row = guiGridListAddRow(reportlar_liste) local saat = getElementData(value, "saat") or 0 local dakika = getElementData(value, "dakika") or 0 guiGridListSetItemText(reportlar_liste, row, 1, getElementData ( value, "playerid" ) , false, true) guiGridListSetItemText(reportlar_liste, row, 2, getElementData(value, "rapormemo") , false, true) guiGridListSetItemText(reportlar_liste, row, 3, saat..":"..dakika , false, true) end end showCursor(true) kapatbtn = guiCreateButton(0, 400, uzunluk-350, 35, "Kapat", false, arkaplan)endendaddCommandHandler("reportlar", reportlar_hepsi)addCommandHandler("raporlar", reportlar_hepsi)addCommandHandler("reports", reportlar_hepsi)bindKey ("F2","down", reportlar_hepsi)function kapat () if source == kapatbtn then guiSetVisible(arkaplan, false) showCursor(false) endendaddEventHandler("onClientGUIClick", resourceRoot, kapat)