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: bany!
1. Nie działają Kicki Bany!
Witajcie, postanowilem i? zrobie serwer na paczce ourgame ale kicki i bany nie dzia?aj?, wszystko jest ok podpiete pod mysql i wgl, ale tak : Ban nie dzia?a Kick nie wyrzuca pomocy o co chodzi co jest nie tak w kodzie jestem nowy w lua i srednio ogarniam!

[code]addCommandHandler("ban", function(plr,cmd,cel,time,type,...)
if getAdmin(plr,4) or getAdmin(plr,3) or getAdmin(plr,2) then
local reason=table.concat({...}, " ")
if not cel or not tonumber(time) or not type or not reason then
outputChatBox("* U?ycie: /ban <nick/ID> <czas> <jednostka: m/h/d/w> <pow?d>", plr)
return
end
local target=exports["ogrpg-core"]:findPlayer(plr,cel)
if not target then
outputChatBox("* Nie znaleziono podanego gracza.", plr, 255, 0, 0)
return
end
if (getAdmin(plr,3) == false) and getAdmin(target,3) then outputChatBox("Nie mozesz tego zrobic na rconie!",plr,255,0,0) return end
local query=string.format("SELECT * FROM ogrpg_ban WHERE type=%q AND active=1 AND serial=%q AND time>NOW() LIMIT 1","ban", getPlayerSerial(target))
local result=exports["ogrpg-db"]:pobierzWyniki(query)
if (result) then
return outputChatBox(" Gracz Posiada Bana do "..result["time"]..", za: "..result["reason"], plr, 255, 0, 0)
else
exports["ogrpg-db"]:dbSet("DELETE FROM ogrpg_ban WHERE type=? AND ac...