Hi, i want my server to kill itself after one map has been played,
I have written this code but it seems to cause some funny behavior and doesnt always work, Anyone know of any better way to kill the server?
Code:
public plugin_init()
{
register_plugin("mapkill",VERSION,"Mike Wharton");
//set log event handling, wee need to hook round start and round finished, also frags and deaths
}
public plugin_end()
{
kill_server();
}
public kill_server()
{
server_cmd("quit");
}
thanks,
Mikey_trw
p.s i tried with and without a server_exec(); after the quit command