Motd/tsay Plugin

MayhemMayhem Join Date: 2002-11-28 Member: 10128Members
edited February 2003 in General Server Discussion
<div class="IPBDescription">By Mayhem</div> Hey guys,

I wrote a small script that allows TSAY style messages in NS. I threw together a couple more functions today which allow MOTD to be displayed in similar text. There are some limitations: First this uses menu's to create the text, which means each line is limted to 40 characters. Simply add ^n or # to any string that you pass into admin_msay to create a new line. Users can enter 1-4 to remove the text earlier than the specified time. When using # symbols the script only allows 4 lines of text. This can be avoided by using ^n. Other than that I think its rather useful. MOTD includes a variable for ON/OFF, Repeat ON/OFF, and Repeat interval (seconds). You do need to edit the .sma to make it output the string you want for MOTD. I have started the MOTD OFF by default so anyone wanting to use this JUST for TSAY is more than welcome. Instructions for editing the variables and compiling the script are in the readme.txt. You do need to add a line to server.cfg or adminmod.cfg: amv_enable_beta "menu1". MOTD May contain a few bugs I haven't had a chance to "fully" test it.

Edit: Plugin now only accepts option 5 to remove the display.

Well thats it I hope this is useful.....
Dave@TradedAddictions.com for comments/problems/suggestions
Look for Ready Room Idle Kick, Map Nomination, and Ungorge sometime this week

Comments

  • Tcquest78Tcquest78 Join Date: 2002-12-17 Member: 10949Members
    Personally, I'd use different numbers than 1-4. 1-4 are actually used, so if somebody is in battle they will be pressed. Not only will they not select the weapon they want, but they might possibly want to read the message.
  • MayhemMayhem Join Date: 2002-11-28 Member: 10128Members
    Good call, My intentions were to allow for quick removal of the text if needed. Originally I thought NS only binds 1-4... Luckily they bind 5 as well.. The new file only accepts keypress 5 to remove the text. Thanks for the input.
Sign In or Register to comment.