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: /zmutujserial
1. cmd /zmutujserial
robi? cmd zmutuj serial lecz ona nie dodaje kord?w nie wiem co jest nie tak [lua]
addCommandHandler("zmutujserial", function(plr, cmd, serial,bantype,...)
if getAdmin(plr,3) or getAdmin(plr,2) then
if not serial or not bantype then
outputChatBox("Uzyj: /zmutujserial <serial> <ilo??> <m/h/d> <pow?d>", plr)
return
end
local reason=table.concat({...}, " ")
reason = reason..""
if bantype=="m" or bantype=="h" or bantype=="d" then
if bantype=="m" then
exports["ogrpg-db"]:dbSet("INSERT INTO ogrpg_punish (serial,reason,time,type) VALUES (?,?,NOW() + INTERVAL ? minute,?)", serial,reason, x, "mute")
end
if bantype=="h" then
exports["ogrpg-db"]:dbSet("INSERT INTO ogrpg_punish (serial,reason,time,type) VALUES (?,?,NOW() + INTERVAL ? hour,?)", serial,reason, x, "mute")
end
if bantype=="d" then
exports["ogrpg-db"]:dbSet("INSERT INTO ogrpg_punish (serial,reason,time,type) VALUES (?,?,NOW() + INTERVAL ? day,?)", serial,reason, x, "mute")
end
end
local result = exports["ogrpg-db"]:dbGet(" SELECT *FROM ogrpg_punish WHERE active=?", serial)
if result or #result > 0 then
exports["noti"]:noti("Pomy?lnie zmutowa?e?(a?) "..serial.." z powodem "..reason.."...