XP System

Hey, guys. I was wondering if I could implement a XP System into my jailbreak server. Thing is, I have no clue how to do it! How I want it to go is, Prisoners start at level 0 and must get to these xp caps for each level.
lvl 1 50
lvl 2 100
lvl 3 200
lvl 4 400
lvl 5 800
lvl 6 1600
lvl 8 3200
lvl 9 6400
lvl 10 12800
BTW when ever you get a new level you keep the amount of XP you had gained the other level. For example: You get from level 2 to lvl 3 and would have 200/400 XP (0)
the way this will work is the amount of xp WONT change at all for all prestige levels. when you reach lvl 10 and get all of the xp you will be able to get a new prestige and the xp will be reset but in parentheses there will be a 1. For example : 0/50XP (1). I hope this will be implemented.
Also another thing, when ever you kill a guard it will give you 10 xp points. I was thinking a prestige cap if you are one of those hardcore gamers at prestige 70.

I literally made this today: http://forum.facepunch.com/showthread.php?t=1390994

As for distributing the XP, you should do ply:GiveXP(10) using this hook: http://wiki.garrysmod.com/page/GM/PlayerDeath

If you don’t understand any lua, I advice posting a job on CoderHire.com instead.

I’m actually from CoderHire. This was just new to me! Haha.