I'm trying modify a script, but i'm stok with this
it is the script from filechecker
-- kick user
if match and not client.bOperator then
if client:Kick() = nill then
client:Kick() = 0
end
if client:Kick() = 3 then
client:SendData(Bot, "You are been banned for 3 kicks.")
client:TimeBan(48*60)
client:Kick() = 0
function DataArrival(client, data)
if string.find(data,"is kicking") then
local _,_, name = string.find(data,"%b<>%s*%S+%sis%skicking%s(%S+)%sbecause:%s")
kick[client] = kick[client] + 1
end
end
Why doesn't it work I get this message:
\scripts\checker.lua:186: `then' expected near `='
Hopefully someone can help me
Change this:
if client:Kick() = nill then
To:
if client:Kick() = nil then
I hope this will help you.
thnx for your fast reply,
but is doesn't work. I get the same fault.
\scripts\checker.lua:186: `then' expected near `='
it is in this rule:
if client:Kick() = nill then
QuoteOriginally posted by Leun
it is in this rule:
if client:Kick() = nill then
I think what Myers is saying.. you have a mispelled
word..
" nill " should be " nil "
and I am no LUA scripter.. but that is what I read..
sorry my fault,
I typed it wrong second time.
it has to be;
but is doesn't work. I get the same fault.
\scripts\checker.lua:186: `then' expected near `='
it is in this rule:
if client:Kick() = nil then
if client:Kick() = nill then
if client:Kick() = 3 then
must be
if client:Kick() == nil then
if client:Kick() == 3 then
Thnx Mateci,
It works :D
Only I got a new problem with that script:
I have this atm:
-- disconnect user
if match and not client.bOperator then
client:SendData( "<"..botName.."> You are temporarily banned for 5 min! Fix your share.." )
if client:Kick() == nil then
client:Kick()
end
if client:Kick() == "3" then
client:SendData(Bot, "You are been banned for 3 kicks.")
client:TimeBan(48*60)
client:Kick()
function DataArrival(client, data)
if string.find(data,"is kicking") then
local _,_, name = string.find(data,"%b<>%s*%S+%sis%skicking%s(%S+)%sbecause:%s")
client:Kick() == client:Kick() + 1
end
end
With this message:
\checker.lua:17: unexpected symbol near `=='
I think it's the Kick() +1 ,but I dont know where how change it.
This :
client:Kick() == client:Kick() + 1
is wrong, it should be like this :
client:Kick() = client:Kick() + 1
thnx for your help Dessamator,
but I can't get it work....
well, for starters that script doesnt seem complete, and from what i can see it seems to be for lua4, there are quite a few scripts with the features u want from that, maybe if u search ull find what u need .
you're right....
thnx for your help
hello m8 ,why you don t just use DCDM++ it s really great client and it auto checks and kicks users with all stuff you want to add it as forbiten
or just try robocop ,it is auto kick after 2 warnings and auto bann after 3 kicks ;-)
Have A look :
DCDM++ (http://dialspace.dial.pipex.com/town/pipexdsl/s/asmr89/dcpluspluskcdm/)
QuoteOriginally posted by LiqUiD~TrolL
hello m8 ,why you don t just use DCDM++ it s really great client and it auto checks and kicks users with all stuff you want to add it as forbiten
or just try robocop ,it is auto kick after 2 warnings and auto bann after 3 kicks ;-)
Have A look :
DCDM++ (http://dialspace.dial.pipex.com/town/pipexdsl/s/asmr89/dcpluspluskcdm/)
I think the autodetection of fake tags serverside is a good idea since it avoids a lot of bandwidth usage.
Thnx for your help m8s
My script is done now :D
I use now the adls search
and the Ban-4X-Kick 1.0 LUA 5 script
Thnx for your help,
greetz