PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: FrAcTi0n on 08 October, 2004, 11:50:09

Title: PM to all unregisterd users on connect?
Post by: FrAcTi0n on 08 October, 2004, 11:50:09
hello, is there a script that sends private message on connect to all unregistered users?

thx
Title:
Post by: bastya_elvtars on 08 October, 2004, 11:59:52
and what should that PM contain?
Title:
Post by: FrAcTi0n on 08 October, 2004, 12:06:25
something like u are not registered user, only reg. users can download, ask op for reg..
Title:
Post by: nErBoS on 08 October, 2004, 13:10:30
Hi,

Here you have...

--## SIMPLER PMER BOT
--## Requested by FrAcTi0n
--## Made by nErBoS

sBot = "SP-Bot"
sMsg = ""

function Main()
frmHub:RegBot(sBot)
sMsg = "\t\t--## HUB Message ##--\r\n\r\n"
sMsg = sMsg.."Welcome to our HUB. You are an unregistered user here.\r\n"
sMsg = sMsg.."Their for you can't download from anyone, you must be regged to download.\r\n"
sMsg = sMsg.."Contact a OP to reg you."
end

function NewUserConnected(user)
if (user.iProfile == -1) then
user:SendPM(sBot, sMsg)
end
end

Best regards, nErBoS
Title:
Post by: FrAcTi0n on 08 October, 2004, 13:20:31
thank you very much.)
Title:
Post by: bastya_elvtars on 08 October, 2004, 14:18:39
QuoteOriginally posted by FrAcTi0n
something like u are not registered user, only reg. users can download, ask op for reg..

search the forum for this script, nerbos' one just sends PM
Title:
Post by: UwV on 08 October, 2004, 18:59:00
QuoteOriginally posted by bastya_elvtars
search the forum for this script, nerbos' one just sends PM

isn't that all he asked for ?
Title:
Post by: FrAcTi0n on 08 October, 2004, 19:28:59
i think that the first script was the one i was looking for...
thx guys...)