29.06.2015, 20:56
Are you using that code in OnPlayerUpdate or in any callback which is being repeated by a timer? That would explain the problem.
When does the player gain score, when he kills someone? Then you might add your level-up system to OnPlayerDeath.
When does the player gain score, when he kills someone? Then you might add your level-up system to OnPlayerDeath.