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: unmute
1. unmute
Witam mam taki problem po zako?czonej karze mute graczu nie oddaje mo?liwo?ci pisania, dopiero po reconnect dzia?a.

[lua]
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,5) then
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.", plr, 255, 255, 255)
return
end
if (getAdmin(plr,3) == false) and getAdmin(target,3) then 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),reason, x, "mute")
end
if bantype=="h" then
exports["pystories-db"]:dbSet("INSERT INTO pystories_punish (serial,reason,time,type) VALUES (?,?,NOW() + INTERVAL ? hour,?)", getPlayerSerial(target),reason, x, "mute")
end
if bantype=="d" then
exports["pystories-db"]:dbSet(&q...