DETONASAMP

OnPlayerDeath -Forum Samp

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