there is
set_task(30.0, "showWarn", id, param, 1)
waits 30 seconds before even starting. thought of that
also you should make test time higher than 10 seconds and more than 2 checks before action. i dont want to be kicking people for a server spike or something. if you noticed the min settings are 15 and 4 no matter what you set it to lower than that as catch all.