Code:
#include <amxmodx>
public plugin_init() {
register_plugin("StnCALMod","1.0","Anarch!st")
register_clcmd("say /pregame", "cmd_pg", ADMIN_KICK,"- Custom Second To None Cal-Open Plugin Command")
register_clcmd("say /prelo3", "cmd_prelive", ADMIN_KICK,"- Custom Second To None Cal-Open Plugin Command")
register_clcmd("say /lo3", "cmd_live", ADMIN_KICK,"- Custom Second To None Cal-Open Plugin Command")
register_clcmd("say /halftime", "cmd_half", ADMIN_KICK,"- Custom Second To None Cal-Open Plugin Command")
register_clcmd("say /stop","cmd_endall", ADMIN_KICK,"- Custom Second To None Cal-Open Plugin Command")
}
public cmd_pg() {
client_print(0,print_chat,"-[A]narch!st CAL- Config Plugin-")
server_cmd("exec pregame.cfg")
return PLUGIN_CONTINUE
}
public cmd_prelive() {
client_print(0,print_chat,"CAL-Open Config has been Started")
client_print(0,print_chat, "Type ready in chat to start the match!")
client_print(0,print_chat,"Match will not start until both teams confirm they are ready")
return PLUGIN_CONTINUE
}
public cmd_half() {
client_print(0, print_chat, "Good Half Everyone")
server_cmd("sv_restartround 1")
return PLUGIN_CONTINUE
}
public cmd_endall() {
client_print(0,print_chat, "This Match Has Been Stopped, Thanks for Playing")
server_cmd("sv_restartround 1")
server_cmd("exec server.cfg")
return PLUGIN_CONTINUE
}
public cmd_live() {
server_cmd("exec lo3.cfg")
client_print(0,print_chat," Good Luck, Have Fun, and Please Talk in Teamsay, The match is starting!")
return PLUGIN_CONTINUE
}
Not sure if Admin flags work in say... I don't know.