Bot = "Inge"
function NewUserConnected(user)
readfrom("pm.txt")
while 1 do
local line = read()
if line == nil then break end
user:SendPM(Bot,line)
end
readfrom()
end
how to change it so also Ops get it ?
function NewUserConnected(user)
readfrom("pm.txt")
while 1 do
local line = read()
if line == nil then break end
user:SendPM(Bot,line)
end
readfrom()
end
function NewOPConnected(user)
readfrom("pm.txt")
while 1 do
local line = read()
if line == nil then break end
user:SendPM(Bot,line)
end
readfrom()
end
thnx :D
QuoteOriginally posted by shipiz
function NewUserConnected(user)
readfrom("pm.txt")
while 1 do
local line = read()
if line == nil then break end
user:SendPM(Bot,line)
end
readfrom()
end
function NewOPConnected(user)
readfrom("pm.txt")
while 1 do
local line = read()
if line == nil then break end
user:SendPM(Bot,line)
end
readfrom()
end
function NewOPConnected(user) ???
function OpConnected(user)
but uising functions is much better and more effiecent ;)
Bot = "Inge"
function NewUserConnected(user)
ToSend(user)
end
function OpConnected(user)
ToSend(user)
end
function ToSend(user)
readfrom("pm.txt")
while 1 do
local line = read()
if line == nil then
break
end
user:SendPM(Bot,line)
end
readfrom()
end
l8rr
Gracias :) phatty :)
ok i know i lost :(
QuoteOriginally posted by AlwaysConnected
ok i know i lost :(
LOL dont worry i will still return :P
yo AC u haven't cuz phatty forgot 2 add regbot command i would do it but can't be bothered lol. :D
QuoteOriginally posted by raz
yo AC u haven't cuz phatty forgot 2 add regbot command i would do it but can't be bothered lol. :D
well actually, its not needed, its a client issue why they dont get pm, not script :P, bue he means the checkers game we had ;)
errm and if he has another bot that already does it i guess he not need it if he does then
function Main()
frmHub:RegBot(Bot)
end
Bot = "Inge"
function NewUserConnected(user)
ToSend(user)
end
function OpConnected(user)
ToSend(user)
end
function ToSend(user)
readfrom("pm.txt")
while 1 do
local line = read()
if line == nil then
break
end
user:SendPM(Bot,line)
end
readfrom()
end
you can do also :
QuoteOpConnected = NewUserConnected
just after NewUserConnected