Thread
:
NextMap with Sven Co-op Fix
View Single Post
cartman-2000
Member
Join Date: Aug 2007
04-24-2008 , 17:18 Re: NextMap with Sven Co-op Fix
#
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
View Public Profile
Send a private message to cartman-2000
Find More Posts by cartman-2000