Guest User

Untitled

a guest
Sep 5th, 2011
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.29 KB | None | 0 0
  1. public OnPlayerDeath(playerid, killerid, reason)
  2. {
  3. new string[256];
  4. new nomek[MAX_PLAYER_NAME];
  5. new nomem[MAX_PLAYER_NAME];
  6. GetPlayerName(killerid,nomek,MAX_PLAYER_NAME);
  7. GetPlayerName(playerid,nomem,MAX_PLAYER_NAME);
  8. if(X1W == 2 && GetPVarInt(killerid,"X1W") == 1 && GetPVarInt(playerid,"X1W") ==1){
  9. if(killerid == INVALID_PLAYER_ID)
  10. format(string, sizeof(string),"[X1W]---> %s Se Matou No X1 Walk ( /X1W )",nomem);
  11. else
  12. format(string, sizeof(string),"[X1W]---> %s Matou %s No X1 Walk ( /X1W )",nomek, nomem);
  13. SendClientMessageToAll(green, string);
  14. X1W = 0;
  15. SetPVarInt(playerid,"X1W",0);
  16. SetPVarInt(killerid,"X1W",0);
  17. SetPVarInt(playerid,"Bloqueio",0);
  18. SetPVarInt(killerid,"Bloqueio",0);
  19. SpawnPlayer(killerid);
  20. }
  21. if(X1 == 2 && GetPVarInt(killerid,"X1") == 1 && GetPVarInt(playerid,"X1") ==1){
  22. if(killerid == INVALID_PLAYER_ID)
  23. format(string, sizeof(string),"[X1]---> %s Se Matou No X1 ( /X1 )",nomem);
  24. else
  25. format(string, sizeof(string),"[X1]---> %s Matou %s No X1 ( /X1)",nomek,nomem);
  26. SendClientMessageToAll(green,string);
  27. X1 = 0;
  28. SetPVarInt(playerid,"x1",0);
  29. SetPVarInt(killerid,"X1",0);
  30. SetPVarInt(playerid,"Bloqueio",0);
  31. SetPVarInt(killerid,"Bloqueio",0);
  32. SpawnPlayer(killerid);
  33. }
  34. if(GetPVarInt(killerid,"SNP") ==1 && GetPVarInt(playerid,"SNP") ==1){
  35. if(killerid == INVALID_PLAYER_ID)
  36. format(string, sizeof(string),"[SNIPER]--->%s Se Matou no Combate SNIPER ( /SNP )",nomem);
  37. else
  38. format(string, sizeof(string),"[SNIPER]---> %s Matou %s No Combate SNIPER ( /SNP )",nomek,nomem);
  39. SendClientMessageToAll(green,string);
  40. SetPlayerArmour(killerid,100);
  41. SetPlayerHealth(killerid,100);
  42. GameTextForPlayer(killerid,"PARABENS",3000,3);
  43. SendClientMessage(killerid,COLOR_ORANGE,"INFO: Você Recebeu Colete e Vida");
  44. SetPVarInt(playerid,"SNP",0);
  45. SetPVarInt(playerid,"Bloqueio",0);
  46. }
  47. SendDeathMessage(killerid,playerid,reason);
  48. SetPlayerVirtualWorld(playerid,0);
  49. SetPVarInt(playerid,"Bloqueio",0);
  50. kstreak[killerid]++;
  51.  
  52. if (kstreak[killerid] == 10){
  53. format(string,258,"Acho que %s esta querendo virar um(a) assanino(a) ja Matou 10 Pessoas",PlayerName(killerid),kstreak[killerid]);
  54. SendClientMessageToAll(COR_LARANJA,string);
  55. SetPlayerWantedLevel(killerid,1);
  56. }
  57. if (kstreak[killerid] == 20){
  58. format(string,258,"A carreira de assassino do(a) %s esta indo bem Ja Matou 20 pessoas",PlayerName(killerid),kstreak[killerid]);
  59. SendClientMessageToAll(COR_LARANJA,string);
  60. SetPlayerWantedLevel(killerid,2);
  61. }
  62. if (kstreak[killerid] == 30){
  63. format(string,258,"O(A) %s ja esta quase virando um matador Sangue frio Ja Matou 30 Pessoas",PlayerName(killerid),kstreak[killerid]);
  64. SendClientMessageToAll(COR_LARANJA,string);
  65. SetPlayerWantedLevel(killerid,3);
  66. }
  67. if (kstreak[killerid] == 40){
  68. format(string,258,"O(A) %s Ja virou um assassino Sangue frio Ja Matou 40 Pessoas",PlayerName(killerid),kstreak[killerid]);
  69. SendClientMessageToAll(COR_LARANJA,string);
  70. SetPlayerWantedLevel(killerid,4);
  71. }
  72. if (kstreak[killerid] == 50){
  73. format(string,258,"O(A) %s Esta para Virar um assassino profissional Ja Matou 50 Pessoas",PlayerName(killerid),kstreak[killerid]);
  74. SendClientMessageToAll(COLOR_YELLOW,string);
  75. SetPlayerWantedLevel(killerid,5);
  76. }
  77. if (kstreak[killerid] == 60){
  78. format(string,258,"O(A) %s Virou um(a) assassino(a) profissional Ja Matou 60 Pessoas",PlayerName(killerid),kstreak[killerid]);
  79. SendClientMessageToAll(COLOR_YELLOW,string);
  80. SetPlayerWantedLevel(killerid,6);
  81. }
  82. //=======================================================[Agora a reconpensa do player]=====================================================
  83.  
  84.  
  85. if (kstreak[playerid] == 10){
  86. format(string,258,"O Player %s Ganhou A recompensa de $10.000 Por Matar %s",PlayerName(killerid),PlayerName(playerid));
  87. SendClientMessageToAll(COLOR_YELLOW,string);
  88. GivePlayerMoney(killerid,10000);
  89. }
  90.  
  91. if (kstreak[playerid] == 20){
  92. format(string,258,"O Player %s Ganhou A recompensa de %20.000 Por Matar %s",PlayerName(killerid),PlayerName(playerid));
  93. SendClientMessageToAll(COLOR_YELLOW,string);
  94. SetPlayerWantedLevel(playerid,0);
  95. GivePlayerMoney(killerid,20000);
  96. }
  97. if (kstreak[playerid] == 30){
  98. format(string,258,"O Player %s Ganhou A recompensa de $30.000 Por Matar %s",PlayerName(killerid),PlayerName(playerid));
  99. SendClientMessageToAll(COLOR_YELLOW,string);
  100. SetPlayerWantedLevel(playerid,0);
  101. GivePlayerMoney(killerid,30000);
  102. }
  103. if (kstreak[playerid] == 40){
  104. format(string,258,"O Player %s Ganhou A recompensa de $40.000 Por Matar %s",PlayerName(killerid),PlayerName(playerid));
  105. SendClientMessageToAll(COLOR_YELLOW,string);
  106. SetPlayerWantedLevel(playerid,0);
  107. GivePlayerMoney(killerid,40000);
  108. }
  109. if (kstreak[playerid] == 50){
  110. format(string,258,"O Player %s Ganhou A recompensa de $50.000 Por Matar %s",PlayerName(killerid),PlayerName(playerid));
  111. SendClientMessageToAll(COLOR_YELLOW,string);
  112. SetPlayerWantedLevel(playerid,0);
  113. GivePlayerMoney(killerid,50000);
  114. }
  115. if (kstreak[playerid] == 60){
  116. format(string,258,"O Player %s Ganhou A recompensa de $60.000 Por Matar %s",PlayerName(killerid),PlayerName(playerid));
  117. SendClientMessageToAll(COLOR_YELLOW,string);
  118. SetPlayerWantedLevel(playerid,0);
  119. GivePlayerMoney(killerid,60000);
  120. }
  121. if(killerid != INVALID_PLAYER_ID) {//se o cara der /kill nao vai perder a reconsa dele
  122. kstreak[playerid] = 0;
  123. }
  124.  
  125.  
  126. return 1;
  127. }
Advertisement
Add Comment
Please, Sign In to add comment