Guest User

Untitled

a guest
Aug 17th, 2019
75
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function PredictKsBonus()
  2. {
  3. self.mc_ks_rc = "0";
  4. self.mc_ks_artill = "0";
  5. self.mc_ks_drone = "0";
  6. self.mc_ks_dogfight = "0";
  7. self.mc_ks_harrier = "0";
  8. self.mc_ks_adrone = "0";
  9. self.mc_ks_ac130 = "0";
  10. self.mc_ks_heli = "0";
  11. wait 0.1;
  12. players = GetPlayers();
  13. for(i=0;i<players.size;i++)
  14. self.kills = players[i].pers["kills"];
  15. for(;;)
  16. {
  17. wait 0.5;
  18. if(self.kills >= "50" && self.mc_ks_rc == "0" )
  19. {
  20. self.mc_ks = "ks_hud_rc";
  21. self playsound("US_1mc_achieve_bonus_01");
  22. self.mc_ks_rc = "1";
  23. }
  24. if(self.kills >= "100" && self.mc_ks_artill == "0" )
  25. {
  26. self.mc_ks = "ks_hud_artill";
  27. self playsound("US_1mc_achieve_airstrike_01");
  28. self.mc_ks_artill = "1";
  29. }
  30. if(self.kills >= "200" && self.mc_ks_drone == "0" )
  31. {
  32. self.mc_ks = "ks_hud_drone";
  33. self playsound("US_1mc_achieve_recon_drone_01");
  34. self.mc_ks_drone = "1";
  35. }
  36. if(self.kills >= "350" && self.mc_ks_dogfight == "0" )
  37. {
  38. self.mc_ks = "ks_hud_dogfight";
  39. self playsound("US_1mc_achieve_strafe_01");
  40. self.mc_ks_dogfight = "1";
  41. }
  42. if(self.kills >= "500" && self.mc_ks_harrier == "0" )
  43. {
  44. self.mc_ks = "ks_hud_harrier";
  45. self playsound("US_1mc_achieve_harriers_01");
  46. self.mc_ks_harrier = "1";
  47. }
  48. if(self.kills >= "650" && self.mc_ks_adrone == "0" )
  49. {
  50. self.mc_ks = "ks_hud_adrone";
  51. self playsound("US_1mc_achieve_assault_drone_01");
  52. self.mc_ks_adrone = "1";
  53. }
  54. if(self.kills >= "850" && self.mc_ks_ac130 == "0" )
  55. {
  56. self.mc_ks = "ks_hud_ac130";
  57. self playsound("US_1mc_achieve_ac130_01");
  58. self.mc_ks_ac130 = "1";
  59. }
  60. if(self.kills >= "1000" && self.mc_ks_heli == "0" )
  61. {
  62. self.mc_ks = "ks_hud_heli";
  63. self playsound("US_1mc_achieve_ah6guard_01");
  64. self.mc_ks_heli = "1";
  65. self.mc_ks_rc = "0";
  66. }
  67. if(self.kills >= "1050" && self.mc_ks_rc == "0" )
  68. {
  69. self.mc_ks = "ks_hud_rc";
  70. self playsound("US_1mc_achieve_bonus_01");
  71. self.mc_ks_rc = "1";
  72. self.mc_ks_artill = "0";
  73. }
  74. if(self.kills >= "1100" && self.mc_ks_artill == "0" )
  75. {
  76. self.mc_ks = "ks_hud_artill";
  77. self playsound("US_1mc_achieve_airstrike_01");
  78. self.mc_ks_artill = "1";
  79. self.mc_ks_drone = "0";
  80. }
  81. if(self.kills >= "1200" && self.mc_ks_drone == "0" )
  82. {
  83. self.mc_ks = "ks_hud_drone";
  84. self playsound("US_1mc_achieve_recon_drone_01");
  85. self.mc_ks_drone = "1";
  86. self.mc_ks_dogfight = "0";
  87. }
  88. if(self.kills >= "1350" && self.mc_ks_dogfight == "0" )
  89. {
  90. self.mc_ks = "ks_hud_dogfight";
  91. self playsound("US_1mc_achieve_strafe_01");
  92. self.mc_ks_dogfight = "1";
  93. self.mc_ks_harrier = "0";
  94. }
  95. if(self.kills >= "1500" && self.mc_ks_harrier == "0" )
  96. {
  97. self.mc_ks = "ks_hud_harrier";
  98. self playsound("US_1mc_achieve_harriers_01");
  99. self.mc_ks_harrier = "1";
  100. self.mc_ks_adrone = "0";
  101. }
  102. if(self.kills >= "1650" && self.mc_ks_adrone == "0" )
  103. {
  104. self.mc_ks = "ks_hud_adrone";
  105. self playsound("US_1mc_achieve_assault_drone_01");
  106. self.mc_ks_adrone = "1";
  107. self.mc_ks_ac130 = "0";
  108. }
  109. if(self.kills >= "1850" && self.mc_ks_ac130 == "0" )
  110. {
  111. self.mc_ks = "ks_hud_ac130";
  112. self playsound("US_1mc_achieve_ac130_01");
  113. self.mc_ks_ac130 = "1";
  114. self.mc_ks_heli = "0";
  115. }
  116. if(self.kills >= "2000" && self.mc_ks_heli == "0" )
  117. {
  118. self.mc_ks = "ks_hud_heli";
  119. self playsound("US_1mc_achieve_ah6guard_01");
  120. self.mc_ks_heli = "1";
  121. self.mc_ks_rc = "0";
  122. }
  123. if(self.kills >= "2050" && self.mc_ks_rc == "0" )
  124. {
  125. self.mc_ks = "ks_hud_rc";
  126. self playsound("US_1mc_achieve_bonus_01");
  127. self.mc_ks_rc = "1";
  128. self.mc_ks_artill = "0";
  129. }
  130. if(self.kills >= "2100" && self.mc_ks_artill == "0" )
  131. {
  132. self.mc_ks = "ks_hud_artill";
  133. self playsound("US_1mc_achieve_airstrike_01");
  134. self.mc_ks_artill = "1";
  135. self.mc_ks_drone = "0";
  136. }
  137. if(self.kills >= "2200" && self.mc_ks_drone == "0" )
  138. {
  139. self.mc_ks = "ks_hud_drone";
  140. self playsound("US_1mc_achieve_recon_drone_01");
  141. self.mc_ks_drone = "1";
  142. self.mc_ks_dogfight = "0";
  143. }
  144. if(self.kills >= "2350" && self.mc_ks_dogfight == "0" )
  145. {
  146. self.mc_ks = "ks_hud_dogfight";
  147. self playsound("US_1mc_achieve_strafe_01");
  148. self.mc_ks_dogfight = "1";
  149. self.mc_ks_harrier = "0";
  150. }
  151. if(self.kills >= "2500" && self.mc_ks_harrier == "0" )
  152. {
  153. self.mc_ks = "ks_hud_harrier";
  154. self playsound("US_1mc_achieve_harriers_01");
  155. self.mc_ks_harrier = "1";
  156. self.mc_ks_adrone = "0";
  157. }
  158. if(self.kills >= "2650" && self.mc_ks_adrone == "0" )
  159. {
  160. self.mc_ks = "ks_hud_adrone";
  161. self playsound("US_1mc_achieve_assault_drone_01");
  162. self.mc_ks_adrone = "1";
  163. self.mc_ks_ac130 = "0";
  164. }
  165. if(self.kills >= "2850" && self.mc_ks_ac130 == "0" )
  166. {
  167. self.mc_ks = "ks_hud_ac130";
  168. self playsound("US_1mc_achieve_ac130_01");
  169. self.mc_ks_ac130 = "1";
  170. self.mc_ks_heli = "0";
  171. }
  172. if(self.kills >= "3000" && self.mc_ks_heli == "0" )
  173. {
  174. self.mc_ks = "ks_hud_heli";
  175. self playsound("US_1mc_achieve_ah6guard_01");
  176. self.mc_ks_heli = "1";
  177. }
  178.  
  179. }
  180. }
RAW Paste Data