Jump to content

Recurring server message?


Recommended Posts

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
Link to comment
  • 2 weeks later...

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

Link to comment

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
Link to comment

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...