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

Wysłany: 2020-11-09, 10:04


Kacper645PL







Wiek: 29
Na forum: 2866 dni
Posty: 25
Nick w MP: Kacper645PL



Respekt: 50

Witam mam taki problem po zako?czonej karze mute graczu nie oddaje mo?liwo?ci pisania, dopiero po reconnect dzia?a.


addCommandHandler("tmute", function(plr,cmd,cel,x,bantype,...)
    if getAdmin(plr,4) or getAdmin(plr,3) or getAdmin(plr,2) or getAdmin(plr,1) or getAdmin(plr,5then
        local reason=table.concat({...}, " ")
        if not cel or not tonumber(x) or not bantype or not reason then
            outputChatBox("U?ycie: /tmute <nick/ID> <czas> <m/h/d> <pow?d>"plr)
            return
        end
        local target=exports["pystories-core"]:findPlayer(plr,cel)
        if not target then
            outputChatBox("Nie znaleziono podanego gracza."plr255255255)
            return
        end
        if (getAdmin(plr,3) == false) and getAdmin(target,3then return end
        reason reason..""
        if bantype=="m" or bantype=="h" or bantype=="d" then
        if bantype=="m" then
        exports["pystories-db"]:dbSet("INSERT INTO pystories_punish (serial,reason,time,type) VALUES (?,?,NOW() + INTERVAL ? minute,?)"getPlayerSerial(target),reasonx"mute")
        end
        if bantype=="h" then
        exports["pystories-db"]:dbSet("INSERT INTO pystories_punish (serial,reason,time,type) VALUES (?,?,NOW() + INTERVAL ? hour,?)"getPlayerSerial(target),reasonx"mute")
        end
        if bantype=="d" then
        exports["pystories-db"]:dbSet("INSERT INTO pystories_punish (serial,reason,time,type) VALUES (?,?,NOW() + INTERVAL ? day,?)"getPlayerSerial(target),reasonx"mute")
        end
        end
        exports['yd-noti']:noti(rootgetPlayerName(target):gsub("#%x%x%x%x%x%x","").." otrzyma? blokade pisania od "..getPlayerName(plr):gsub("#%x%x%x%x%x%x","").." z powodu "..reason.." (".... bantype..")""punish")
        setElementData(target"player:mute"true)
    end
end)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2020-11-09, 10:32


Maniekxx

Amator






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

Piwa: 225

Respekt: 110
Respekt: 110

Ostrzeżeń: 20%
Musisz wywo?a? funkcj?, kt?ra sprawdzi w bazie danych czy kara ju? min??a, i je?li tak to j? zdj??.

[ Dodano: 2020-11-09, 10:33 ]
Tu masz przyk?ad: https://gtao.pl/-wycisz-nie-dziala-poprawnie-vt136664.htm

Postaw piwo autorowi tego posta
 

 
Więcej szczegółów
Wystawiono 1 piw(a):
Kacper645PL
Tagi: unmute
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » unmute 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