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