I made a custom zombiemode_weapons based on the one from black ops and some personal ideas. After three days of troubleshooting and fixing, the script works fine (I mean that firesale works, boxes appear and disappear) . However, I found some bugs that must be fixed and that I can't fix by myself because I don't see the source of the problem.
Here the bug list:
- Second time firesale is activated, every mystery box spawns a random model (always the same model, but diferent for each box: one spawns dempsey, another a grenade, another an arm) wich disappears during weapon randomization and comes back when weapon is set.
- Also, second time firesale is activated, random teddybears show up instead of weapons
- After firesale is over and box is closed there's a small lapse of time (less than a second) while player can still buy the box
- When box moves, gives back two times 950 points.
- Poltergeist FX does not show up, even on normal box or firesale boxes.
And here's the script:
http://pastebin.com/XiVMr3g0I'm not asking people to do my job and solve every problem, cause I want to learn how does scripting work. If you can point me out what is wrong and why, I should figure out the rest by myself. Feel free to use the code as long as you give little credit.

Thanks a lot for your time