Instead of using spawn, set the flag to world.timeofday and then check if(world.timeofday > (spam_flag + 20))