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:
{
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."
}
},
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:
{
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."
}
},
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)