Guest User

Killing Spree

a guest
Dec 8th, 2012
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.01 KB | None | 0 0
  1. #if defined CREDITS
  2. ___________________________________
  3. | |
  4. | Killing Spree |
  5. | - Napravio [RNG]DuReX |
  6. | - Vrijeme : 25 de minute |
  7. | - Verzija: 1.0 |
  8. | - Napravljeno: 21 novembra 2012 |
  9. | - Linija: 244 |
  10. | - Preveo: N1XTON |
  11. | - Ne skidaj creditse! |
  12. | |
  13. |__________________________________|
  14.  
  15. #endif
  16.  
  17. //=====================================//
  18. #include <a_samp>
  19. //=====================================//
  20. new KillSpree[MAX_PLAYERS];
  21. new Text:Textdraw0;
  22. new aaa;
  23. new string[128], pname[24], kname[24];
  24. //=====================================//
  25. forward blablabla();
  26. //=====================================//
  27. public OnFilterScriptInit()
  28. {
  29. Textdraw0 = TextDrawCreate(10.000000, 290.000000, "-");
  30. TextDrawBackgroundColor(Textdraw0, 255);
  31. TextDrawFont(Textdraw0, 1);
  32. TextDrawLetterSize(Textdraw0, 0.410000, 1.800000);
  33. TextDrawColor(Textdraw0, -1);
  34. TextDrawSetOutline(Textdraw0, 0);
  35. TextDrawSetProportional(Textdraw0, 1);
  36. TextDrawSetShadow(Textdraw0, 1);
  37. TextDrawUseBox(Textdraw0, 1);
  38. TextDrawBoxColor(Textdraw0, 0x00000033);
  39. TextDrawTextSize(Textdraw0, 201.000000, 36.000000);
  40. print("\n-----------------------------------------------------");
  41. print(" DuReX's Killing Spree Filterscript loaded succesfully!");
  42. print("-----------------------------------------------------\n");
  43. SendClientMessageToAll(0xFFFFFFFF, "{33AA33}Killing Spree System: {FFFFFF}Loaded succesfully!");
  44. return 1;
  45. }
  46. //=====================================//
  47. public OnFilterScriptExit()
  48. {
  49. print("\n-----------------------------------------------------");
  50. print(" DuReX's Killing Spree Filterscript unloaded!");
  51. print("-----------------------------------------------------\n");
  52. SendClientMessageToAll(0xFFFFFFFF, "{33AA33}Killing Spree System: {FFFFFF}Unloaded!");
  53. return 1;
  54. }
  55. //=====================================//
  56. public OnPlayerDisconnect(playerid, reason)
  57. {
  58. KillSpree[playerid] = 0;
  59. return 1;
  60. }
  61. //=====================================//
  62. public OnPlayerConnect(playerid)
  63. {
  64. KillSpree[playerid] = 0;
  65. return 1;
  66. }
  67. //=====================================//
  68. public OnPlayerDeath(playerid, killerid, reason)
  69. {
  70. GetPlayerName(killerid, pname, sizeof(pname));
  71. GetPlayerName(playerid, kname, sizeof(kname));
  72. KillSpree[playerid] = 0;
  73. KillSpree[killerid] ++;
  74. switch(KillSpree[killerid])
  75. {
  76. case 3:
  77. {
  78. format(string, sizeof(string), "~r~%s ~y~- Je postigaoDominating sa %d ubistava", pname, KillSpree[killerid]);
  79. TextDrawSetString(Textdraw0, string);
  80. SetPlayerScore(killerid, GetPlayerScore(killerid) + 5);
  81. GivePlayerMoney(killerid, 1000);
  82. SendClientMessage(killerid, 0xFFFFFFFF, "{33AA33}Killing Spree System ti daje: {FFFFFF} +1000$, +5 scor");
  83. }
  84. case 4:
  85. {
  86. format(string, sizeof(string), "~r~%s ~y~-Je postigao Rampage sa %d ubistava", pname, KillSpree[killerid]);
  87. TextDrawSetString(Textdraw0, string);
  88. SetPlayerScore(killerid, GetPlayerScore(killerid) + 10);
  89. GivePlayerMoney(killerid, 2000);
  90. SendClientMessage(killerid, 0xFFFFFFFF, "{33AA33}Killing Spree System ti daje: {FFFFFF} +2000$, +10 scor");
  91. }
  92. case 5:
  93. {
  94. format(string, sizeof(string), "~r~%s ~y~- Je postigao Killing Spree sa %d ubistava", pname, KillSpree[killerid]);
  95. TextDrawSetString(Textdraw0, string);
  96. SetPlayerScore(killerid, GetPlayerScore(killerid) + 15);
  97. GivePlayerMoney(killerid, 3000);
  98. SendClientMessage(killerid, 0xFFFFFFFF, "{33AA33}Killing Spree System ti daje: {FFFFFF} +3000$, +15 scor");
  99. }
  100. case 6:
  101. {
  102. format(string, sizeof(string), "~r~%s ~y~- Je postigao Monster Kill sa %d Ubistava", pname, KillSpree[killerid]);
  103. TextDrawSetString(Textdraw0, string);
  104. SetPlayerScore(killerid, GetPlayerScore(killerid) + 20);
  105. GivePlayerMoney(killerid, 4000);
  106. SendClientMessage(killerid, 0xFFFFFFFF, "{33AA33}Killing Spree System ti daje: {FFFFFF} +4000$, +20 scor");
  107. }
  108. case 7:
  109. {
  110. format(string, sizeof(string), "~r~%s ~y~- Je postigao Unstoppable sa %d ubistava", pname, KillSpree[killerid]);
  111. TextDrawSetString(Textdraw0, string);
  112. SetPlayerScore(killerid, GetPlayerScore(killerid) + 25);
  113. GivePlayerMoney(killerid, 5000);
  114. SendClientMessage(killerid, 0xFFFFFFFF, "{33AA33}Killing Spree System ti daje: {FFFFFF} +5000$, +25 scor");
  115. }
  116. case 8:
  117. {
  118. format(string, sizeof(string), "~r~%s ~y~-Je postigao Ultra Kill sa %d ubistava", pname, KillSpree[killerid]);
  119. TextDrawSetString(Textdraw0, string);
  120. SetPlayerScore(killerid, GetPlayerScore(killerid) + 30);
  121. GivePlayerMoney(killerid, 10000);
  122. SendClientMessage(killerid, 0xFFFFFFFF, "{33AA33}Killing Spree System ti daje: {FFFFFF}+10000$, +30 scor");
  123. }
  124. case 9:
  125. {
  126. format(string, sizeof(string), "~r~%s ~y~- Je postigao Godlike sa %d Ubistava", pname, KillSpree[killerid]);
  127. TextDrawSetString(Textdraw0, string);
  128. SetPlayerScore(killerid, GetPlayerScore(killerid) + 35);
  129. GivePlayerMoney(killerid, 10000);
  130. SendClientMessage(killerid, 0xFFFFFFFF, "{33AA33}Killing Spree System ti daje: {FFFFFF} +10000$, +35 scor");
  131. }
  132. case 10:
  133. {
  134. format(string, sizeof(string), "~r~%s ~y~- Je postigao Wicked Sick with %d kills", pname, KillSpree[killerid]);
  135. TextDrawSetString(Textdraw0, string);
  136. SetPlayerScore(killerid, GetPlayerScore(killerid) + 40);
  137. GivePlayerMoney(killerid, 10000);
  138. SendClientMessage(killerid, 0xFFFFFFFF, "{33AA33}Killing Spree System: {FFFFFF}Ti daje +10000$, +40 scor");
  139. }
  140. case 11:
  141. {
  142. format(string, sizeof(string), "~r~%s ~y~- Je postigao Ludacriss Kill with %d kills", pname, KillSpree[killerid]);
  143. TextDrawSetString(Textdraw0, string);
  144. SetPlayerScore(killerid, GetPlayerScore(killerid) + 45);
  145. GivePlayerMoney(killerid, 10000);
  146. SendClientMessage(killerid, 0xFFFFFFFF, "{33AA33}Killing Spree System: {FFFFFF}Ti daje +10000$, +45 score");
  147. }
  148. case 12:
  149. {
  150. format(string, sizeof(string), "~r~%s ~y~- Je postigao Holy Shit with %d kills", pname, KillSpree[killerid]);
  151. TextDrawSetString(Textdraw0, string);
  152. SetPlayerScore(killerid, GetPlayerScore(killerid) + 50);
  153. GivePlayerMoney(killerid, 50000);
  154. SendClientMessage(killerid, 0xFFFFFFFF, "{33AA33}Killing Spree System: {FFFFFF}Ti daje +50000$, +50 scor");
  155. }
  156. case 13:
  157. {
  158. format(string, sizeof(string), "~r~%s ~y~- Je postigao Huge Killing Script with %d kills", pname, KillSpree[killerid]);
  159. TextDrawSetString(Textdraw0, string);
  160. SetPlayerScore(killerid, GetPlayerScore(killerid) + 55);
  161. GivePlayerMoney(killerid, 50000);
  162. SendClientMessage(killerid, 0xFFFFFFFF, "{33AA33}Killing Spree System: {FFFFFF}Ti daje +50000$, +55 scor");
  163. }
  164. case 14:
  165. {
  166. format(string, sizeof(string), "~r~%s ~y~- Je postigao Huge Killing Script with %d kills", pname, KillSpree[killerid]);
  167. TextDrawSetString(Textdraw0, string);
  168. SetPlayerScore(killerid, GetPlayerScore(killerid) + 60);
  169. GivePlayerMoney(killerid, 50000);
  170. SendClientMessage(killerid, 0xFFFFFFFF, "{33AA33}Killing Spree System: {FFFFFF}Ti daje +50000$, +60 scor");
  171. }
  172. case 15:
  173. {
  174. format(string, sizeof(string), "~r~%s ~y~-Je postigao Huge Killing Script with %d kills", pname, KillSpree[killerid]);
  175. TextDrawSetString(Textdraw0, string);
  176. SetPlayerScore(killerid, GetPlayerScore(killerid) + 65);
  177. GivePlayerMoney(killerid, 50000);
  178. SendClientMessage(killerid, 0xFFFFFFFF, "{33AA33}Killing Spree System: {FFFFFF}Ti daje +50000$, +65 scor");
  179. }
  180. case 16:
  181. {
  182. format(string, sizeof(string), "~r~%s ~y~- Je postigao Huge Killing Script with %d kills", pname, KillSpree[killerid]);
  183. TextDrawSetString(Textdraw0, string);
  184. SetPlayerScore(killerid, GetPlayerScore(killerid) + 70);
  185. GivePlayerMoney(killerid, 50000);
  186. SendClientMessage(killerid, 0xFFFFFFFF, "{33AA33}Killing Spree System: {FFFFFF}Ti daje +50000$, +70 scor");
  187. }
  188. case 17:
  189. {
  190. format(string, sizeof(string), "~r~%s ~y~- Je postigao Huge Killing Script with %d kills", pname, KillSpree[killerid]);
  191. TextDrawSetString(Textdraw0, string);
  192. SetPlayerScore(killerid, GetPlayerScore(killerid) + 75);
  193. GivePlayerMoney(killerid, 50000);
  194. SendClientMessage(killerid, 0xFFFFFFFF, "{33AA33}Killing Spree System: {FFFFFF}Ti daje +50000$, +75 scor");
  195. }
  196. case 18:
  197. {
  198. format(string, sizeof(string), "~r~%s ~y~- Je postigao Huge Killing Script with %d kills", pname, KillSpree[killerid]);
  199. TextDrawSetString(Textdraw0, string);
  200. SetPlayerScore(killerid, GetPlayerScore(killerid) + 80);
  201. GivePlayerMoney(killerid, 50000);
  202. SendClientMessage(killerid, 0xFFFFFFFF, "{33AA33}Killing Spree System: {FFFFFF}Ti daje +50000$, +80 scor");
  203. }
  204. case 19:
  205. {
  206. format(string, sizeof(string), "~r~%s ~y~- Je postigao Huge Killing Script with %d kills", pname, KillSpree[killerid]);
  207. TextDrawSetString(Textdraw0, string);
  208. SetPlayerScore(killerid, GetPlayerScore(killerid) + 85);
  209. GivePlayerMoney(killerid, 50000);
  210. SendClientMessage(killerid, 0xFFFFFFFF, "{33AA33}Killing Spree System: {FFFFFF}Ti daje +50000$, +85 scor");
  211. }
  212. case 20:
  213. {
  214. format(string, sizeof(string), "~r~%s ~y~- Je postigao Huge Killing Script with %d kills", pname, KillSpree[killerid]);
  215. TextDrawSetString(Textdraw0, string);
  216. SetPlayerScore(killerid, GetPlayerScore(killerid) + 90);
  217. GivePlayerMoney(killerid, 50000);
  218. SendClientMessage(killerid, 0xFFFFFFFF, "{33AA33}Killing Spree System ti daje: {FFFFFF} +50000$, +90 scor");
  219. }
  220. }
  221. if(KillSpree[killerid] >=3)
  222. {
  223. TextDrawHideForAll(Textdraw0);
  224. KillTimer(aaa);
  225. aaa = SetTimer("blablabla", 5000, false);
  226. TextDrawShowForAll(Textdraw0);
  227. return 1;
  228. }
  229. if(KillSpree[playerid] >=3)
  230. {
  231. TextDrawHideForAll(Textdraw0);
  232. KillTimer(aaa);
  233. aaa = SetTimer("blablabla", 5000, false);
  234. TextDrawShowForAll(Textdraw0);
  235. format(string, sizeof(string), "~r~%s ~y~- Killing Spree zavrsen", kname, KillSpree[killerid]);
  236. TextDrawSetString(Textdraw0, string);
  237. return 1;
  238. }
  239. return 1;
  240. }
  241. //=====================================//
  242. public blablabla()
  243. {
  244. TextDrawHideForAll(Textdraw0);
  245. return 1;
  246. }
  247. //End of the script. © 2012 [RNG]DuReX.=======================================//
Advertisement
Add Comment
Please, Sign In to add comment