AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Soccerjam mapchange (https://forums.alliedmods.net/showthread.php?t=210102)

danonix 03-06-2013 09:47

Soccerjam mapchange
 
Hello,

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

Thanks

TheDS1337 03-06-2013 13:01

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

danonix 03-06-2013 14:24

Re: Soccerjam mapchange
 
What is the command for run the voting?

TheAutomatiK 06-11-2014 14:05

Re: Soccerjam mapchange
 
deagle the answer didn't help bro, please expound a little like a pro :D

aron9forever 06-12-2014 06:43

Re: Soccerjam mapchange
 
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

TheAutomatiK 06-12-2014 08:47

Re: Soccerjam mapchange
 
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

Compidence 06-12-2014 19:10

Re: Soccerjam mapchange
 
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 (Post 2150383)
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.

aron9forever 06-13-2014 00:49

Re: Soccerjam mapchange
 
Quote:

Originally Posted by Compidence (Post 2150776)
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


All times are GMT -4. The time now is 21:41.

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