Advertisement
Guest User

Untitled

a guest
Apr 15th, 2014
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.19 KB | None | 0 0
  1. public OnPlayerDeath(playerid, killerid, reason)
  2. {
  3. new mato[256];
  4. new string[256];
  5. new pName[MAX_PLAYER_NAME];
  6. GetPlayerName(playerid, pName, sizeof(pName));
  7.  
  8. new namekiller[MAX_PLAYER_NAME];
  9. GetPlayerName(killerid, namekiller, sizeof(pName));
  10.  
  11. ResetPlayerWeapons(playerid);
  12. Block[playerid] = false;
  13. ccolete[playerid] = 0;
  14. steleporte[playerid] = 1;
  15.  
  16. if (TaMinigun[playerid] == true)
  17. {
  18. GetPlayerName(killerid, nomeMG[killerid], 30);
  19. GetPlayerName(playerid, nomeMG2[playerid], 29);
  20. TaMinigun[killerid] = false;
  21. TaMinigun[playerid] = false;
  22. format(string, sizeof(string), " {FF0000}%s {ffffff}matou o {ff0000}%s {ff0000}no Minigun", nomeMG, nomeMG2);
  23. SendClientMessageToAll(COR_AMARELO, string);
  24. }
  25. if (jausocolete[playerid] == true && jausovida[playerid] == true)
  26. {
  27. jausocolete[playerid] = false;
  28. jausovida[playerid] = false;
  29. }
  30. if (bounty[playerid] > 0 && (GetPlayerTeam(killerid) == 0 || GetPlayerTeam(playerid) != GetPlayerTeam(killerid)))
  31. {
  32. format(string, sizeof(string), "Voce recebeu a recompensa de $%d por matar %s.", bounty[playerid], PlayerName(playerid));
  33. SendClientMessage(killerid, 0xfffffff, string);
  34. GivePlayerMoney(killerid, bounty[playerid]);
  35. bounty[playerid] = 0;
  36. }
  37. if (GetPlayerTeam(killerid) != GetPlayerTeam(playerid))
  38. {
  39. SendDeathMessage(killerid, playerid, reason);
  40. SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
  41. GetPlayerName(killerid, mato, 24);
  42. GivePlayerMoney(killerid, 1000);
  43. GivePlayerMoney(playerid, -500);
  44. psht[playerid] = 0;
  45. GivePlayerMoney(killerid, granastatus[playerid]);
  46. granastatus[killerid] = Matando[killerid] * 100;
  47. granastatus[playerid] = 0;
  48. PlayerInfo[killerid][pMatou]++;
  49. PlayerInfo[playerid][pMorreu]++;
  50. Matando[killerid]++;
  51. TogglePlayerSpectating(playerid, true);
  52. PlayerSpectatePlayer(playerid, killerid, 1);
  53. olhamane[playerid] = 1;
  54. GameTextForPlayer(playerid, "~p~ ] ~r~Aprende a jogar Noob! ~p~]", 7000, 3);
  55. SetTimerEx("OlhaAeQuemTeMatou", 7000, false, "d", playerid);
  56. }
  57. if (Matando[killerid] == 1)
  58. {
  59. format(string, 256, "MM - Mortes | %s tirou o pe da lama ja mandou um para a cova!", namekiller);
  60. SendClientMessageToAll(0xFFF208AA, string);
  61. granastatus[killerid] = 1000;
  62. format(string, 256, "[MATA-MORRE INFO]: Cada pessoa que %s matar a recompensa pela cabeça dele aumenta em Mil reais.", namekiller);
  63. SendClientMessageToAll(0x59E000AA, string);
  64. }
  65. else if (Matando[killerid] == 5)
  66. {
  67. format(string, 256, "MM - Mortes | %s ta tomando gosto pela coisa jamatou 5 sem piedade!", namekiller);
  68. SendClientMessageToAll(0xFFF208AA, string);
  69. }
  70. else if (Matando[killerid] == 10)
  71. {
  72. format(string, 256, "MM - Mortes | %s ta querendo virar um assassino profissional ja matou 10 negos!", namekiller);
  73. SendClientMessageToAll(0x59E000AA, string);
  74. granastatus[killerid] = 10000;
  75. format(string, 256, "Info Recompensas | 10 Mil reais para quem matar %s!", namekiller);
  76. SendClientMessageToAll(0x6F6FFF96, string);
  77. }
  78. else if (Matando[killerid] == 15)
  79. {
  80. format(string, 256, "MM - Mortes | Acho que %s e parente do Chuck Norris ja tirou a vida de 15 infelizes!", namekiller);
  81. SendClientMessageToAll(0xFFF208AA, string);
  82. }
  83. else if (Matando[killerid] == 20)
  84. {
  85. format(string, 256, "MM - Mortes | %s fez uma chasina em San Andreas ja matou 20 pessoas!", namekiller);
  86. SendClientMessageToAll(0x59E000AA, string);
  87. granastatus[killerid] = 20000;
  88. format(string, 256, "Info Recompensas | 20 Mil reais para quem matar %s!", namekiller);
  89. SendClientMessageToAll(0x6F6FFF96, string);
  90. }
  91. else if (Matando[killerid] == 25)
  92. {
  93. format(string, 256, "MM - Mortes | %s nao teve uma boa infancia ja matou 25 sem nenhuma compaixao!", namekiller);
  94. SendClientMessageToAll(0xFFF208AA, string);
  95. }
  96. else if (Matando[killerid] == 30)
  97. {
  98. format(string, 256, "MM - Mortes | Acho que %s e o Sylvester Stallone disfarïado ja mandou 30 para a cova!", namekiller);
  99. SendClientMessageToAll(0x59E000AA, string);
  100. granastatus[killerid] = 30000;
  101. format(string, 256, "Info Recompensas | 30 Mil reais para quem matar %s!", namekiller);
  102. SendClientMessageToAll(0x6F6FFF96, string);
  103. }
  104. else if (Matando[killerid] == 35)
  105. {
  106. format(string, 256, "MM - Mortes | %s ja matou 35, que isso? Ate eu estou com medo dele agora! O.o", namekiller);
  107. SendClientMessageToAll(0xFFF208AA, string);
  108. }
  109. else if (Matando[killerid] == 40)
  110. {
  111. format(string, 256, "MM - Mortes | %s ja matou 40, puts esse cara e o Demo em pessoa!", namekiller);
  112. SendClientMessageToAll(0x59E000AA, string);
  113. granastatus[killerid] = 40000;
  114. format(string, 256, "Info Recompensas | 40 Mil reais para quem matar %s!", namekiller);
  115. SendClientMessageToAll(0x6F6FFF96, string);
  116. }
  117. else if (Matando[killerid] == 45)
  118. {
  119. format(string, 256, "MM - Mortes | %s simplesmente ja mandou 45 para a cova! lol", namekiller);
  120. SendClientMessageToAll(0xFFF208AA, string);
  121. }
  122. else if (Matando[killerid] == 50)
  123. {
  124. format(string, 256, "MM - Mortes | Eu sei que eu sou um robo e robos nao sentem medo, mais fala serio, %s ja matou 50!", namekiller);
  125. SendClientMessageToAll(0x59E000AA, string);
  126. granastatus[killerid] = 50000;
  127. SendClientMessageToAll(0x88FF9FAA, "E se ele resolve me da um Curto Circuito? O.o");
  128. format(string, 256, "Info Recompensas | 50 Mil reais para quem matar %s!", namekiller);
  129. SendClientMessageToAll(0x6F6FFF96, string);
  130. }
  131. else if (Matando[killerid] == 55)
  132. {
  133. format(string, 256, "MM - Mortes | Caramba %s ja matou 55 players, so pode esta possuido mesmo!", namekiller);
  134. SendClientMessageToAll(0xFFF208AA, string);
  135. }
  136. else if (Matando[killerid] == 60)
  137. {
  138. format(string, 256, "MM - Mortes | Meu Deus!!! Matar deve ser a maior diversao do %s o cara ja matou 60 alguem para ele por favor!", namekiller);
  139. SendClientMessageToAll(0x59E000AA, string);
  140. granastatus[killerid] = 60000;
  141. format(string, 256, "Info Recompensas | 60 Mil reais para quem matar %s!", namekiller);
  142. SendClientMessageToAll(0x6F6FFF96, string);
  143. }
  144. else if (Matando[killerid] == 65)
  145. {
  146. format(string, 256, "MM - Mortes | Alguem tem papel ai? Acabei de me borrar todo de medo! %s ja matou 65! To todo cagado! O.o", namekiller);
  147. SendClientMessageToAll(0xFFF208AA, string);
  148. }
  149. else if (Matando[killerid] == 70)
  150. {
  151. format(string, 256, "MM - Mortes | %s e um pissicopata ja tirou a vida de 70 pessoas! Alguem mata ele por favor!", namekiller);
  152. SendClientMessageToAll(0x59E000AA, string);
  153. granastatus[killerid] = 70000;
  154. format(string, 256, "Info Recompensas | 70 Mil reais para quem matar %s!", namekiller);
  155. SendClientMessageToAll(0x6F6FFF96, string);
  156. }
  157. else if (Matando[killerid] == 75)
  158. {
  159. format(string, 256, "MM - Mortes | Poha 75 ja e de mais! Para um poco de matar %s ... Voce ja passou dos limites!", namekiller);
  160. SendClientMessageToAll(0xFFF208AA, string);
  161. }
  162. else if (Matando[killerid] == 80)
  163. {
  164. format(string, 256, "MM - Mortes | %s paraaaaaa! Vou ter que chamar o Exercito e a Swat para tentar te matar seu infeliz!", namekiller);
  165. SendClientMessageToAll(0x59E000AA, string);
  166. granastatus[killerid] = 80000;
  167. SendClientMessage(killerid, 0x88FF9FAA, "Tu ja matou 80 players!");
  168. format(string, 256, "Info Recompensas | 80 Mil reais para quem matar %s!", namekiller);
  169. SendClientMessageToAll(0x6F6FFF96, string);
  170. }
  171. else if (Matando[killerid] == 85)
  172. {
  173. format(string, 256, "MM - Mortes | Todos que estao usando o skin do Exercito ou da Swat peguem o %s esse FDP ja matou 85!!! _|_", namekiller);
  174. SendClientMessageToAll(0xFFF208AA, string);
  175. }
  176. else if (Matando[killerid] == 90)
  177. {
  178. format(string, 256, "MM - Mortes | Puta que pariu! %s ja matou 90 vai matar assim na Puta que te pariu! =X", namekiller);
  179. SendClientMessageToAll(0x59E000AA, string);
  180. granastatus[killerid] = 90000;
  181. SendClientMessageToAll(0x88FF9FAA, "(Robos tambem se estressam.)");
  182. format(string, 256, "Info Recompensas | 90 Mil reais para quem matar %s!", namekiller);
  183. SendClientMessageToAll(0x6F6FFF96, string);
  184. }
  185. else if (Matando[killerid] == 95)
  186. {
  187. format(string, 256, "MM - Mortes | Ninguem para esse cara ae??? ahh.. %s ja matou simplesmente 95 players! O.o", namekiller);
  188. SendClientMessageToAll(0xFFF208AA, string);
  189. }
  190. else if (Matando[killerid] == 100)
  191. {
  192. format(string, 256, "MM - Mortes | %s voce passou dos limites! Tu ja matou 100 pessoas cara! Me aposento...", namekiller);
  193. SendClientMessageToAll(0x59E000AA, string);
  194. granastatus[killerid] = 100000;
  195. SendClientMessageToAll(0x88FF9FAA, " Apartir de agora nao anuncio mais suas vitimas.Robo fail mato de mais lol");
  196. format(string, 256, "Info Recompensas | 100 Mil reais para quem matar %s! lol", namekiller);
  197. SendClientMessageToAll(0x6F6FFF96, string);
  198. }
  199. else if (Matando[killerid] == 1000)
  200. {
  201. format(string, 256, "MM - Mortes | Para tudo!!! Agora eu vou anunciar que %s matou simplesmente Mil pessoas! Ele bateu o Record!!!", namekiller);
  202. SendClientMessageToAll(0xFFF208AA, string);
  203. granastatus[killerid] = 1000000;
  204. SendClientMessageToAll(0x88FF9FAA, "NAO e falha no sistema... Ele matou Mil mesmo! Nao e 100 nem 200! sao Mil!!! Todos pra cima dele! Goo Goo!!!");
  205. format(string, 256, "Info Recompensas | 1 Milhão de reais para quem matar %s! Peguem ele!!! eh muita grana!!!", namekiller);
  206. SendClientMessageToAll(0x6F6FFF96, string);
  207. }
  208. return 1;
  209. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement