Try this out.
Code:
#include <amxmodx>
public plugin_init()
{
register_plugin("PeepShowConfigLoader","1","Revelation")
register_menucmd(register_menuid("/yChoose Option:"),1023,"LoadConfig")
register_clcmd("say /peepshowcfgmenu","ShowPSCfgMenu")
}
public ShowPSCfgMenu(id)
{
new szMenuBody[256]
new keys
format(szMenuBody,255,"\yCounter-Strike Powers Menu:\w^n^n")
add(szMenuBody,255,"1. Load Public Server Settings^n")
add(szMenuBody,255,"2. Load War Server Settings^n")
add(szMenuBody,255,"3. 3 Restarts Then Live^n")
add(szMenuBody,255,"4. Restarts The Knives^n^n")
add(szMenuBody,255,"5. Restarts Round")
keys = (1<<0|1<<1|1<<2|1<<3|1<<4)
show_menu(id,keys,szMenuBody,-1 )
return PLUGIN_CONTINUE
}
public LoadConfig(id,key)
{
switch(key)
{
case 0:
{
server_cmd("exec cfgs/public.cfg")
}
case 1:
{
server_cmd("exec cfgs/war.cfg")
}
case 2:
{
server_cmd("exec cfgs/live.cfg")
}
case 3:
{
server_cmd("exec cfgs/knives.cfg")
}
case 4:
{
server_cmd("sv_restartround 1")
}
}
return PLUGIN_HANDLED
}