PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: LiqUiD~TrolL on 08 August, 2005, 21:41:22

Title: mass kick hub blocker
Post by: LiqUiD~TrolL on 08 August, 2005, 21:41:22
hello ppl recently someone hacked 1 of my operators account and he unreged users and after that he kicked / banned all the hub. is there any script that it will not allow mass hub kicks ???


can t wait your replies =)
have a good day
Title: can anyone help me ???
Post by: LiqUiD~TrolL on 14 August, 2005, 04:18:06
any answers ???
Title:
Post by: ??????Hawk?????? on 14 August, 2005, 14:58:08
hi m8  

give this a try  ...


---Mass Kick Blocker
---By ??????Hawk??????  14-08-2005

 
bot_name1 = "KickBlock"
 
Users = {}


function Main()
SetTimer(20000)   --// 20 second timeout on command
StartTimer()
end




function OnTimer()
Users = {}
end




OpDisconnected = UserDisconnected
function UserDisconnected(curUser)
if Users[curUser.sName] then
Users[curUser.sName] = nil
end
end


function KickArrival(user, data)
data = string.sub(data,1,string.len(data)-1)
local _,_,Cmd = string.find( data, "(%S+).*" )
if Cmd == "$Kick" and Users[user.sName] and user.bOperator then
user:SendData(bot_name1,"Please Slow your Kicking down")
return 1
elseif Cmd == "$Kick" and user.bOperator and not Users[user.sName] then
Users[user.sName] = 1
end
end


??????Hawk??????
Title:
Post by: LiqUiD~TrolL on 09 September, 2005, 16:41:30
tnx a lot hawk