Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- /*
- ================================================================================
- MultiKills 2.0
- ================================================================================
- [*] Se repararon los bugs para producir menor lag.
- CREDITOS:
- DanielSNM v1.2 = Credor del script.
- CeKiT v2.0 = Se mejoro el script a un 100%.
- */
- new jugadorkills[MAX_PLAYERS];// Creamos la variable.
- #define MSJ "{D358F7}"
- //==============================================================================
- #define MultiKill 2 // Para realizar MultiKill debemos matar 2
- #define KillingElite 4 // Para realizar KillingElite debemos matar 4
- #define MonsterKill 8 // Para realizar MonsterKill debemos matar 8
- #define FantasticKill 12 // Para realizar FantasticKill debemos matar 12
- #define ProShooter 15 // Para realizar ProShooter debemos matar 15
- //==============================================================================
- #if defined FILTERSCRIPT
- main()
- {
- print("=====================================");
- print(" MultiKills v2.0 ");
- print("=====================================");
- }
- #endif
- public OnPlayerSpawn(playerid)
- {
- jugadorkills[playerid]=0; // Con esto seteamos los kills al jugador a 0.
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- new mname[24];
- new string[256];
- jugadorkills[killerid]++;
- if(jugadorkills[killerid]==MultiKill) {
- GetPlayerName(killerid,mname,24);
- format(string,256,""MSJ"- %s realizo un MultiKill! (+2)",mname);
- SendClientMessageToAll(-1,string);
- GivePlayerMoney(killerid,1000);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- GameTextForAll("~r~MultiKill!", 3000,5);
- }
- }
- }
- if(jugadorkills[killerid]==KillingElite) {
- GetPlayerName(killerid,mname,24);
- format(string,256,""MSJ"- %s realizo un KillingElite! (+4)",mname);
- SendClientMessageToAll(-1,string);
- GivePlayerMoney(killerid,1000);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- GameTextForAll("~r~KillingElite!", 3000,5);
- }
- }
- }
- if(jugadorkills[killerid]==MonsterKill) {
- GetPlayerName(killerid,mname,24);
- format(string,256,""MSJ"- %s realizo un M-M-M-MonsterKill! (+8)",mname);
- SendClientMessageToAll(-1,string);
- GivePlayerMoney(killerid,1500);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- GameTextForAll("~r~M-M-M-MonsterKill!", 3000,5);
- }
- }
- }
- if(jugadorkills[killerid]==FantasticKill) {
- GetPlayerName(killerid,mname,24);
- format(string,256,""MSJ"- %s realizo un F-F-F-FantasticKill! (+12)",mname);
- SendClientMessageToAll(-1,string);
- GivePlayerMoney(killerid,2000);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- GameTextForAll("~r~F-F-F-FantasticKill!", 3000,5);
- }
- }
- }
- if(jugadorkills[killerid]==ProShooter) {
- GetPlayerName(killerid,mname,24);
- format(string,256,""MSJ"- %s realizo un P-P-P-ProShooter! (+15)",mname);
- SendClientMessageToAll(-1,string);
- format( string, sizeof(string), "~r~%s ~w~mato 15 veces sin morir..~n~~y~Super PRO!", mname );
- GameTextForAll( string, 5000, 3 );
- GivePlayerMoney(killerid,2500);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement