View Single Post
cartman-2000
Member
Join Date: Aug 2007
Old 04-24-2008 , 17:18   Re: NextMap with Sven Co-op Fix
Reply With Quote #9

can't find one that does only that. But would adding something like this to the end of plugin_init in this plugin fix this?

server_cmd("exec maps/%s.cfg", g_currentMap);

[edit]
seems to work fine.
[/edit]


[edit again]
actually, it doesn't work if you put deagles map management plugin on the server, that plugin sets the map at the start of the map too.

by putting this line into the end of plugin_init

set_task(6.0, "execmapcfg")

and moving the server_cmd line in this post into it's own function will fix this.

like:
public execmapcfg()
{
server_cmd("exec maps/%s.cfg", g_currentMap);
}

[/edit]

Last edited by cartman-2000; 05-15-2008 at 21:20.
cartman-2000 is offline