Hi all, I make this CountDown:
Code:
#include <amxmodx>
#include <amxmisc>
new Time = 15;
new DefaultValue;
public plugin_init()
register_clcmd("say /count", "CountDown");
public CountDown() {
if(Time == 0) {
Time = DefaultValue;
DefaultValue = 0;
return;
}
Time--;
DefaultValue++;
client_print(0, print_chat, "CountDown: %d", Time);
set_task(1.0, "CountDown");
}
It works perfectly, but, have other way to make this? More optimized?
__________________