Raised This Month: $ Target: $400
 0% 

Soccerjam mapchange


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
danonix
Senior Member
Join Date: Dec 2012
Old 03-06-2013 , 09:47   Soccerjam mapchange
Reply With Quote #1

Hello,

How to change the map after won match? I have search on alliedmodders and on polish forums, but i have got nothing.

Thanks
danonix is offline
TheDS1337
Veteran Member
Join Date: Jun 2012
Old 03-06-2013 , 13:01   Re: Soccerjam mapchange
Reply With Quote #2

try to search when the end of match called add a commande using server_cmd( );

Last edited by TheDS1337; 03-06-2013 at 13:01.
TheDS1337 is offline
danonix
Senior Member
Join Date: Dec 2012
Old 03-06-2013 , 14:24   Re: Soccerjam mapchange
Reply With Quote #3

What is the command for run the voting?
danonix is offline
TheAutomatiK
Junior Member
Join Date: Jun 2014
Old 06-11-2014 , 14:05   Re: Soccerjam mapchange
Reply With Quote #4

deagle the answer didn't help bro, please expound a little like a pro
TheAutomatiK is offline
aron9forever
Veteran Member
Join Date: Feb 2013
Location: Rromania
Old 06-12-2014 , 06:43   Re: Soccerjam mapchange
Reply With Quote #5

okay
what are you using for map choose vote? some custom plugin or amxx mapchooser?
you're gonna have trouble if you only start voting once the match ends, I'd suggest to start the voting once there's one more goal to score for a team, or even two goals
aron9forever is offline
TheAutomatiK
Junior Member
Join Date: Jun 2014
Old 06-12-2014 , 08:47   Re: Soccerjam mapchange
Reply With Quote #6

yes i agree, i guess there must already be a plugin for that in amxx for mods other than sj, ive seen awp servers where the voting happens 3 maps before map change. But some expert needs to confirm if it exists for shizzle.

tankz
TheAutomatiK is offline
Compidence
Junior Member
Join Date: Feb 2014
Old 06-12-2014 , 19:10   Re: Soccerjam mapchange
Reply With Quote #7

PHP Code:
public Event_StartRound()
{
    
g_TimeLimit get_cvar_num("mp_timelimit");
    if(
winner)
    {
        
set_task(1.0,"displayWinnerAwards",0)

        
//MP_TIMELIMIT replication
        
new Float:gtime float(g_TimeLimit) - (get_gametime() / 60.0);

        if( 
g_TimeLimit && gtime <= 0.0 )
        {
            
//Fix for Map Vote plugins (2 min marker).
            
new bool:check;
            if(
cvar_exists("amx_extendmap_max"))
                
check true;

            
server_cmd("mp_timelimit %i", (check 1));
            
set_task(10.0"CheckExtendMap"555666""0"b");
        }
        else
            
set_task(10.0,"PostGame",0)
    }
    else
        
SetupRound()

You might want to adjust that part to make it do what you want.

Quote:
Originally Posted by aron9forever View Post
okay
what are you using for map choose vote? some custom plugin or amxx mapchooser?
you're gonna have trouble if you only start voting once the match ends, I'd suggest to start the voting once there's one more goal to score for a team, or even two goals
If you want to go the server_cmd route then that's the question you need to answer. With Galileo you can simply execute a command to change "mp_timelimit" to 2 and the vote will start within 1 minute.
Compidence is offline
aron9forever
Veteran Member
Join Date: Feb 2013
Location: Rromania
Old 06-13-2014 , 00:49   Re: Soccerjam mapchange
Reply With Quote #8

Quote:
Originally Posted by Compidence View Post
PHP Code:
public Event_StartRound()
{
    
g_TimeLimit get_cvar_num("mp_timelimit");
    if(
winner)
    {
        
set_task(1.0,"displayWinnerAwards",0)

        
//MP_TIMELIMIT replication
        
new Float:gtime float(g_TimeLimit) - (get_gametime() / 60.0);

        if( 
g_TimeLimit && gtime <= 0.0 )
        {
            
//Fix for Map Vote plugins (2 min marker).
            
new bool:check;
            if(
cvar_exists("amx_extendmap_max"))
                
check true;

            
server_cmd("mp_timelimit %i", (check 1));
            
set_task(10.0"CheckExtendMap"555666""0"b");
        }
        else
            
set_task(10.0,"PostGame",0)
    }
    else
        
SetupRound()

You might want to adjust that part to make it do what you want.



If you want to go the server_cmd route then that's the question you need to answer. With Galileo you can simply execute a command to change "mp_timelimit" to 2 and the vote will start within 1 minute.
wait actually now that I think about it that should work with mapchooser too
but I asked about the plugin because galileo has gal_startvote to use
aron9forever 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 21:41.


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