Hehe.. sry was our foult that it didnt work :'(
Anyways here is fix for it ;D
1 Open Kick_Ban_Commands.lua (in folder LV_DataBase\lua )
2. Find line Command["banip"] = function(user,data,where) (line 166)
3. Replace
Command["banip"] = function(user,data,where)
local s,e,iP,rsn = string.find(data, "%b<>%s+%S+%s+(%S+)%s*(.*)")
if iP then
if iP == user.sIP then
user:SendMessage(Cfg.Bot_Name,"Cant ban your own IP")
return 1
end
if iP == WSA.GetHostByName(frmHub:GetHubAddress()) then
user:SendMessage(Cfg.Bot_Name,"You cant Ban Hub host's IP !!")
return 1
end
if iP == "127.0.0.1" or iP == "localhost" then
user:SendMessage(Cfg.Bot_Name,"I only wonder what runs in your head !!")
return 1
end
if (rsn==nil or rsn == "") then
rsn = "No reason given!"
end
SendMessage("*** IP: "..iP.." added to Banned IP's by "..Cvrt.P2[user.iProfile].." "..user.sName.." Because: "..rsn,SendWhere)
Ban(iP)
else
user:SendMessage(Cfg.Bot_Name,"Type IP allso")
end
return 1
end
with this fixed one
Command["banip"] = function(user,data,where)
local s,e,iP,rsn = string.find(data, "%b<>%s+%S+%s+(%S+)%s*(.*)")
if iP then
if iP == user.sIP then
user:SendMessage(Cfg.Bot_Name,"Cant ban your own IP")
return 1
end
if iP == WSA.GetHostByName(frmHub:GetHubAddress()) then
user:SendMessage(Cfg.Bot_Name,"You cant Ban Hub host's IP !!")
return 1
end
if string.find(iP,"127%.0%.0%.1") or iP == "localhost" then
user:SendMessage(Cfg.Bot_Name,"I only wonder what runs in your head !!")
return 1
end
if (rsn==nil or rsn == "") then
rsn = "No reason given!"
end
SendMessage("*** IP: "..iP.." added to Banned IP's by "..Cvrt.P2[user.iProfile].." "..user.sName.." Because: "..rsn,SendWhere)
Ban(iP)
else
user:SendMessage(Cfg.Bot_Name,"Type IP allso")
end
return 1
end