this is what i came up with after another 3 hours lol... but it works. it makes a maplist in mapcycle.txt just by issuing sm_writemaplist from the main plugin.
PHP Code:
#include <sourcemod>
#include <console>
public Plugin myinfo =
{
name = "My First SM Plugin - running a server command at start",
author = "michaelrw/DNA",
description = "runs sm_writemaplist to make a maplist at mapcycle.txt",
version = "1.0.0.0",
url = "http://www.sourcemod.net/"
}
public void OnPluginStart()
{
ServerCommand("sm_writemaplist mapcycle.txt")
}