How could I make the countdown disappear if an infection or any game mode appears? I tried it with an if in the native zp_has_round_started but it doesn't convince me, I think there is a simpler way than putting an if to all publics
PD: I solved it in the following way:
PHP Code:
public event_round_start()
{
remove_task()
set_task(5.0,"countdown")
}
public logevent_round_end()
{
remove_task()
}
public zp_user_infected_post()
{
remove_task()
}
With this the countdown is eliminated in any mode or infection or at the end of the round or restart, my only question now is if it is the best way and if it is mandatory to add an id to the task?