Raised This Month: $51 Target: $400
 12% 

votemap instachange WTF


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
nismoskyline86
Member
Join Date: Nov 2010
Old 11-13-2010 , 16:41   votemap instachange WTF
Reply With Quote #1

Is there any way to prevent sourcemod from changing the map instantly in the middle of a round after a admin initiated mapvote is passed?
nismoskyline86 is offline
sinblaster
Grim Reaper
Join Date: Feb 2010
Location: Australia
Old 11-13-2010 , 18:55   Re: votemap instachange WTF
Reply With Quote #2

by setting the configs properly would be a good start

Is it maybe cfg/sourcemod/plugin.playersvotes.cfg

// ===================== Votemap-specific ==================================
//
// last number of played maps that will not show in votemap list
sm_votemap_lastmaps "4.0"

// number of minutes to allow players to extend the current map. -1 to disable map extensions
sm_votemap_extend "20.0"

// number of extends to allow per map. 0 to disable. -1 for no limit
sm_votemap_max_extends "1.0"

// 1 to change map immediately after a map wins a votemap. 0 for setting nextmap
sm_votemap_immediate "0"
__________________
Happy Happy Joy Joy

sinblaster is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 11-16-2010 , 03:51   Re: votemap instachange WTF
Reply With Quote #3

Quote:
Originally Posted by sinblaster View Post
by setting the configs properly would be a good start

Is it maybe cfg/sourcemod/plugin.playersvotes.cfg
Is Playervotes SourceMod stock plugin or did he even mention this in first post ?

nismoskyline86 could clarify, how they start mapvote...
basevotes.smx
From admin menu -> Vote Commands -> Map vote
or same from console sm_votemap <mapname> [mapname2] ... [mapname5]
These surely change map after vote end, not change round end or set next map.

mapchooser.smx
Using sm_mapvote, this bring map-end-mapvote to vote nextmap earlier.
Can't choose maps in vote, those come randomly.

You need search that kind plugin your needs, maybe start look from
playersvotes
what sinblaster have showed

*edit
I don't think that will work...
Can build using Custom Votes however

Didn't get it work even this
__________________
Do not Private Message @me

Last edited by Bacardi; 11-16-2010 at 13:47.
Bacardi is offline
sinblaster
Grim Reaper
Join Date: Feb 2010
Location: Australia
Old 11-16-2010 , 05:22   Re: votemap instachange WTF
Reply With Quote #4

Quote:
Originally Posted by Bacardi View Post
Is Playervotes SourceMod stock plugin or did he even mention this in first post ?

Settle bacardi, you see the question mark? it means I am asking a question. And I ask the question because he didn't state 9as you said) what system is being used.

Quote:
is it maybe cfg/sourcemod/plugin.playersvotes.cfg
__________________
Happy Happy Joy Joy


Last edited by sinblaster; 11-16-2010 at 05:41.
sinblaster is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 11-16-2010 , 06:44   Re: votemap instachange WTF
Reply With Quote #5


*edit
Ok... I didn't found or tried find plugin what can vote choosed maps to next map.

But I did easier way... Change that normal Map Vote to set nextmap vote
editet ...addons/sourcemod/scripting/basevotes.sp source code.

Starting line 420
PHP Code:
public Action:Timer_ChangeMap(Handle:timerHandle:dp)
{
    
decl String:mapname[65];
    
    
ResetPack(dp);
    
ReadPackString(dpmapnamesizeof(mapname));
    
    
//ForceChangeLevel(mapname, "sm_votemap Result");
    
ServerCommand("sm_setnextmap %s"mapname);
    
    return 
Plugin_Stop;

- I disable //ForceChangeLevel() and change to ServerCommand() to set next map by vote
- There is SetNextMap, but mapchooser.smx plugin will disable your vote result if vote earlier. To work you need start vote after mapchooser vote.
Thats why I change it to ServerCommand()

Sry bad english...
Hope those who want change this, can edit and compile plugin by self and add in server

Last edited by Bacardi; 11-16-2010 at 14:05.
Bacardi 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 15:56.


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