Advertisement
CeKiT

KCounts - Contador de Kills

Aug 20th, 2012
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 3.10 KB | None | 0 0
  1. #include <a_samp>
  2. /*
  3. ================================================================================
  4.                                 MultiKills 2.0
  5. ================================================================================
  6. [*] Se repararon los bugs para producir menor lag.
  7.  
  8. CREDITOS:
  9. DanielSNM v1.2 = Credor del script.
  10. CeKiT v2.0 = Se mejoro el script a un 100%.
  11. */
  12.  
  13.  
  14. new jugadorkills[MAX_PLAYERS];// Creamos la variable.
  15. #define MSJ "{D358F7}"
  16. //==============================================================================
  17. #define MultiKill 2 // Para realizar MultiKill debemos matar 2
  18. #define KillingElite 4 // Para realizar KillingElite debemos matar 4
  19. #define MonsterKill 8 // Para realizar MonsterKill debemos matar 8
  20. #define FantasticKill 12 // Para realizar FantasticKill debemos matar 12
  21. #define ProShooter 15 // Para realizar ProShooter debemos matar 15
  22. //==============================================================================
  23.  
  24. #if defined FILTERSCRIPT
  25. main()
  26. {
  27. print("=====================================");
  28. print("          MultiKills v2.0 ");
  29. print("=====================================");
  30. }
  31. #endif
  32.  
  33. public OnPlayerSpawn(playerid)
  34. {
  35. jugadorkills[playerid]=0; // Con esto seteamos los kills al jugador a 0.
  36. return 1;
  37. }
  38.  
  39. public OnPlayerDeath(playerid, killerid, reason)
  40. {
  41. new mname[24];
  42. new string[256];
  43. jugadorkills[killerid]++;
  44. if(jugadorkills[killerid]==MultiKill) {
  45. GetPlayerName(killerid,mname,24);
  46. format(string,256,""MSJ"- %s realizo un MultiKill! (+2)",mname);
  47. SendClientMessageToAll(-1,string);
  48. GivePlayerMoney(killerid,1000);
  49. for(new i = 0; i < MAX_PLAYERS; i++)
  50. {
  51. if(IsPlayerConnected(i))
  52. {
  53. GameTextForAll("~r~MultiKill!", 3000,5);
  54. }
  55. }
  56. }
  57. if(jugadorkills[killerid]==KillingElite) {
  58. GetPlayerName(killerid,mname,24);
  59. format(string,256,""MSJ"- %s realizo un KillingElite! (+4)",mname);
  60. SendClientMessageToAll(-1,string);
  61. GivePlayerMoney(killerid,1000);
  62. for(new i = 0; i < MAX_PLAYERS; i++)
  63. {
  64. if(IsPlayerConnected(i))
  65. {
  66. GameTextForAll("~r~KillingElite!", 3000,5);
  67. }
  68. }
  69. }
  70. if(jugadorkills[killerid]==MonsterKill) {
  71. GetPlayerName(killerid,mname,24);
  72. format(string,256,""MSJ"- %s realizo un M-M-M-MonsterKill! (+8)",mname);
  73. SendClientMessageToAll(-1,string);
  74. GivePlayerMoney(killerid,1500);
  75. for(new i = 0; i < MAX_PLAYERS; i++)
  76. {
  77. if(IsPlayerConnected(i))
  78. {
  79. GameTextForAll("~r~M-M-M-MonsterKill!", 3000,5);
  80. }
  81. }
  82. }
  83. if(jugadorkills[killerid]==FantasticKill) {
  84. GetPlayerName(killerid,mname,24);
  85. format(string,256,""MSJ"- %s realizo un F-F-F-FantasticKill! (+12)",mname);
  86. SendClientMessageToAll(-1,string);
  87. GivePlayerMoney(killerid,2000);
  88. for(new i = 0; i < MAX_PLAYERS; i++)
  89. {
  90. if(IsPlayerConnected(i))
  91. {
  92. GameTextForAll("~r~F-F-F-FantasticKill!", 3000,5);
  93. }
  94. }
  95. }
  96. if(jugadorkills[killerid]==ProShooter) {
  97. GetPlayerName(killerid,mname,24);
  98. format(string,256,""MSJ"- %s realizo un P-P-P-ProShooter! (+15)",mname);
  99. SendClientMessageToAll(-1,string);
  100. format( string, sizeof(string), "~r~%s ~w~mato 15 veces sin morir..~n~~y~Super PRO!", mname );
  101. GameTextForAll( string, 5000, 3 );
  102. GivePlayerMoney(killerid,2500);
  103. for(new i = 0; i < MAX_PLAYERS; i++)
  104. {
  105. }
  106. }
  107.  
  108. return 1;
  109. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement