MuhammadZeeshan

asdasdasdasdasdasdasd

May 24th, 2017
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.86 KB | None | 0 0
  1. function RankGained( player )
  2. {
  3. local kills = status[ player.ID ].Kills,a;
  4. switch ( kills )
  5. {
  6. case "1":
  7. ServerMessage("[FIRST KILL] - " + player.Name + " has reached a new achievement, rank up: Private I" );
  8. SendMessage( "Congratulations, you gained a rank for killing 1 player, reward: $1000, +10XP", player );
  9. status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 10;
  10. IncCash( player, 1000 );
  11. break;
  12.  
  13. case "5":
  14. ServerMessage( player.Name + " has reached a new achievement, rank up: Private II" );
  15. SendMessage( "Congratulations, you gained a new rank, reward: $2000, +20XP", player );
  16. status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 20;
  17. IncCash( player, 2000 );
  18. break;
  19.  
  20. case "10":
  21. ServerMessage( player.Name + " has reached a new achievement, rank up: Private III" );
  22. SendMessage( "Congratulations, you gained a new rank, reward: $3000, +30XP", player );
  23. status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 30;
  24. IncCash( player, 3000 );
  25. break;
  26.  
  27. case "200":
  28. ServerMessage( player.Name + " has reached a new achievement, rank up: Private First Class I" );
  29. SendMessage( "Congratulations, you gained a new rank, reward: $4000, +40XP", player );
  30. status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 40;
  31. IncCash( player, 4000 );
  32. break;
  33.  
  34. case "300":
  35. ServerMessage( player.Name + " has reached a new achievement, rank up: Private First Class II" );
  36. SendMessage( "Congratulations, you gained a new rank, reward: $5000, +50XP", player );
  37. status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 50;
  38. IncCash( player, 5000 );
  39. break;
  40.  
  41. case "400":
  42. ServerMessage( player.Name + " has reached a new achievement, rank up: Private First Class III" );
  43. SendMessage( "Congratulations, you gained a new rank, reward: $6000, +60XP", player );
  44. status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 60;
  45. IncCash( player, 6000 );
  46. break;
  47.  
  48. case "500":
  49. ServerMessage( player.Name + " has reached a new achievement, rank up: Specialist I" );
  50. SendMessage( "Congratulations, you gained a new rank, reward: $7000, +70XP", player );
  51. status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 70;
  52. IncCash( player, 7000 );
  53. break;
  54.  
  55. case "600":
  56. ServerMessage( player.Name + " has reached a new achievement, rank up: Specialist II" );
  57. SendMessage( "Congratulations, you gained a new rank, reward: $8000, +80XP", player );
  58. status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 80;
  59. IncCash( player, 8000 );
  60. break;
  61.  
  62. case "700":
  63. ServerMessage( player.Name + " has reached a new achievement, rank up: Specialist III" );
  64. SendMessage( "Congratulations, you gained a new rank, reward: $9000, +90XP", player );
  65. status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 90;
  66. IncCash( player, 9000 );
  67. break;
  68.  
  69. case "800":
  70. ServerMessage( player.Name + " has reached a new achievement, rank up: Corporal I" );
  71. SendMessage( "Congratulations, you gained a new rank, reward: $10000, +100XP", player );
  72. status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 100;
  73. IncCash( player, 10000 );
  74. break;
  75.  
  76. case "900":
  77. ServerMessage( player.Name + " has reached a new achievement, rank up: Corporal II" );
  78. SendMessage( "Congratulations, you gained a new rank, reward: $11000, +110XP", player );
  79. status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 110;
  80. IncCash( player, 11000 );
  81. break;
  82.  
  83. case "1000":
  84. ServerMessage( player.Name + " has reached a new achievement, rank up: Corporal III" );
  85. SendMessage( "Congratulations, you gained a new rank, reward: $12000, +120XP", player );
  86. status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 120;
  87. IncCash( player, 12000 );
  88. break;
  89.  
  90. case "1200":
  91. ServerMessage( player.Name + " has reached a new achievement, rank up: Sergeant I" );
  92. SendMessage( "Congratulations, you gained a new rank, reward: $13000, +130XP", player );
  93. status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 130;
  94. IncCash( player, 13000 );
  95. break;
  96.  
  97. case "1400":
  98. ServerMessage( player.Name + " has reached a new achievement, rank up: Sergeant II" );
  99. SendMessage( "Congratulations, you gained a new rank, reward: $14000, +140XP", player );
  100. status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 140;
  101. IncCash( player, 14000 );
  102. break;
  103.  
  104. case "1600":
  105. ServerMessage( player.Name + " has reached a new achievement, rank up: Sergeant III" );
  106. SendMessage( "Congratulations, you gained a new rank, reward: $15000, +150XP", player );
  107. status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 150;
  108. IncCash( player, 15000 );
  109. break;
  110.  
  111. case "1800":
  112. ServerMessage( player.Name + " has reached a new achievement, rank up: Staff Sergeant I" );
  113. SendMessage( "Congratulations, you gained a new rank, reward: $16000, +160XP", player );
  114. status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 160;
  115. IncCash( player, 16000 );
  116. break;
  117.  
  118. case "2000":
  119. ServerMessage( player.Name + " has reached a new achievement, rank up: Staff Sergeant II" );
  120. SendMessage( "Congratulations, you gained a new rank, reward: $17000, +17XP", player );
  121. status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 170;
  122. IncCash( player, 17000 );
  123. break;
  124.  
  125. case "2200":
  126. ServerMessage( player.Name + " has reached a new achievement, rank up: Staff Sergeant III" );
  127. SendMessage( "Congratulations, you gained a new rank, reward: $18000, +180XP", player );
  128. status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 180;
  129. IncCash( player, 18000 );
  130. break;
  131.  
  132. case "2400":
  133. ServerMessage( player.Name + " has reached a new achievement, rank up: Sergeant First Class I" );
  134. SendMessage( "Congratulations, you gained a new rank, reward: $19000, +190XP", player );
  135. status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 190;
  136. IncCash( player, 19000 );
  137. break;
  138.  
  139. case "2600":
  140. ServerMessage( player.Name + " has reached a new achievement, rank up: Sergeant First Class II" );
  141. SendMessage( "Congratulations, you gained a new rank, reward: $20000, +200XP", player );
  142. status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 200;
  143. IncCash( player, 20000 );
  144. break;
  145.  
  146. case "2800":
  147. ServerMessage( player.Name + " has reached a new achievement, rank up: Sergeant First Class III" );
  148. SendMessage( "Congratulations, you gained a new rank, reward: $22000, +210XP", player );
  149. status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 210;
  150. IncCash( player, 22000 );
  151. break;
  152.  
  153. case "3000":
  154. ServerMessage( player.Name + " has reached a new achievement, rank up: Sergeant Major I" );
  155. SendMessage( "Congratulations, you gained a new rank, reward: $25000, +220XP", player );
  156. status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 220;
  157. IncCash( player, 25000 );
  158. break;
  159.  
  160. case "3200":
  161. ServerMessage( player.Name + " has reached a new achievement, rank up: Sergeant Major II" );
  162. SendMessage( "Congratulations, you gained a new rank, reward: $27000, +230XP", player );
  163. status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 230;
  164. IncCash( player, 27000 );
  165. break;
  166.  
  167. case "3400":
  168. ServerMessage( player.Name + " has reached a new achievement, rank up: Sergeant Major III" );
  169. SendMessage( "Congratulations, you gained a new rank, reward: $30000, +240XP", player );
  170. status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 240;
  171. IncCash( player, 30000 );
  172. break;
  173.  
  174. case "3700":
  175. ServerMessage( player.Name + " has reached a new achievement, rank up: Lieutenant I" );
  176. SendMessage( "Congratulations, you gained a new rank, reward: $37000, +250XP", player );
  177. status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 250;
  178. IncCash( player, 37000 );
  179. break;
  180.  
  181. case "4000":
  182. ServerMessage( player.Name + " has reached a new achievement, rank up: Lieutenant II" );
  183. SendMessage( "Congratulations, you gained a new rank, reward: $40000, +260XP", player );
  184. status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 260;
  185. IncCash( player, 40000 );
  186. break;
  187.  
  188. case "4300":
  189. ServerMessage( player.Name + " has reached a new achievement, rank up: Lieutenant III" );
  190. SendMessage( "Congratulations, you gained a new rank, reward: $43000, +270XP", player );
  191. status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 270;
  192. IncCash( player, 43000 );
  193. break;
  194.  
  195. case "4650":
  196. ServerMessage( player.Name + " has reached a new achievement, rank up: Captain I" );
  197. SendMessage( "Congratulations, you gained a new rank, reward: $46000, +280XP", player );
  198. status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 280;
  199. IncCash( player, 46000 );
  200. break;
  201.  
  202. case "5000":
  203. ServerMessage( player.Name + " has reached a new achievement, rank up: Captain II" );
  204. SendMessage( "Congratulations, you gained a new rank, reward: $50000, +290XP", player );
  205. status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 290;
  206. IncCash( player, 50000 );
  207. break;
  208.  
  209. case "5500":
  210. ServerMessage( player.Name + " has reached a new achievement, rank up: Captain III" );
  211. SendMessage( "Congratulations, you gained a new rank, reward: $55000, +300XP", player );
  212. status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 300;
  213. IncCash( player, 55000 );
  214. break;
  215.  
  216. case "6000":
  217. ServerMessage( player.Name + " has reached a new achievement, rank up: Major I" );
  218. SendMessage( "Congratulations, you gained a new rank, reward: $60000, +310XP", player );
  219. status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 310;
  220. IncCash( player, 60000 );
  221. break;
  222.  
  223. case "6500":
  224. ServerMessage( player.Name + " has reached a new achievement, rank up: Major II" );
  225. SendMessage( "Congratulations, you gained a new rank, reward: $65000, +320XP", player );
  226. status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 320;
  227. IncCash( player, 65000 );
  228. break;
  229.  
  230. case "7000":
  231. ServerMessage( player.Name + " has reached a new achievement, rank up: Major III" );
  232. SendMessage( "Congratulations, you gained a new rank, reward: $70000, +330XP", player );
  233. status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 330;
  234. IncCash( player, 70000 );
  235. break;
  236.  
  237. case "7500":
  238. ServerMessage( player.Name + " has reached a new achievement, rank up: Lieutenant Colonel I" );
  239. SendMessage( "Congratulations, you gained a new rank, reward: $75000, +340XP", player );
  240. status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 340;
  241. IncCash( player, 75000 );
  242. break;
  243.  
  244. case "8000":
  245. ServerMessage( player.Name + " has reached a new achievement, rank up: Lieutenant Colonel II" );
  246. SendMessage( "Congratulations, you gained a new rank, reward: $80000, +350XP", player );
  247. status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 350;
  248. IncCash( player, 80000 );
  249. break;
  250.  
  251. case "8500":
  252. ServerMessage( player.Name + " has reached a new achievement, rank up: Lieutenant Colonel III" );
  253. SendMessage( "Congratulations, you gained a new rank, reward: $85000, +360XP", player );
  254. status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 360;
  255. IncCash( player, 85000 );
  256. break;
  257.  
  258. case "9000":
  259. ServerMessage( player.Name + " has reached a new achievement, rank up: Colonel I" );
  260. SendMessage( "Congratulations, you gained a new rank, reward: $90000, +370XP", player );
  261. status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 370;
  262. IncCash( player, 90000 );
  263. break;
  264.  
  265. case "9500":
  266. ServerMessage( player.Name + " has reached a new achievement, rank up: Colonel II" );
  267. SendMessage( "Congratulations, you gained a new rank, reward: $95000, +380XP", player );
  268. status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 380;
  269. IncCash( player, 95000 );
  270. break;
  271.  
  272. case "10000":
  273. ServerMessage( player.Name + " has reached a new achievement, rank up: Colonel III" );
  274. SendMessage( "Congratulations, you gained a new rank, reward: $100000, +390XP", player );
  275. status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 390;
  276. IncCash( player, 100000 );
  277. break;
  278.  
  279. case "11000":
  280. ServerMessage( player.Name + " has reached a new achievement, rank up: Brigadier General I" );
  281. SendMessage( "Congratulations, you gained a new rank, reward: $110000, +400XP", player );
  282. status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 400;
  283. IncCash( player, 110000 );
  284. break;
  285.  
  286. case "12000":
  287. ServerMessage( player.Name + " has reached a new achievement, rank up: Brigadier General II" );
  288. SendMessage( "Congratulations, you gained a new rank, reward: $120000, +420XP", player );
  289. status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 420;
  290. IncCash( player, 120000 );
  291. break;
  292.  
  293. case "13000":
  294. ServerMessage( player.Name + " has reached a new achievement, rank up: Brigadier General III" );
  295. SendMessage( "Congratulations, you gained a new rank, reward: $130000, +440XP", player );
  296. status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 440;
  297. IncCash( player, 130000 );
  298. break;
  299.  
  300. case "14000":
  301. ServerMessage( player.Name + " has reached a new achievement, rank up: Major General I" );
  302. SendMessage( "Congratulations, you gained a new rank, reward: $140000, +460XP", player );
  303. status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 460;
  304. IncCash( player, 140000 );
  305. break;
  306.  
  307. case "15000":
  308. ServerMessage( player.Name + " has reached a new achievement, rank up: Major General II" );
  309. SendMessage( "Congratulations, you gained a new rank, reward: $150000, +470XP", player );
  310. status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 470;
  311. IncCash( player, 150000 );
  312. break;
  313.  
  314. case "16000":
  315. ServerMessage( player.Name + " has reached a new achievement, rank up: Major General III" );
  316. SendMessage( "Congratulations, you gained a new rank, reward: $160000, +480XP", player );
  317. status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 480;
  318. IncCash( player, 160000 );
  319. break;
  320.  
  321. case "18000":
  322. ServerMessage( player.Name + " has reached a new achievement, rank up: Lieutenant General I" );
  323. SendMessage( "Congratulations, you gained a new rank, reward: $180000, +500XP", player );
  324. status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 500;
  325. IncCash( player, 180000 );
  326. break;
  327.  
  328. case "20000":
  329. ServerMessage( player.Name + " has reached a new achievement, rank up: Lieutenant General II" );
  330. SendMessage( "Congratulations, you gained a new rank, reward: $200000, +525XP", player );
  331. status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 525;
  332. IncCash( player, 200000 );
  333. break;
  334.  
  335. case "22000":
  336. ServerMessage( player.Name + " has reached a new achievement, rank up: Lieutenant General III" );
  337. SendMessage( "Congratulations, you gained a new rank, reward: $220000, +550XP", player );
  338. status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 550;
  339. IncCash( player, 220000 );
  340. break;
  341.  
  342. case "25000":
  343. ServerMessage( player.Name + " has reached a new achievement, rank up: General" );
  344. SendMessage( "Congratulations, you gained a new rank, reward: $250000, +600XP", player );
  345. status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 600;
  346. IncCash( player, 250000 );
  347. break;
  348.  
  349. case "30000":
  350. ServerMessage( player.Name + " has reached a new achievement, rank up: Commander" );
  351. SendMessage( "Congratulations, you gained a new rank, reward: $300000, +1000XP", player );
  352. status[ player.ID ].XP = status[ player.ID ].XP.tointeger() + 1000;
  353. IncCash( player, 300000 );
  354. break;
  355.  
  356. }
  357. }
Add Comment
Please, Sign In to add comment