Raised This Month: $ Target: $400
 0% 

sm_votenextmap and sm_setnextmap


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Kynan
New Member
Join Date: Apr 2009
Old 04-29-2009 , 00:36   sm_votenextmap and sm_setnextmap
Reply With Quote #1

I'm not sure if this is the right place to post this or not, having just joined the forum, but I wanted to share.

I just set up my first tf2 dedicated server and installed sourcemod. On other servers I've been on and had admin level access, one of the things that always frustrated me was the inability to easily set the next map the way you can change the current map, either immediately or by vote.

I looked and saw a lot of requests for this functionality, and a lot of 'work arounds' but nothing that seemed to be a true integration.

I took the most recent build (sourcemod-1.2.1-hg2676) and have added functionality for a new base command (sm_setnextmap which functions the same as sm_map) and a new base vote (sm_votenextmap which functions exactly the same as sm_votemap).

Attached is the source code with the following files:

scripting\basecommands.sp
scripting\basecommands\setnextmap.sp
scripting\basevotes.sp
scripting\basevotes\votenextmap.sp
scripting\include\admin.inc
translations\common.phrases.txt
translations\plugin.basecommands.txt
translations\basevotes.phrases.txt

I've also include the following files to show my own integration of these two new commands into the sm_admin menu.

admin_levels.cfg
admin_overrides.cfg
adminmenu_sorting.txt

Compilation and testing all have worked fine on my own windows based server running the latest stable release. Enjoy.
Kynan is offline
 



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


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