Advertisement
captmicro

Unknown

Oct 3rd, 2010
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.34 KB | None | 0 0
  1. public AddExp(client, exp)
  2. {
  3.     exptbl[client] = exptbl[client] + exp;
  4.     previous_lvl[client] = lvl[client];
  5.     new Float:lvlcheck = float(exptbl[client] - 499) / 700;
  6.     lvl[client] = RoundToFloor(lvlcheck) + 2;
  7.     if (lvl[client] > previous_lvl[client]) {
  8.         PlayerLevelUp(client)
  9.     }
  10. }
  11.  
  12. public PlayerLevelUp(client)
  13. {
  14.     //Do level up shit here
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement