PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: angelsanges on 21 October, 2003, 08:01:18

Title: rules in a pop up windows....
Post by: angelsanges on 21 October, 2003, 08:01:18
how to make a script that sends rules (from a txt file) in a pop-up window on user connection!?
Title:
Post by: servaks on 21 October, 2003, 08:39:10
Here you go...

botname = "Hub-Security"
file = "rules.txt"

function NewUserConnected(user)
readfrom(file)
local message = ""
while 1 do
local line = read()
if (line == nil) then break else
message = message..line.."\r\n"
end
end
user:SendPM(botname,message)
end


/shipis
Title: ...
Post by: angelsanges on 21 October, 2003, 11:07:45
thank you