Hello
How to do to be able to use the variable X every 7 rounds?
PHP Code:
#include <amxmodx>
new x, rounds;
public plugin_init() {
register_clcmd("say /test", "use");
register_logevent("RoundEnd", 2, "1=Round_End");
register_event("TextMsg", "RestartGame", "a", "2&#Game_w");
register_event("TextMsg", "RestartContin", "a", "2&#Game_C");
}
public RestartGame() rounds = 0;
public RestartContin() rounds = -1;
public RoundEnd() rounds++;
public use(id) {
if(x ?) {
client_print(id, 3, "Can only be used once every 7 rounds!");
return 1;
}
// code
return 0;
}