PDA

View Full Version : worms message center v0.5


bullet-worm
10-28-2005, 03:30 PM
You can get it here:
http://www.wormsworld.net/forums/viewtopic.php?t=14

This is from the config:
///////////////////////////////////////////////////////////////
// Worms Message Center
//
// Instructions:
// 1) Add the .iwd file to your server's MAIN directory
// 2) Modify this config to your liking.
// 3) Save and upload this config file to your server's MAIN directory
// 4) In your server's start-up config file, add:
// exec messagecenter.cfg
// Note: This must be done BEFORE the first map is called
///////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////
// Message Center Setup

// Enable/Disable
set mc_enable 1
///////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////


///////////////////////////////////////////////////////////////
// Max messages setup:
// Maximum number of your message.
// If this is 99 then your LAST message dvar would be mc_message100 "text"
// It is best to keep this as low as needed for performance purposes.

set mc_maxmessages 10 // This gives me 10 messages (1 through 11)
///////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////


// On my TO DO list!!
// does not work yet, always restarts every round
set mc_restartEveryRound 1


///////////////////////////////////////////////////////////////
// Standard Message Delays

// Standard delay between each message
// (IF a custom delay is not defined)
// This setting is ALSO used as the delay after the last message
// before the whole message loop starts over

set mc_delay 90
///////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////


///////////////////////////////////////////////////////////////
// Messages
// Notes:
// 1) mc_message1 is the FIRST message (mc_message0)
// 2) You CAN skip numbers if you want and it will not effect
// the message center as long as the numbers used in your
// mc_message# is LESS than mc_maxmessages + 1.
// This can be useful if you want to add messages inbetween
// or if you want to rip a message out by just setting
// the message dvar to ""
// 3) The messages will play in NUMBERICAL order, even if it
// has to skip numbers. 1,4,25,30,55,etc.
///////////////////////////////////////////////////////////////
// SPECIAL NOTE ON MESSAGE SPECIFIC DELAYS (mc_messagedelay#)
// The delay specified for each message comes BEFORE the
// specified message, for example, mc_messagedelay2 is
// the delay BETWEEN mc_message2 and whatever message is
// before it. You can even specify a delay of 0 for multi-line
// messages.
//
// If NO specific message delay is specified for a message,
// it will automatically use the generic delay set by mc_delay.
////////////////////////////////////////////////////////////////
// SPECIAL MESSAGE FUNCTIONS:
// There are a couple special message functions built in:
// <*nextmap*> & <*gtrules*>
// Usage: Set any message dvar to exactly the special function
// i.e. set mc_message1 "<*nextmap*>"
//
// <*nextmap*> will show the next map and gametype
// <*gtrules*> will show the rules for the current gametype
// The gametype rules must be specifed by the admin via
// specific dvars listed below.

// Messages:
set mc_message1 "<*nextmap*>"
set mc_messagedelay1 5

set mc_message2 "<*gtrules*>"
set mc_messagedelay2 1

set mc_message3 "^3*|^1ASMD^3|* ^4is recruiting adults only"
set mc_messagedelay3 120
set mc_message4 "^4www.asmdgaming.com for details"
set mc_messagedelay4 0
///////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////


///////////////////////////////////////////////////////////////
// Gametype Rules
// These are used by the <*gtrules*> special function
// The message center will automaticly detect what the
// current gametype is and select the appropriate dvar below

set mc_rules_sd "^3S&D Rules: ^5First team to 7 wins"
set mc_rules_ctf "^3CTF Rules: ^5First team to 5 wins"
set mc_rules_tdm "^3TDM Rules: ^5First team to 300 wins"
set mc_rules_dm "^3DM Rules: ^5First player to 50 wins"
set mc_rules_hq "^3HQ Rules: ^5First team to 600 wins"
///////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////


///////////////////////////////////////////////////////////////
// Welcome Center Setup

// Enable/Disable
set wc_enable 1

// Messages
// Note there are only 5 available lines in the center of
// the screen, thus these 5 dvars are the ones to set for each
// line. Empty lines will be skipped.

set wc_line1 "^4Welcome to the ^3*|^1ASMD^3|* ^4clan server"
set wc_line2 "^3*^1Warning^3* ^4Please respect other players"
set wc_line3 ""
set wc_line4 ""
set wc_line5 ""
///////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////


///////////////////////////////////////////////////////////////
// ADVANCED!!!!!!!!!! The below is for people comfortable
// getting in a changing part of the script on their own!!!
// I am working on ways to simplify this, but they are NOT
// ready yet.
//
// This will allow you to put a HUD element on-screen that
// shows your web address in the bottom right corner.
// Small print and out of the way, but you can see it.
//
// To get it to work you must modify line 193 of
// messagecenter.gsc to change www.ASMDGaming.com with YOUR
// site's name. DO NOT remove the '&' sign in front of the
// quotes!! ONLY change what is INSIDE the quotes.
// Line 193 says:
// game["mc_site"] = &"www.ASMDGaming.com"; // CHANGE THIS LINE TO YOUR SITE
//
// Depending on the length of your site, you may need to toy
// with the x-axis positioning of the HUD element to get it
// somewhere you like. This can be done on line 212 of the
// same file.
// Line 212 says:
// level.mc_hud.x = 590; // CHANGE THIS LINE IF NEEDED
//
// Also, to ENABLE the HUD element, add this to the config:
// set mc_showsite 1
///////////////////////////////////////////////////////////////

rudedog
10-30-2005, 08:13 PM
Moved to admin tools,

Good Job worm :salute: