Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function GetRank( player )
- {
- local xp = status[ player.ID ].XP,a;
- if(xp<=500) return "Private I";
- else if(xp<=1000) return "Private II";
- else if(xp<=1500) return "Private III";
- else if(xp<=2050) return "Private First Class I";
- else if(xp<=2570) return "Private First Class II";
- else if(xp<=3000) return "Private First Class III";
- else if(xp<=3500) return "Specialist I";
- else if(xp<=4050) return "Specialist II";
- else if(xp<=4500) return "Specialist III";
- else if(xp<=5000) return "Corporal I";
- else if(xp<=5300) return "Corporal II";
- else if(xp<=5500) return "Corporal III";
- else if(xp<=5950) return "Sergeant I";
- else if(xp<=6300) return "Sergeant II";
- else if(xp<=6550) return "Sergeant III";
- else if(xp<=6800) return "Staff Sergeant I";
- else if(xp<=7000) return "Staff Sergeant II";
- else if(xp<=7350) return "Staff Sergeant III";
- else if(xp<=7700) return "Sergeant First Class I";
- else if(xp<=8000) return "Sergeant First Class II";
- else if(xp<=8300) return "Sergeant First Class III";
- else if(xp<=8780) return "Sergeant Major I";
- else if(xp<=9000) return "Sergeant Major II";
- else if(xp<=9300) return "Sergeant Major II";
- else if(xp<=9700) return "Lieutenant I";
- else if(xp<=10000) return "Lieutenant II";
- else if(xp<=10350) return "Lieutenant III";
- else if(xp<=10630) return "Captain I";
- else if(xp<=11000) return "Captain II";
- else if(xp<=11330) return "Captain III";
- else if(xp<=11700) return "Major I";
- else if(xp<=12030) return "Major II";
- else if(xp<=12400) return "Major III";
- else if(xp<=12830) return "Lieutenant Colonel I";
- else if(xp<=13100) return "Lieutenant Colonel II";
- else if(xp<=13530) return "Lieutenant Colonel III";
- else if(xp<=13950) return "Colonel I";
- else if(xp<=14230) return "Colonel II";
- else if(xp<=14560) return "Colonel III";
- else if(xp<=14830) return "Brigadier General I";
- else if(xp<=15110) return "Brigadier General II";
- else if(xp<=15430) return "Brigadier General III";
- else if(xp<=15900) return "Major General I";
- else if(xp<=16230) return "Major General II";
- else if(xp<=16500) return "Major General III";
- else if(xp<=17030) return "Lieutenant General I";
- else if(xp<=18000) return "Lieutenant General II";
- else if(xp<=20300) return "Lieutenant General III";
- else if(xp<=22000) return "General";
- else if(xp<=25000) return "Commander";
- }
Add Comment
Please, Sign In to add comment