Hallo, i have my cw/tg plugin, but it not full... I need /stop.
i have now this:
Code:
public plugin_init() {
register_clcmd("say /stop", "cmd_stop", 0, "- stop the match")
}
public cmd_stop(id) {
if (match_inprogress == 1) {
all_msg("Zastavuji zapas.")
match_inprogress = 0
set_task(3.0, "restart_round", 0, "1", 1)
set_task(6.0, "all_msg", 0, "Zapas byl zrusen", 13)
} else {
client_print(id, print_chat, "Wickedside.cz[molny]: Momentalne je hra zastavena, pouzij /start")
}
return PLUGIN_HANDLED
}
THIS IS BAD!
but this is bad!, i need /stop when game was stoped, here is restart round....
how?