botName = "Ptokax"
--// Ban the following users ip on entry
forbiddenWords = {"fuck"},{"shit"},{"cunt"}
function Main()
frmHub:RegBot(botname)
end
--// This function is fired when a new user finishes the login
function NewUserConnected(curUser)
for key,checkWord in forbiddenWords do
if strfind(curUser.sMyInfoString, checkWord, 1, 1) then
curUser:Disconnect()
end
end
end
How will i not show the bot name in user list - if its possible (i really gotta learn how to do this)
you remove 3 lines!!
function main()
frmHub:RegBot()
end
oh rele that simple LOL
QuoteOriginally posted by Woodster
botName = "Ptokax"
--// Ban the following users ip on entry
forbiddenWords = {"fuck"},{"shit"},{"cunt"}
function Main()
frmHub:RegBot(botname)
end
--// This function is fired when a new user finishes the login
function NewUserConnected(curUser)
for key,checkWord in forbiddenWords do
if strfind(curUser.sMyInfoString, checkWord, 1, 1) then
curUser:Disconnect()
end
end
end
How will i not show the bot name in user list - if its possible (i really gotta learn how to do this)
*hint to save bandwidth and make it faster put it in dataarrival under version strsub ;)