PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: Hades on 04 January, 2004, 02:24:50

Title: VIPenter!!
Post by: Hades on 04 January, 2004, 02:24:50
I need a script to announce vip enter and leave in lua.
Just like Openter!
Can someone help?
Title:
Post by: kepp on 04 January, 2004, 15:05:15
Bot = "Bot_Name"

function NewUserConnected(user)
   if (user.iProfile == 2) then
   SendToAll(Bot, "Welcome "..user.sName)
end

function UserDisconnected(user)
   if user.iProfile == 2) then
   SendToAll(Bot, "C ya later "..user.sName)
end
Title: Thanx sp much
Post by: Hades on 05 January, 2004, 00:33:21
Such a simple thing:))
Title: However
Post by: Hades on 05 January, 2004, 00:39:27
it doesn't work on ptoka 330:((
Title: This will work
Post by: DJ Bert on 05 January, 2004, 01:31:26
code:--------------------------------------------------------------------------------
Bot = "Bot_Name"

function NewUserConnected(user)
            if (user.iProfile == 2) then
            SendToAll(Bot, "Welcome "..user.sName..)
end

function UserDisconnected(user)
           if user.iProfile == 2) then
           SendToAll(Bot, "C ya later "..user.sName..)
end
--------------------------------------------------------------------------------
Title:
Post by: NightLitch on 05 January, 2004, 04:14:31
Fixed:

Bot = "Bot_Name"

function NewUserConnected(user)
    if user.iProfile == 2 then
       SendToAll(Bot, "Welcome "..user.sName)
    end
end

function UserDisconnected(user)
    if user.iProfile == 2 then
        SendToAll(Bot, "C ya later "..user.sName)
    end
end