Ulysses Stuff > Releases

Advanced Join and Leave (Supporting Sounds, Messages, GeoIP, Multi Coloring!)

(1/8) > >>

Fanney:
Oi' mates, today I wanna present you my shiny addon.

This addon allows you to add fancy join messages and sounds in seconds!

It's a bit more advanced so it supports GeoIP (showing location in messages) & sounds (playing them on join / left) and it's group based it also supports the common admin addons.

Without further talking, the addon is still simple.
Just copy the extracted folder in your addons folder and here you go, some groups are already set-up.

If you want to add your own groups then you can go ahead and examine the config file which is located at "advjoinleave\lua\autorun\server\ss_advjl_config.lua"

How to add group or modify groups?
It's simple, first open the config file.

Then you'll find this in a table:

--- Code: ---{
    groupnames = {"superadmin", "admin", "operator"}, -- Group(s) which will use the message.
    receivers = nil, -- This is a list of groups which will receive the messages.
    resolvegeodata = true, -- If you want to resolve geo data for this message (REQUIRED FOR GEO-IP RELEATED MESSAGES!)

    sounds = {
        join = "",
        leave = ""
    },

    messages = {
        join = "#FFFFFF[#9C7878JOIN:#FFFFFF] !playername! joined our server from #FFFFFF[#9C7878!countryCode!#FFFFFF]",
        leave = "#FFFFFF[#9C7878LEFT:#FFFFFF] !playername![!steamid!] left us."
    }
},

--- End code ---

Now, this is the template for the admin groups you can easily copy that and modify it to suit your needs just take care that you don't forget to add a ", (semicolon)" at the end of every line if one follows after.

If we want every in the group "donator" to play a sound located in the "sound/advjl" folder then we need to make it look like that:

--- Code: ---
{
    groupnames = {"donator"}, -- Group(s) which will use the message.
    receivers = nil, -- This is a list of groups which will receive the messages.
    resolvegeodata = true, -- If you want to resolve geo data for this message (REQUIRED FOR GEO-IP RELEATED MESSAGES!)

    sounds = {
        join = "donatorjoin.wav",
        leave = ""
    },

    messages = {
        join = "#FFFFFF[#9C7878JOIN:#FFFFFF] !playername! joined our server from #FFFFFF[#9C7878!countryCode!#FFFFFF]",
        leave = "#FFFFFF[#9C7878LEFT:#FFFFFF] !playername![!steamid!] left us."
    }
},

--- End code ---
The rest should be pretty clear.

Changelog:
20/5/2016- Refactored a bit (code looks less ugly now)
- Added multi-group support
- Added message receivers (a list of groups which should receive the join message useful for admin only messages)
11/2/2014
- Added Multicolor support.
- Added a way to add more information to the messages.
11/14/2014
- Fixed "#" in names causing the message to not show.
- Added Muting of sounds on mapchange.

Download(s):
Github (newest Version)
Github (for contributions)

Storm:
Can this be configured for different groups? For example i don't want it displayed when admins join or leave.

Fanney:

--- Quote from: Storm on June 29, 2014, 06:13:59 AM ---Can this be configured for different groups? For example i don't want it displayed when admins join or leave.

--- End quote ---
You can just keep "messageformat" and "messageformatdc" blank.

You can find the config in this Folder ("addons\advjoinleave\lua\autorun\server\ss_advjl_config.lua")

Just edit those two:

--- Code: --- {groupname="superadmin", playsound="superadminjoin.wav", leftsound="", messageformat="[JOIN:] %s our shiny Owner from [%s] connected!", messageformatdc="[DISCONNECT:] %s left us!", resolvecountry=true},
{groupname="admin", playsound="adminjoin.wav", leftsound="",  messageformat="[JOIN:] %s our shiny Admin from [%s] connected!", messageformatdc="[DISCONNECT:] %s left us!", resolvecountry=true},
--- End code ---
   
to

--- Code: --- {groupname="superadmin", playsound="", leftsound="", messageformat="", messageformatdc="", resolvecountry=false},
{groupname="admin", playsound="", leftsound="",  messageformat="", messageformatdc="", resolvecountry=false},

--- End code ---

Marz:
This is broken for me when I try extract it.

If you could re-upload or upload else where I would love you.

-Lewis

JamminR:
Marz, file extracts for me and many others just fine.
What program are you trying to use to extract it?
What do you mean "broken"? What errors?
Sounds like a PC program or internet issue, nothing to do with the link/hosted file.

Navigation

[0] Message Index

[#] Next page

Go to full version