PtokaX forum

Archive => Archived 5.0 boards => Finished Scripts => Topic started by: ??????Hawk?????? on 03 April, 2005, 22:09:32

Title: 3 X Bad Pass Cleaner ( Working )
Post by: ??????Hawk?????? on 03 April, 2005, 22:09:32
hi peeps  ..  just added this to XN  thaught id share it ..



--   3X Bad Pass Cleaner By ??????Hawk??????
--                  03/04/2005


cTime = 1000 * 60 * 60 * 12   --// Time In Hrs Default 12 hrs

function Main()
SetTimer(cTime)
StartTimer()
end

function OnTimer()
CleanBans()
end

function CleanBans()
local t = GetBannedItemIp( "3x bad password")
if t then
while t do
t = GetBannedItemIp( "3x bad password")
Unban(t)
end
end
end



Have Fun Peeps


??????Hawk??????
Title:
Post by: Dessamator on 03 April, 2005, 23:06:16
damn, so damn simple thats its frightening, well done sir !!!, never thought of using the "3x bad pass" as a nick !! in the getbanneditemip function .
Title:
Post by: ??????Hawk?????? on 03 April, 2005, 23:36:47
hi  

Edited Above Code for  Multiple instances.

Should have checked it with more  first  :P


??????Hawk??????
Title:
Post by: ??????Hawk?????? on 05 April, 2005, 23:24:33
Op notify added


 
--   3X Bad Pass Cleaner By ??????Hawk??????
--                  03/04/2005
-- Op Notify added 05/04/2005

Bot = frmHub:GetOpChatName() --//     Comment for Hub  Op Chat
--Bot = "Scripted Ops Chat Name" --//     Uncomment for Hub  Op Chat

CleanTime = 12 --// Time In Hrs Default 12 hrs



function Main()
Counter = 0
cTime = 1000 * 60 * 1
SetTimer(cTime)
StartTimer()
end

function OnTimer()
if Counter == (CleanTime * 60) then
CleanBans(1)
Counter = 0
else
CleanBans(0)
Counter = Counter + 1
end
end

function CleanBans(data)
local t = GetBannedItemIp( "3x bad password")
local LoopStop = t
if t then
while t do
if data == 1 then
Unban(t)
else
SendPmToOps(Bot, "User:- "..t.." Has been Banned for 3 X bad passwords  Please Check.")
if LoopStop == t then break end
end
t = GetBannedItemIp( "3x bad password")
end
end
end