Well, I didnt get what you were saying.. Example please?
Code:
#include <amxmodx>
#include <amxmisc>
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(id,level,cid) {
if (!cmd_access(id ,level, cid , 2)) return PLUGIN_CONTINUE
client_print(0,print_chat,"-[A]narch!st CAL- Config Plugin-")
server_cmd("exec pregame.cfg")
return PLUGIN_CONTINUE
}
public cmd_prelive(id,level,cid) {
if (!cmd_access(id ,level, cid , 2)) return PLUGIN_CONTINUE
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(id , level , cid) {
if (!cmd_access(id ,level, cid , 2)) return PLUGIN_CONTINUE
client_print(0, print_chat, "Good Half Everyone")
server_cmd("sv_restartround 1")
return PLUGIN_CONTINUE
}
public cmd_endall(id,level,cid) {
if (!cmd_access(id ,level, cid , 2)) return PLUGIN_CONTINUE
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(id,level,cid) {
if (!cmd_access(id ,level, cid , 2)) return PLUGIN_CONTINUE
server_cmd("exec lo3.cfg")
client_print(0,print_chat," Good Luck, Have Fun, and Please Talk in Teamsay, The match is starting!")