Raised This Month: $ Target: $400
 0% 

Random Map on Server Startup


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
DataMatrix
Senior Member
Join Date: Aug 2005
Location: UK, Liverpool
Old 03-08-2007 , 21:58   Random Map on Server Startup
Reply With Quote #1

Well, I couldn't find one myself, and can't believe there isn't one (I think). So I decided to make one.

Changelog:
* v1.0.0 - Initial Release
* v1.1.0 - Optimised code greatly, and actually fixed it not changing
* v1.1.1 - Fixed again - this time, it WILL work xD
* v1.1.2 - Removed some useless crap...
* v1.2.0 - Implemented some of the changes that Hawk552 suggested (now you can't say I don't listen)
* v1.2.1 - Optimisation suggested by Hawk552
* v1.2.5 - Added a way to turn the script off with sv_randommap <0/1> (0 for off, 1 for on)

Cvars:
sv_randommap <1/0> - Set to 0 to disable the random map or set to 1 to enable it as normal.

To install:
1: Compile
2: Reference in plugins.ini
3: Start the server up (it will load your startup map then calculate a random map from maps.ini or mapcycle.txt and then change the map)

Suggestions? Problems? Let me know (IN HERE PLEASE).

For v1.2.5+ please make sure you have written the cvar sv_randommap in server.cfg or this may not work.
Attached Files
File Type: sma Get Plugin or Get Source (randommap.sma - 908 views - 1.5 KB)
__________________

Last edited by DataMatrix; 10-03-2008 at 13:10.
DataMatrix is offline
Send a message via MSN to DataMatrix
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:36.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode