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,3then
        
if not cel then
            outputChatBox
("* U?ycie: /unban <serial>"plr)
            return
        
end
        
if string.len(cel) ~= 32 then return outputChatBox("* B??dny serial "plrend
        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 (
resultthen
            exports
["ogrpg-db"]:dbSet("DELETE FROM ogrpg_ban WHERE type=? AND active=1 AND serial=?""ban"cel)
            
outputChatBox("* Usunieto bana o serialu ("..cel..")!"plr02550)
        else
            
outputChatBox("* Nie wykryto bana o serialu ("..cel..")!"plr02550)
        
end
    end
end
)