Raised This Month: $ Target: $400
 0% 

sm_votenextmap and sm_setnextmap


Post New Thread Reply   
 
Thread Tools Display Modes
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
huck529
Junior Member
Join Date: Apr 2008
Old 04-29-2009 , 09:39   Re: sm_votenextmap and sm_setnextmap
Reply With Quote #2

omg, thank u so much , just what i've been waiting for , for a long time and all is working
huck529 is offline
cookietester
Junior Member
Join Date: May 2009
Old 05-13-2009 , 01:45   Re: sm_votenextmap and sm_setnextmap
Reply With Quote #3

I just tried compiling votenextmap.sp and got the following:

Your plugin failed to compile! Read the errors below:
SourcePawn Compiler 1.2.0
Copyright (c) 1997-2006, ITB CompuPhase, (C)2004-2008 AlliedModders, LLC

/home/groups/sourcemod/upload_tmp/phppZa70d.sp(45) : error 017: undefined symbol "g_voteType"
/home/groups/sourcemod/upload_tmp/phppZa70d.sp(45) : error 017: undefined symbol "nextmap"
/home/groups/sourcemod/upload_tmp/phppZa70d.sp(45) : warning 215: expression has no effect
/home/groups/sourcemod/upload_tmp/phppZa70d.sp(47) : error 017: undefined symbol "g_hVoteMenu"
/home/groups/sourcemod/upload_tmp/phppZa70d.sp(47) : error 017: undefined symbol "Handler_VoteCallback"
/home/groups/sourcemod/upload_tmp/phppZa70d.sp(51) : error 017: undefined symbol "g_voteInfo"
/home/groups/sourcemod/upload_tmp/phppZa70d.sp(51) : error 017: undefined symbol "VOTE_NAME"
/home/groups/sourcemod/upload_tmp/phppZa70d.sp(51) : error 029: invalid expression, assumed zero
/home/groups/sourcemod/upload_tmp/phppZa70d.sp(51) : fatal error 127: too many error messages on one line

Compilation aborted.
8 Errors.

What am I doing wrong?
cookietester is offline
strontiumdog
Veteran Member
Join Date: Jan 2007
Location: BC, Canada
Old 05-13-2009 , 02:06   Re: sm_votenextmap and sm_setnextmap
Reply With Quote #4

You shouldn't post files with the same name as existing SM files.
__________________
Plugins | TheVille
Zombie Mod for DoD:S - l4dod.theville.org
strontiumdog is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 05-13-2009 , 06:20   Re: sm_votenextmap and sm_setnextmap
Reply With Quote #5

mapchooser.smx has had sm_setnextmap and sm_mapvote for months.
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
Cadav0r
Senior Member
Join Date: Jan 2006
Location: France
Old 05-13-2009 , 15:29   Re: sm_votenextmap and sm_setnextmap
Reply With Quote #6

Yes but sm_mapvote command doesn't allow to choose maps.

I search it since long time thanks
__________________
P.S : Sorry for my english but I'm French

My plugins : Admin Sounds




Cadav0r is offline
Reply



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 23:04.


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