kyleAI_13

Ranks

Sep 22nd, 2016
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.45 KB | None | 0 0
  1. $TOTALPOSTS = $cmntCount + $topCount + $modCount + $mapCount;
  2.     $PTG = 100; $TR = 46;
  3.     $postDivide = $PTG % $TR;
  4.     if ($TOTALPOSTS <= $postDivide) { $rank = "Recruit"; }
  5.     if ($TOTALPOSTS > $postDivide && $TOTALPOSTS < $postDivide * 2) { $rank = "Apprentice"; }
  6.     if ($TOTALPOSTS > $postDivide * 2 && $TOTALPOSTS < $postDivide * 3) { $rank = "Apprentice_G2"; }
  7.     if ($TOTALPOSTS > $postDivide * 3 && $TOTALPOSTS < $postDivide * 4) { $rank = "Private"; }
  8.     if ($TOTALPOSTS > $postDivide * 4 && $TOTALPOSTS < $postDivide * 5) { $rank = "Private_G2"; }
  9.     if ($TOTALPOSTS > $postDivide * 5 && $TOTALPOSTS < $postDivide * 6) { $rank = "Corperal"; }
  10.     if ($TOTALPOSTS > $postDivide * 6 && $TOTALPOSTS < $postDivide * 7) { $rank = "Corperal_G2"; }
  11.     if ($TOTALPOSTS > $postDivide * 7 && $TOTALPOSTS < $postDivide * 8) { $rank = "Sergant"; }
  12.     if ($TOTALPOSTS > $postDivide * 8 && $TOTALPOSTS < $postDivide * 9) { $rank = "Sergeant_G2"; }
  13.     if ($TOTALPOSTS > $postDivide * 9 && $TOTALPOSTS < $postDivide * 10) { $rank = "Sergeant_G3"; }
  14.     if ($TOTALPOSTS > $postDivide * 10 && $TOTALPOSTS < $postDivide * 11 { $rank = "Gunnery Sergeant"; }
  15.     if ($TOTALPOSTS > $postDivide * 11 && $TOTALPOSTS < $postDivide * 12) { $rank = "Gunnery Sergeant_G2"; }
  16.     if ($TOTALPOSTS > $postDivide * 12 && $TOTALPOSTS < $postDivide * 13) { $rank = "Gunnery Sergeant_G3"; }
  17.     if ($TOTALPOSTS > $postDivide * 13 && $TOTALPOSTS < $postDivide * 14) { $rank = "Gunnery Sergeant_G4"; }
  18.     if ($TOTALPOSTS > $postDivide * 14 && $TOTALPOSTS < $postDivide * 15) { $rank = "Lieutenant"; }
  19.     if ($TOTALPOSTS > $postDivide * 15 && $TOTALPOSTS < $postDivide * 16) { $rank = "Lieutenant_G2"; }
  20.     if ($TOTALPOSTS > $postDivide * 16 && $TOTALPOSTS < $postDivide * 17) { $rank = "Lieutenant_G3"; }
  21.     if ($TOTALPOSTS > $postDivide * 17 && $TOTALPOSTS < $postDivide * 18) { $rank = "Lieutenant_G4"; }
  22.     if ($TOTALPOSTS > $postDivide * 18 && $TOTALPOSTS < $postDivide * 19) { $rank = "Captain"; }
  23.     if ($TOTALPOSTS > $postDivide * 19 && $TOTALPOSTS < $postDivide * 20) { $rank = "Captain_G2"; }
  24.     if ($TOTALPOSTS > $postDivide * 20 && $TOTALPOSTS < $postDivide * 21) { $rank = "Captain_G3"; }
  25.     if ($TOTALPOSTS > $postDivide * 21 && $TOTALPOSTS < $postDivide * 22) { $rank = "Captain_G4"; }
  26.     if ($TOTALPOSTS > $postDivide * 22 && $TOTALPOSTS < $postDivide * 23) { $rank = "Major"; }
  27.     if ($TOTALPOSTS > $postDivide * 23 && $TOTALPOSTS < $postDivide * 24) { $rank = "Major_G2"; }
  28.     if ($TOTALPOSTS > $postDivide * 24 && $TOTALPOSTS < $postDivide * 25) { $rank = "Major_G3"; }
  29.     if ($TOTALPOSTS > $postDivide * 25 && $TOTALPOSTS < $postDivide * 26) { $rank = "Major_G4"; }
  30.     if ($TOTALPOSTS > $postDivide * 26 && $TOTALPOSTS < $postDivide * 27) { $rank = "Commander"; }
  31.     if ($TOTALPOSTS > $postDivide * 27 && $TOTALPOSTS < $postDivide * 28) { $rank = "Commander_G2"; }
  32.     if ($TOTALPOSTS > $postDivide * 28 && $TOTALPOSTS < $postDivide * 29) { $rank = "Commander_G3"; }
  33.     if ($TOTALPOSTS > $postDivide * 29 && $TOTALPOSTS < $postDivide * 30) { $rank = "Commander_G4"; }
  34.     if ($TOTALPOSTS > $postDivide * 30 && $TOTALPOSTS < $postDivide * 31) { $rank = "Commander"; }
  35.     if ($TOTALPOSTS > $postDivide * 31 && $TOTALPOSTS < $postDivide * 32) { $rank = "Commander_G2"; }
  36.     if ($TOTALPOSTS > $postDivide * 32 && $TOTALPOSTS < $postDivide * 33) { $rank = "Commander_G3"; }
  37.     if ($TOTALPOSTS > $postDivide * 33 && $TOTALPOSTS < $postDivide * 34) { $rank = "Commander_G4"; }
  38.     if ($TOTALPOSTS > $postDivide * 34 && $TOTALPOSTS < $postDivide * 35) { $rank = "Colonel"; }
  39.     if ($TOTALPOSTS > $postDivide * 35 && $TOTALPOSTS < $postDivide * 36) { $rank = "Colonel_G2"; }
  40.     if ($TOTALPOSTS > $postDivide * 36 && $TOTALPOSTS < $postDivide * 37) { $rank = "Colonel_G3"; }
  41.     if ($TOTALPOSTS > $postDivide * 37 && $TOTALPOSTS < $postDivide * 38) { $rank = "Colonel_G4"; }
  42.     if ($TOTALPOSTS > $postDivide * 38 && $TOTALPOSTS < $postDivide * 39) { $rank = "Brigadier"; }
  43.     if ($TOTALPOSTS > $postDivide * 39 && $TOTALPOSTS < $postDivide * 40) { $rank = "Brigadier_G2"; }
  44.     if ($TOTALPOSTS > $postDivide * 40 && $TOTALPOSTS < $postDivide * 41) { $rank = "Brigadier_G3"; }
  45.     if ($TOTALPOSTS > $postDivide * 41 && $TOTALPOSTS < $postDivide * 42) { $rank = "Brigadier_G4"; }
  46.     if ($TOTALPOSTS > $postDivide * 42 && $TOTALPOSTS < $postDivide * 43) { $rank = "General"; }
  47.     if ($TOTALPOSTS > $postDivide * 43 && $TOTALPOSTS < $postDivide * 44) { $rank = "General_G2"; }
  48.     if ($TOTALPOSTS > $postDivide * 44 && $TOTALPOSTS < $postDivide * 45) { $rank = "General_G3"; }
  49.     if ($TOTALPOSTS > $postDivide * 45) { $rank = "General_G4"; }
Advertisement
Add Comment
Please, Sign In to add comment