I think: need rework this
PHP Code:
menuWeapon(response)
{
/*
...
*/
*/ 
the reason seems to me in these variables
Code:
level.roundstarted
level.didexist[]
easier to rewrite than to search