View Single Post
zombiiiizzz
BANNED
Join Date: Apr 2010
Old 04-04-2011 , 11:10   Re: Galileo 1.1.290 (a feature rich map voting plugin)
Reply With Quote #1097

Quote:
Originally Posted by zombiiiizzz View Post
done that, still no change

i noticed that the timelimit is changed to 50 after voting, shoudnt be 0 ??

i have mp_timelimit 50 in server.cfg but why 50 and not 0?

i looked up this part :
Code:
public map_manageEnd()
{
dbg_log(2, "%32s mp_timelimit: %f", "map_manageEnd(in)", get_cvar_float("mp_timelimit"));
 
g_pauseMapEndManagerTask = true;
if (get_realplayersnum() <= 1)
{
// at most there is only one player on the server, so no need to stay around
map_change();
}
else
{
if (get_pcvar_num(cvar_endOnRound) && g_wasLastRound == false)
{
// let the server know it's the last round
g_wasLastRound = true;
 
// let the players know it's the last round
if (g_voteStatus & VOTE_FORCED)
{
client_print(0, print_chat, "%L", LANG_PLAYER, "GAL_CHANGE_NEXTROUND");
}
else
{
client_print(0, print_chat, "%L %L", LANG_PLAYER, "GAL_CHANGE_TIMEEXPIRED", LANG_PLAYER, "GAL_CHANGE_NEXTROUND");
}
// prevent the map from ending automatically
server_cmd("mp_timelimit 0");
}
else
{
// freeze the game and show the scoreboard
message_begin(MSG_ALL, SVC_INTERMISSION);
message_end();
//new chatTime = floatround(get_cvar_float("mp_chattime"), floatround_floor);
// display intermission expiration countdown
//set_task(1.0, "intermission_displayTimer", chatTime, _, _, "a", chatTime);
// change the map after "chattime" is over
set_task(floatmax(get_cvar_float("mp_chattime"), 2.0), "map_change");
}
new map[MAX_MAPNAME_LEN + 1];
get_cvar_string("amx_nextmap", map, sizeof(map)-1);
client_print(0, print_chat, "%L", LANG_PLAYER, "GAL_NEXTMAP", map);
}
 
dbg_log(2, "%32s mp_timelimit: %f", "map_manageEnd(out)", get_cvar_float("mp_timelimit"));
}
and dont know why is not setting to 0...

Code:
// Galileo Configuration File
// $Revision: 286 $ $Date: 2009-02-18 21:49:33 -0500 (Wed, 18 Feb 2009) $
echo Executing Galileo (GAL) Configuration File
 
////////////////////////////////////////////////////////////////////////
// Allowing an extension of the current map's time limit will add an  //
// "extend the map" option to map votes which, if the option wins,    //
// will increase the time limit by a predetermined amount, letting    //
// players stay on the current map longer.                            //
////////////////////////////////////////////////////////////////////////
// Specifies the maximum number of minutes a map can be played, if it 
// has been extended. A value less than mp_timelimit will not let the 
// map be extended.
amx_extendmap_max 90
// Specifies the number of minutes a map will be extended each time 
// the "Extend Map" option wins the map vote.
amx_extendmap_step 15
 
////////////////////////////////////////////////////////////////////////
// There are two standard HL1 map related commands that you may not   //
// want to function normally, if at all, when using this plugin, so   //
// as to avoid conflicts of map voting procedures.                    //
////////////////////////////////////////////////////////////////////////
// Indicates how the standard HL1 "votemap" command should function.
// 0 - disable
// 1 - behave normally
gal_cmd_votemap 0
// Indicates how the standard HL1 "listmaps" command should function.
// 0 - disable
// 1 - behave normally
// 2 - behave the same as the "gal_listmaps" command (galileo default)
gal_cmd_listmaps 2
 
////////////////////////////////////////////////////////////////////////
// Banning recently played maps means that the last several maps that //
// have been played can not be nominated or otherwise placed in the   //
// map vote. This ensures that a map can not be played over and over  //
// again at the expense of playing a variety of other maps.           //
////////////////////////////////////////////////////////////////////////
// Specifies how many of the most recent maps are disallowed from a 
// map vote. A value of 0 will disable this feature.
gal_banrecent 3
// Indicates the style in which the recent maps are displayed when a 
// player uses the "recentmaps" say command.
// 1 - all maps on one line
// 2 - each map on a separate line
gal_banrecentstyle 1
 
////////////////////////////////////////////////////////////////////////
// Rocking the vote is a way players can indicate their desire to     //
// start an early map vote to change maps. Once enough players have   //
// rocked it, a vote will begin.                                      //
////////////////////////////////////////////////////////////////////////
// Indicates which say commands can be used to rock the vote. 
// The flags are additive. A value of 0 will disable this feature.
// 1 - standard "rockthevote" command
// 2 - shorthand "rtv" command
// 4 - dynamic "rockthe<anything>vote" command (allows a player to type 
//     any one word (i.e. no spaces) that starts with "rockthe" and ends 
//     with "vote". Some examples might be: "rockthedamnvote", 
//     "rockthesillylittlevote", or "rockthefreakingvote". The total 
//     length of the word can not be longer than 31 characters. That 
//     leaves 20 characters for creativeness once you factor in the 
//     lengths of "rockthe" and "vote")
gal_rtv_commands 3
// Specifies the number of minutes after a map starts that players 
// have to wait before they can rock the vote. When a single player
// is on the server, that player can rock the vote at any time, 
// regardless of this setting.
gal_rtv_wait 0
// Specifies the ratio of players that need to rock the vote before a
// vote will be forced to occur. When a single player is on the server,
// that player can rock the vote and start an immediate vote.
gal_rtv_ratio 0.60
// Specifies how often, in minutes, to remind everyone how many more
// rocks are still needed, after the last rock has been made.
// A value of 0 will disable this feature.
gal_rtv_reminder 2
 
////////////////////////////////////////////////////////////////////////
// Nominations can be used to let players nominate maps they would    //
// like included in the next map vote. Depending on how many maps     //
// have been nominated, it is possible that not all nominations will  //
// make it into the next vote.                                        //
////////////////////////////////////////////////////////////////////////
// Specifies how many nominations each player can make.
// There is a hard cap defined, MAX_NOMINATION_CNT, that is set to 5
// in the SMA.  It can be changed, if needed.
// This CVAR needs to be set equal to or less than the hard cap.
// A value of 0 will disable this feature.
gal_nom_playerallowance 2
// Specifies the file to use which holds the names of the maps, listed 
// one per line, that players can nominate. Use * for all maps in the 
// server's maps folder.
// You can specify a relative path before the filename, relative from
// your gamemod folder (i.e. /addons/amxmodx/configs/mymapcycle.txt).
gal_nom_mapfile mapcycle.txt
// Indicates if the ./amxmodx/configs/galileo/prefixes.ini file should 
// be used to attempt to match map names if the player's entered 
// text doesn't match any.
gal_nom_prefixes 0
// Specifies how many of the nominations made will be 
// considered for use in the next map vote. 
// A value of 0 means all the nominated maps will be considered.
gal_nom_qtyused 0 
 
////////////////////////////////////////////////////////////////////////
// Runoff voting happens when none of the normal vote options receive //
// over 50% of a given vote. The two options with the highest vote    //
// counts will be in the runoff vote.                                 //
////////////////////////////////////////////////////////////////////////
// Indicates whether to allow runoff voting or not.
// 0 - disable runoff voting
// 1 - enable runoff voting
gal_runoff_enabled 1
// Specifies the number of seconds the runoff vote should last.
gal_runoff_duration 15
 
////////////////////////////////////////////////////////////////////////
// Weighted votes allows admins to have their vote counted as more    //
// than a regular player's vote.                                      //
////////////////////////////////////////////////////////////////////////
// Specifies how many votes a single admin vote should count as. 
// A value of 0 or 1 will disable this feature.
gal_vote_weight 2
// Specifies the standard access flags needed to have weighted votes. 
// You can specify multiple flags.
gal_vote_weightflags y
 
////////////////////////////////////////////////////////////////////////
// Ending a map on a new round after time has expired, for round-     //
// based mods, is a much nicer way of ending the current map than the //
// standard HL1 way, which is to suddenly end the map the second time //
// runs out.                                                          //
////////////////////////////////////////////////////////////////////////
// Indicates when a map should end when time runs out.
// 0 - end immediately when time runs out
// 1 - when time runs out, end after the current round
gal_endonround 1
 
////////////////////////////////////////////////////////////////////////
// By showing the status of the vote, you allow players to see how    //
// many votes the various choices received.                           //
////////////////////////////////////////////////////////////////////////
// Indicates when the vote progress should be shown to a player.
// A value of 0 disables this feature.
// 0 - never
// 1 - after player has voted
// 2 - after the vote ends
gal_vote_showstatus 1
// Indicates how to show the progress of a vote.
// 1 - as vote count
// 2 - as percentage of all votes cast
gal_vote_showstatustype 2
 
////////////////////////////////////////////////////////////////////////
// Server restarts could be due to a benign reason or could be due to //
// a map that just crashed the server. In any case, you can specify   //
// what happens when the server restarts.                             //
////////////////////////////////////////////////////////////////////////
// Indicates which action to take when it is detected 
// that the server has been restarted.
// 0 - stay on the map the server started with
// 1 - change to the map that was being played when the server was reset
// 2 - change to what would have been the next map had the server not
//     been restarted (if the next map isn't known, this acts like 3)
// 3 - start an early map vote after the first two minutes
// 4 - change to a randomly selected map from your nominatable map list
gal_srv_start 0
 
////////////////////////////////////////////////////////////////////////
// Some people like to stick to their defined map cycle unless a vote //
// is started in the meantime. Other people like to always have a     //
// vote near the end of the map to decide what the next map will be.  //
////////////////////////////////////////////////////////////////////////
// Indicates whether there should be a vote near the end 
// of the map to decide what the next map will be.
gal_endofmapvote 1
 
////////////////////////////////////////////////////////////////////////
// Paginating the map listings displayed from the gal_listmaps        //
// console command will prevent players from getting kicked when you  //
// are listing a large number of maps. When paginated, the listings   //
// will only display a portion of the total map list at a time.       //
////////////////////////////////////////////////////////////////////////
// Specifies how many maps per "page" to show when using 
// the gal_listmaps console command. 
// Setting it to 0 will not paginate the map listing.  
// Pagination will be in the style of the amx_help command.
gal_listmaps_paginate 10
 
////////////////////////////////////////////////////////////////////////
// Primary voting is what most people generally think of when they    //
// think of starting a vote for a new map. It's just your standard    //
// map vote.                                                          //
////////////////////////////////////////////////////////////////////////
// Specifies the number of maps players can choose from during the vote.
// The number of maps must be between 2 and 8.
gal_vote_mapchoices 8
// Specifies the number of seconds the vote should last.
gal_vote_duration 15
// Specifies the file to use which either holds the names of the maps,
// one per line, that the vote will be filled with or is used in the 
// map group feature to specify how many maps to use from each group.
// You can specify a relative path before the filename, relative from
// your gamemod folder (i.e. /addons/amxmodx/configs/mymapcycle.txt).
gal_vote_mapfile mapcycle.txt
// Indicates whether the maps being added, after nominations have been
// added to a vote, should have unique map prefixes from those already 
// in the vote.
gal_vote_uniqueprefixes 0
 
////////////////////////////////////////////////////////////////////////
// The vote expiration countdown begins display a timer, to players   //
// that haven't voted, when there are 10 seconds left in the current  //
// vote. The timer counts down from 10 to 0, at which point the vote  //
// will be over.                                                      //
////////////////////////////////////////////////////////////////////////
// Indicates whether a vote expiration countdown should be displayed.
// 0 - do not show the countdown
// 1 - show the countdown
gal_vote_expirationcountdown 1
 
////////////////////////////////////////////////////////////////////////
// When the player's choice is announced, everyone on the server is   //
// shown what every other player's selection was.                     //
////////////////////////////////////////////////////////////////////////
// Indicates whether to announce each player's choice.
// 0 - keep the player's choice private
// 1 - announce the player's choice
gal_vote_announcechoice 1
 
////////////////////////////////////////////////////////////////////////
// You may have a lot of maps but only a few are sure to attract a    //
// lot of players. When the server is empty, you may want the server  //
// to change to those maps.                                           //
////////////////////////////////////////////////////////////////////////
// Specifies how many minutes to wait, when the server is empty, before 
// changing to an alternate empty-server map cycle. 
// A value of 0 disables this feature.
gal_emptyserver_wait 15
// Specifies the file which contains a listing of maps, one per line,
// to be used as the map cycle when the server is empty.
// You can specify a relative path before the filename, relative from
// your gamemod folder (i.e. /addons/amxmodx/configs/mymapcycle.txt).
gal_emptyserver_mapfile 
 
////////////////////////////////////////////////////////////////////////
// There will be words spoken during certain events to reinenforce,   //
// in a player's mind, what is happening. You may choose to mute any  //
// that you would rather not have spoken.                             //
////////////////////////////////////////////////////////////////////////
// Indicates if any sounds should be muted during the various events in
// which they'd normal be spoken.
// The flags are additive. A value of 0 will not mute any of the sounds.
// 1 - "get ready to choose a map"
// 2 - "7", "6", "5", "4", "3", "2", "1"
// 4 - "time to choose"
// 8 - "runoff voting is required"
gal_sounds_mute 0
HELP ?!?!
zombiiiizzz is offline