Controls the Next Map: [map name] text which appears in the scoreboard
[QUOTE=Shattered Heart Lynx;2438437]
Do you mind expanding Sven Co-op support?
You can use[FONT=Courier New] is_running("svencoop") [/FONT]to add some extra checks and to manipulate some specific cvars.
Examples:
[PHP]set_pcvar_string( g_cvar_amx_nextmap, nextMap );
if(is_running("svencoop"))
{
set_cvar_string( "mp_nextmap_cycle", nextMap );
}[/PHP]This controls the Next Map: [map name] text which appears in the scoreboard, which is tied to the [FONT=Courier New]mp_nextmap_cycle[/FONT] cvar. I know there are more references to amx_nextmap in your code but it was just an example.
Also:
[PHP]#include [/PHP][plugin_init()]
[PHP]if(is_running("svencoop"))
{
RegisterHam(Ham_Use, "game_end", "voteNextmap");
}[/PHP][PHP]voteNextmap()
{
[call the vote next map method, to immediately change]
}[/PHP]This allows the players to choose the nextmap everytime they complete the current one. I tested with server_cmd("gal_startvote") and it works (executing the command because it's a different .amxx plugin), and it would be better if you call the function directly.
Controls the Next Map: [map name] text which appears in the scoreboard