Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2021-01-10, 15:04


Frixen







Wiek: 28
Na forum: 2851 dni
Posty: 61
Nick w MP: Frixenek

Piwa: 1040

Respekt: 30,5

witam jak mam zrobi? ?e jak przymujesz rapsa to pisze tam pow?d przyj?cia np. Id?!

Za Pomoc Daje Piwko i respekt ++

Podpis
Mój projekt CloudMTA dc : https://discord.gg/CXAayVBZ4Z
Postaw piwo autorowi tego posta
 

 
Wysłany: 2021-01-10, 16:27


TheSebaPL

Mod-team






Wiek: 21
Na forum: 3098 dni
Posty: 964

Piwa: 3102

Respekt: 640,5
Respekt: 640,5Respekt: 640,5

Wystarczy poszuka? po paczkach. Masz tutaj gotowy kod.

addCommandHandler("cl", function(plr,cmd,id,...)
    if not getAdmin(plrthen
        return
    end

    local reason table.concat({...}, " ")

    if not id then return end
    if not reason then return end
    
    local target=exports["pystories-core"]:findPlayer(plr,id)

    opis "Brak Online"
    if target then
        id getElementData(target,"id")
        opis getPlayerName(target)
        if target ~= plr and not getAdmin(targetthen
        end
    end


    if not reason then
    reason "Brak"
    end

    for i,v in ipairs(getElementsByType("player")) do
        if getElementData(v,"player:admin"then
                triggerEvent("admin:removeReport"resourceRootid)
                local raporcik getElementData(plr"admin:reporty") or 0
                outputChatBox("ⓘ #ffffff "..getPlayerName(plr):gsub("#%x%x%x%x%x%x","").." rozpatrzy?/a zg?oszenie gracza "..getPlayerName(target):gsub("#%x%x%x%x%x%x","")..". Odpowied?: "..reason..""v0144255true)
        end
    end


    outputChatBox("ⓘ #ffffff Twoje zg?oszenie zosta?o przyj?te przez "..getPlayerName(plr):gsub("#%x%x%x%x%x%x","")..""target0144255true)
    outputChatBox("ⓘ #ffffff Odpowied?: "..reason..""target0144255true)

end)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2021-01-10, 16:35


Maniekxx

Amator






Wiek: 24
Na forum: 2894 dni
Posty: 232
Nick w MP: Maniekxx

Piwa: 225

Respekt: 110
Respekt: 110

Ostrzeżeń: 20%
Nic trudnego, w funkcji dopisujesz jeszcze jeden argument:


function delete_raport(arg_1,arg_2,reason)
if not reason or string.len(reason) <= 3 then
outputChatBox("* Podaj wi?ksz? ilo?? znak?w. Minimalna to 3",arg_1,255,0,0)
return end

for i,v in ipairs(getElementsType("player")) do
if getElementData(v,"admin"then
outputChatBox("* ".. getPlayerName(arg_1) .." usun??/a raport " .. arg_2 .. " pow?d " .. reason,v,255,0,0)
end 
end

end


Postaw piwo autorowi tego posta
 

 
Tagi: powod :: raporta :: jak :: sie :: przyjmie
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku