MuhammadZeeshan

sadasda

May 21st, 2017
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.28 KB | None | 0 0
  1. function GetRank( player )
  2. {
  3. local xp = status[ player.ID ].XP,a;
  4. if(xp<=500) return "Private I";
  5. else if(xp<=1000) return "Private II";
  6. else if(xp<=1500) return "Private III";
  7. else if(xp<=2050) return "Private First Class I";
  8. else if(xp<=2570) return "Private First Class II";
  9. else if(xp<=3000) return "Private First Class III";
  10. else if(xp<=3500) return "Specialist I";
  11. else if(xp<=4050) return "Specialist II";
  12. else if(xp<=4500) return "Specialist III";
  13. else if(xp<=5000) return "Corporal I";
  14. else if(xp<=5300) return "Corporal II";
  15. else if(xp<=5500) return "Corporal III";
  16. else if(xp<=5950) return "Sergeant I";
  17. else if(xp<=6300) return "Sergeant II";
  18. else if(xp<=6550) return "Sergeant III";
  19. else if(xp<=6800) return "Staff Sergeant I";
  20. else if(xp<=7000) return "Staff Sergeant II";
  21. else if(xp<=7350) return "Staff Sergeant III";
  22. else if(xp<=7700) return "Sergeant First Class I";
  23. else if(xp<=8000) return "Sergeant First Class II";
  24. else if(xp<=8300) return "Sergeant First Class III";
  25. else if(xp<=8780) return "Sergeant Major I";
  26. else if(xp<=9000) return "Sergeant Major II";
  27. else if(xp<=9300) return "Sergeant Major II";
  28. else if(xp<=9700) return "Lieutenant I";
  29. else if(xp<=10000) return "Lieutenant II";
  30. else if(xp<=10350) return "Lieutenant III";
  31. else if(xp<=10630) return "Captain I";
  32. else if(xp<=11000) return "Captain II";
  33. else if(xp<=11330) return "Captain III";
  34. else if(xp<=11700) return "Major I";
  35. else if(xp<=12030) return "Major II";
  36. else if(xp<=12400) return "Major III";
  37. else if(xp<=12830) return "Lieutenant Colonel I";
  38. else if(xp<=13100) return "Lieutenant Colonel II";
  39. else if(xp<=13530) return "Lieutenant Colonel III";
  40. else if(xp<=13950) return "Colonel I";
  41. else if(xp<=14230) return "Colonel II";
  42. else if(xp<=14560) return "Colonel III";
  43. else if(xp<=14830) return "Brigadier General I";
  44. else if(xp<=15110) return "Brigadier General II";
  45. else if(xp<=15430) return "Brigadier General III";
  46. else if(xp<=15900) return "Major General I";
  47. else if(xp<=16230) return "Major General II";
  48. else if(xp<=16500) return "Major General III";
  49. else if(xp<=17030) return "Lieutenant General I";
  50. else if(xp<=18000) return "Lieutenant General II";
  51. else if(xp<=20300) return "Lieutenant General III";
  52. else if(xp<=22000) return "General";
  53. else if(xp<=25000) return "Commander";
  54. }
Add Comment
Please, Sign In to add comment