PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: stuCkwe on 12 September, 2004, 19:04:32

Title: help with op joining and parting
Post by: stuCkwe on 12 September, 2004, 19:04:32
hello i need a script who in main chat send message to all users when a operator log in...

each operator another message to login and log out..
please help i can't find this script.. !
.:Thanks:.
 
Title:
Post by: nErBoS on 14 September, 2004, 23:26:58
Hi,

Hope it helps...

--## Simple Welcomer Bot
--## Requested by stuCkwe
--## Made by nErBoS

sBot = "W-BOT"

arrW = {
--Example
["nErBoS"] = {
["IN"] = "Hello nErBoS",
["OUT"] = "Bye nErBoS",
},
}

function OpConnected(user)
if (type(arr[user.sName]) == "table") then
SendToAll(sBot, arr[user.sName]["IN"])
end
end

function OpDisconnected(user)
if (type(arr[user.sName]) == "table") then
SendToAll(sBot, arr[user.sName]["OUT"])
end
end

Best regards, nErBoS
Title: =]
Post by: stuCkwe on 15 September, 2004, 15:52:06
thnx