Advertisement
Guest User

Swat Kill Combos

a guest
Nov 12th, 2011
341
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.80 KB | None | 0 0
  1. /*
  2. Swat Server Kill Combos By AliHaider145
  3. No Bugs Enjoy It
  4. It Is Free From Bugs
  5. THANKS FOR DOWNLOADING
  6. */
  7. #include <a_samp>
  8. //=================== New Player Kills =========================================
  9. new PlayerKills[MAX_PLAYERS] = 0, Dominating[MAX_PLAYERS] = 0;
  10.  
  11. public OnFilterScriptInit()
  12. {
  13. return 1;
  14. }
  15.  
  16. public OnFilterScriptExit()
  17. {
  18. return 1;
  19. }
  20.  
  21. public OnPlayerDeath(playerid, killerid, reason)
  22. {
  23. new kName[128], string[128];
  24. GetPlayerName(killerid, kName, sizeof(kName));
  25. PlayerKills[killerid] = PlayerKills[killerid] +1;
  26. PlayerKills[playerid] = 0;
  27. if(PlayerKills[killerid] == 4 && Dominating[killerid] == 1)
  28. {
  29. format(string,128, "~r~%s First Kill", kName);
  30. GameTextForAll(string, 6000,4);
  31. GivePlayerMoney(killerid, 1000);
  32. GivePlayerMoney(playerid, -1000);
  33. return 1;
  34. }
  35. if(PlayerKills[killerid] == 2)
  36. {
  37. format(string,128, "~r~%s Double Kill", kName);
  38. GameTextForAll(string, 6000,4);
  39. GivePlayerMoney(killerid, 1500);
  40. GivePlayerMoney(playerid, -1000);
  41. return 1;
  42. }
  43. if(PlayerKills[killerid] == 3)
  44. {
  45. format(string,128, "~r~%s Killing Spree", kName);
  46. GameTextForAll(string, 6000,4);
  47. GivePlayerMoney(killerid, 2000);
  48. GivePlayerMoney(playerid, -1000);
  49. return 1;
  50. }
  51. if(PlayerKills[killerid] == 4)
  52. {
  53. format(string,128, "~r~%s Mega Kill", kName);
  54. GameTextForAll(string, 6000,4);
  55. GivePlayerMoney(killerid, 2500);
  56. GivePlayerMoney(playerid, -1000);
  57. return 1;
  58. }
  59. if(PlayerKills[killerid] == 5)
  60. {
  61. format(string,128, "~r~%s Ultra Kill", kName);
  62. GameTextForAll(string, 6000,4);
  63. GivePlayerMoney(killerid, 3000);
  64. GivePlayerMoney(playerid, -1000);
  65. return 1;
  66. }
  67. if(PlayerKills[killerid] == 6)
  68. {
  69. format(string,128, "~r~%s Wicked Sick", kName);
  70. GameTextForAll(string, 6000,4);
  71. GivePlayerMoney(killerid, 3500);
  72. GivePlayerMoney(playerid, -1000);
  73. return 1;
  74. }
  75. if(PlayerKills[killerid] == 7)
  76. {
  77. format(string,128, "~r~%s Monster Kill", kName);
  78. GameTextForAll(string, 6000,4);
  79. GivePlayerMoney(killerid, 4000);
  80. GivePlayerMoney(playerid, -1000);
  81. return 1;
  82. }
  83. if(PlayerKills[killerid] == 8)
  84. {
  85. format(string,128, "~r~%s Ludicrous Kill", kName);
  86. GameTextForAll(string, 6000,4);
  87. GivePlayerMoney(killerid, 4500);
  88. GivePlayerMoney(playerid, -1000);
  89. return 1;
  90. }
  91. if(PlayerKills[killerid] == 9)
  92. {
  93. format(string,128, "~r~%s Is On Rampage", kName);
  94. GameTextForAll(string, 6000,4);
  95. GivePlayerMoney(killerid, 5000);
  96. GivePlayerMoney(playerid, -1000);
  97. return 1;
  98. }
  99. if(PlayerKills[killerid] == 10)
  100. {
  101. format(string,128, "~r~%s 10 Kills", kName);
  102. GameTextForAll(string, 6000,4);
  103. GivePlayerMoney(killerid, 6000);
  104. GivePlayerMoney(playerid, -1000);
  105. return 1;
  106. }
  107. return 1;
  108. }
  109.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement