I have an issue with leveling up in my script. When you kill a player it adds exp to you account with a script:
PHP Code:
findplayer(player.account).clientr.exp += int(random(5, 11));
I'm trying to get it to level a player up depending on the amount of exp they have. For example;
Level 1 = 0 exp - 199 exp
Level 2 = 200 exp - 399 exp
Level 3 = 400 exp - 799 exp
How could I get it to change the level of the player, which is stored as clientr.level, when the player has anywhere between two numbers with out listing everything out like
PHP Code:
this.level1 = {1,2,3,4,5,6,7,8,9,10};
Thanks.