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: unban
1. unban
witam nie wiem jak zrobi? unban bez potrzeby logowania si? do acl
addCommandHandler("unban", function(plr,cmd,cel)
    if  
getAdmin(plr,4) or getAdmin(plr,3) then
        
if not cel then
            outputChatBox
("* U?ycie: /unban <serial>", plr)
            return
        
end
        
if string.len(cel) ~= 32 then return outputChatBox("* B??dny serial ", plr) end
        local query
=string.format("SELECT * FROM ogrpg_ban WHERE type=%q AND active=1 AND serial=%q AND time>NOW() LIMIT 1","ban", cel)
        
local result=exports["ogrpg-db"]:pobierzWyniki(query)
        if (
result) then
            exports
["ogrpg-db"]:dbSet("DELETE FROM ogrpg_ban WHERE type=? AND active=1 AND serial=?", "ban", cel)
            
outputChatBox("* Usunieto bana o serialu ("..cel..")!", plr, 0, 255, 0)
        else
            
outputChatBox("* Nie wykryto bana o serialu ("..cel..")!", plr, 0, 255, 0)
        
end
    end
end
)