Jump to content

Recurring server message?


Recommended Posts

Posted

I've always really wanted to do something like this, but I've been told that there were limitations to doing it certain ways in the past.

 

Basically, I'd like to advertise our clans website every x minutes via chat 

 

E.g.

 

Server: (JAWA) is currently recruiting, you can visit our website at thejawaclan.com or Google "jawa clan"!

 

Is this possible? If it can be done via a JA++ Lua plugin, is it easy enough to pull off? The JA+ lua plugin tutorial seems a bit out of date and can be hard to follow.

Smoo likes this
Posted

Should be very possible to make the server add chat or cp lines.  I don't know where it would be best to do it on a timer though.

 

Every x minutes also sounds a bit harsh.  Why not once per client connect to newly connected players (?) And map loads

  • 2 weeks later...
Posted

You can make a cfg script that runs from vstr, e.g.

 

set AM "vstr AM_1"

 

set AM_1 "svsay ------ Welcome to ^2G-MAC House ^7------; wait 255; svsay Admins are ^2GREEN MACHINE ^7& ^5TeAL MACHINE; set AM vstr AM_2"

 

set AM_2 "set AM vstr AM_1; wait 10000; vstr AM

 

In the server or rcon do /vstr AM

Posted

waits are bad, they stop processing rest of stuff.

 

Aye, those were past solutions that seemed like a good idea at the time but in practice are horrendous.

 

Asulynn gave me a hand with this and has sorted this for me on my server (Linux) using crontab :) to any one else out there with a JA++ server, I suggest using the LUA plugin for this purpose if you need an easy solution.

Smoo likes this

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...