I'm not going to look at the entire code, but I want to let you know that instead of using 32 as an array size in the global variables, you should be using 33. The way you have it right now, the 32nd player will break the plugin.
timer_started[32] => timer_started[33]
Btw, this bool is already an example of what you're trying to do.