Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This is a comment
- // uncomment the line below if you want to write a filterscript
- #include <a_samp>
- #include <a_players>
- //--------------------------// COLORS DEFINES BY IDK
- #define COLOR_GREEN 0x21DD00FF
- #define COLOR_RED 0xAA3333AA
- #define COLOR_YELLOW 0xFFFF00AA
- //---------------------------////
- new KillingSpree[MAX_PLAYERS];
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Killing Spree");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- main()
- {
- print("\n----------------------------------");
- print(" Killing Spree By Niko_boy For PK SAMP SERVER ");
- print("----------------------------------\n");
- }
- public OnGameModeInit()
- {
- }
- public OnGameModeExit()
- {
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- SendClientMessage(playerid,0x00FF00FF,"KILLING SPREE SCRIPT CREATED BY JAGAT (INGAME NAME:-Niko_boy)");
- SendClientMessage(playerid,0x00FF00FF,"The Script Is Distributed To Pk Servers)");
- KillingSpree[playerid] = 0;
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- new string[64];
- new KillingSpree[MAX_PLAYERS];
- new bounty[MAX_PLAYERS];
- KillingSpree[killerid] ++ ; // 1 kills
- KillingSpree[playerid] = 0; // player who died his killing spree will be restored to 0.
- //------- // finds the player on a Killing Spree of 3 kills
- if(killerid == INVALID_PLAYER_ID)
- {
- SendDeathMessage(INVALID_PLAYER_ID,playerid,reason);
- }
- else
- {
- SendDeathMessage(killerid,playerid,reason);
- SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
- GivePlayerMoney(playerid,-1000);
- if(bounty[playerid] > 0 ) {
- format(string, sizeof(string), "You earned a bounty of %d for killing %s.", bounty[playerid], playerid);
- SendClientMessage(killerid, COLOR_GREEN, string);
- GivePlayerMoney(killerid, bounty[playerid]);
- bounty[playerid] = 0;
- }
- }
- //==//
- SetPlayerWantedLevel(playerid, 0);
- KillingSpree[playerid] = 0;
- KillingSpree[killerid] ++;
- //--------------
- if (KillingSpree[killerid] == 20)
- {
- new name[MAX_PLAYER_NAME], string[44];
- GetPlayerName(killerid, name, sizeof(name));
- format(string, sizeof(string), "*%s for killing 20 players in row gets free 9 ammo of RPG Rocket Launcher! + 60 health & 90+ Armour!",name);
- SendClientMessageToAll(COLOR_GREEN,string);
- new Float:health;
- GetPlayerHealth(killerid,health);
- SetPlayerHealth(killerid,health + 60);
- new Float:armour;
- GetPlayerArmour(killerid,health);
- SetPlayerArmour(killerid,health + 90);
- new Float:weapon ;
- GetPlayerWeapon (killerid,weapon);
- GivePlayerWeapon(killerid, 35, 9); // RPG Rocket Launcher
- SendClientMessage(killerid, COLOR_GREEN, "You Are At Highest Level Of Sprees!");
- }
- //---------------
- else if (KillingSpree[killerid] == 16)
- {
- new name[MAX_PLAYER_NAME], string[44];
- GetPlayerName(killerid, name, sizeof(name));
- format(string, sizeof(string), "*%s for killing 16 players in row gets free 7 ammo of HQ RPG Rocket Launcher! + 60 health & 80+ Armour!",name);
- SendClientMessageToAll(COLOR_RED,string);
- new Float:health;
- GetPlayerHealth(killerid,health);
- SetPlayerHealth(killerid,health + 60);
- new Float:weapon ;
- GetPlayerWeapon (killerid,weapon);
- GivePlayerWeapon(killerid, 36, 3); // RPG Rocket Launcher
- new Float:armour;
- GetPlayerArmour(killerid,health);
- SetPlayerArmour(killerid,health + 78);
- new Float:money;
- GetPlayerMoney(killerid, money);
- GivePlayerMoney(killerid, 9050);
- SendClientMessage(killerid, COLOR_GREEN, "You Are At About To Go To 20 KILLING SPREES!");
- }
- else if (KillingSpree[killerid] == 12)
- {
- new name[MAX_PLAYER_NAME], string[44];
- GetPlayerName(killerid, name, sizeof(name));
- format(string, sizeof(string), "*%s for killing 12 players in row gets free ammo of M4! + 60 health & 65 Armour!",name);
- SendClientMessageToAll(COLOR_YELLOW,string);
- new Float:health;
- GetPlayerHealth(killerid,health);
- SetPlayerHealth(killerid,health + 60);
- new Float:weapon ;
- GetPlayerWeapon (killerid,weapon);
- GivePlayerWeapon(killerid,31 , 297); // m4
- new Float:armour;
- GetPlayerArmour(killerid,health);
- SetPlayerArmour(killerid,health + 70);
- new Float:money;
- GetPlayerMoney(killerid, money);
- GivePlayerMoney(killerid, 7500);
- SendClientMessage(killerid, COLOR_GREEN, "You Are At 12 killing Sprees.Next Target Is 16 kills!");
- }
- else if (KillingSpree[killerid] == 8)
- {
- new name[MAX_PLAYER_NAME], string[44];
- GetPlayerName(killerid, name, sizeof(name));
- format(string, sizeof(string), "*%s for killing 8 players in row gets free ammo! + 60 health!",name);
- SendClientMessageToAll(COLOR_GREEN,string);
- new Float:health;
- GetPlayerHealth(killerid,health);
- SetPlayerHealth(killerid,health + 60);
- new Float:armour;
- GetPlayerArmour(killerid,armour);
- SetPlayerArmour(killerid,armour + 10);
- new Float:weapon ;
- GetPlayerWeapon (killerid,weapon);
- GivePlayerWeapon(killerid, 16,7 ,24,77); // Greandes & desert eagle
- new Float:money;
- GetPlayerMoney(killerid, money);
- GivePlayerMoney(killerid, 5500);
- SendClientMessage(killerid, COLOR_GREEN, "You Are At Highest Level Of Sprees!");
- }
- else if (KillingSpree[killerid] == 5)
- {
- new name[MAX_PLAYER_NAME], string[44];
- GetPlayerName(killerid, name, sizeof(name));
- format(string, sizeof(string), "*%s for killing 5 players in row gets free ammo for Tec9! + 60 health!",name);
- SendClientMessageToAll(COLOR_GREEN,string);
- new Float:health;
- GetPlayerHealth(killerid,health);
- SetPlayerHealth(killerid,health + 60);
- new Float:weapon ;
- GetPlayerWeapon (killerid,weapon);
- GivePlayerWeapon(killerid, 32, 117); //
- new Float:money;
- GetPlayerMoney(killerid, money);
- GivePlayerMoney(killerid, 2000);
- SendClientMessage(killerid, COLOR_GREEN, "You Are At Beginig Level Of Sprees!");
- }
- if (KillingSpree[killerid] > 5)
- {
- new string[128];
- format(string,sizeof(string),"%s now got a killings spree of %d !!!", killerid, KillingSpree);
- SendClientMessageToAll(0xFF0000FF, string); print(string);
- }
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/ksh", cmdtext, true, 10) == 0)
- {
- // Do something here
- return 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment