Hi, well. I think im over my head in this plugin, but its an idea..
Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
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,const message[],^-[A]narch!st CAL- Config Plugin-^)
server_exec("exec pregame.cfg")
PLUGIN_CONTINUE
}
public cmd_prelive() {
client_print(0,print_chat,const message[], CAL-Open Config has been Started)
client_print(0,print_chat,const message[], Type ready in chat to start the match!)
client_print(0,print_chat,const message[], Match will not start until both teams confirm they are ready)
PLUGIN_CONTINUE
}
public cmd_half() {
client_print(0,print_chat,const message[], Good Half Everyone)
server_exec("sv_restartround 1")
PLUGIN_CONTINUE
}
public cmd_endall() {
client_print(0,print_chat,const message[], This Match Has Been Stopped, Thanks for Playing)
server_exec("sv_restartround 1")
server_exec("exec server.cfg")
PLUGIN_CONTINUE
}
public cmd_live() {
server_exec("exec lo3.cfg")
client_print(0,print_chat,const message[], Good Luck, Have Fun, and Please Talk in Teamsay, The match is starting!)
PLUGIN_CONTINUE
}
I get errors every line, I think Ive underestimated the difficulty[/quote]
__________________