As per Computerpunks suggestion I removed the onupdate function and made some functions local. Also removed some other code that wasn't needed and made sure the kills/dbs/deaths stats are set to 0 when you log in.
Decided to make this a release version as it seems pretty stable and bugfree except for the stuff i noted in the know caveats.