Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #if defined CREDITS
- ___________________________________
- | |
- | Killing Spree |
- | - Napravio [RNG]DuReX |
- | - Vrijeme : 25 de minute |
- | - Verzija: 1.0 |
- | - Napravljeno: 21 novembra 2012 |
- | - Linija: 244 |
- | - Preveo: N1XTON |
- | - Ne skidaj creditse! |
- | |
- |__________________________________|
- #endif
- //=====================================//
- #include <a_samp>
- //=====================================//
- new KillSpree[MAX_PLAYERS];
- new Text:Textdraw0;
- new aaa;
- new string[128], pname[24], kname[24];
- //=====================================//
- forward blablabla();
- //=====================================//
- public OnFilterScriptInit()
- {
- Textdraw0 = TextDrawCreate(10.000000, 290.000000, "-");
- TextDrawBackgroundColor(Textdraw0, 255);
- TextDrawFont(Textdraw0, 1);
- TextDrawLetterSize(Textdraw0, 0.410000, 1.800000);
- TextDrawColor(Textdraw0, -1);
- TextDrawSetOutline(Textdraw0, 0);
- TextDrawSetProportional(Textdraw0, 1);
- TextDrawSetShadow(Textdraw0, 1);
- TextDrawUseBox(Textdraw0, 1);
- TextDrawBoxColor(Textdraw0, 0x00000033);
- TextDrawTextSize(Textdraw0, 201.000000, 36.000000);
- print("\n-----------------------------------------------------");
- print(" DuReX's Killing Spree Filterscript loaded succesfully!");
- print("-----------------------------------------------------\n");
- SendClientMessageToAll(0xFFFFFFFF, "{33AA33}Killing Spree System: {FFFFFF}Loaded succesfully!");
- return 1;
- }
- //=====================================//
- public OnFilterScriptExit()
- {
- print("\n-----------------------------------------------------");
- print(" DuReX's Killing Spree Filterscript unloaded!");
- print("-----------------------------------------------------\n");
- SendClientMessageToAll(0xFFFFFFFF, "{33AA33}Killing Spree System: {FFFFFF}Unloaded!");
- return 1;
- }
- //=====================================//
- public OnPlayerDisconnect(playerid, reason)
- {
- KillSpree[playerid] = 0;
- return 1;
- }
- //=====================================//
- public OnPlayerConnect(playerid)
- {
- KillSpree[playerid] = 0;
- return 1;
- }
- //=====================================//
- public OnPlayerDeath(playerid, killerid, reason)
- {
- GetPlayerName(killerid, pname, sizeof(pname));
- GetPlayerName(playerid, kname, sizeof(kname));
- KillSpree[playerid] = 0;
- KillSpree[killerid] ++;
- switch(KillSpree[killerid])
- {
- case 3:
- {
- format(string, sizeof(string), "~r~%s ~y~- Je postigaoDominating sa %d ubistava", pname, KillSpree[killerid]);
- TextDrawSetString(Textdraw0, string);
- SetPlayerScore(killerid, GetPlayerScore(killerid) + 5);
- GivePlayerMoney(killerid, 1000);
- SendClientMessage(killerid, 0xFFFFFFFF, "{33AA33}Killing Spree System ti daje: {FFFFFF} +1000$, +5 scor");
- }
- case 4:
- {
- format(string, sizeof(string), "~r~%s ~y~-Je postigao Rampage sa %d ubistava", pname, KillSpree[killerid]);
- TextDrawSetString(Textdraw0, string);
- SetPlayerScore(killerid, GetPlayerScore(killerid) + 10);
- GivePlayerMoney(killerid, 2000);
- SendClientMessage(killerid, 0xFFFFFFFF, "{33AA33}Killing Spree System ti daje: {FFFFFF} +2000$, +10 scor");
- }
- case 5:
- {
- format(string, sizeof(string), "~r~%s ~y~- Je postigao Killing Spree sa %d ubistava", pname, KillSpree[killerid]);
- TextDrawSetString(Textdraw0, string);
- SetPlayerScore(killerid, GetPlayerScore(killerid) + 15);
- GivePlayerMoney(killerid, 3000);
- SendClientMessage(killerid, 0xFFFFFFFF, "{33AA33}Killing Spree System ti daje: {FFFFFF} +3000$, +15 scor");
- }
- case 6:
- {
- format(string, sizeof(string), "~r~%s ~y~- Je postigao Monster Kill sa %d Ubistava", pname, KillSpree[killerid]);
- TextDrawSetString(Textdraw0, string);
- SetPlayerScore(killerid, GetPlayerScore(killerid) + 20);
- GivePlayerMoney(killerid, 4000);
- SendClientMessage(killerid, 0xFFFFFFFF, "{33AA33}Killing Spree System ti daje: {FFFFFF} +4000$, +20 scor");
- }
- case 7:
- {
- format(string, sizeof(string), "~r~%s ~y~- Je postigao Unstoppable sa %d ubistava", pname, KillSpree[killerid]);
- TextDrawSetString(Textdraw0, string);
- SetPlayerScore(killerid, GetPlayerScore(killerid) + 25);
- GivePlayerMoney(killerid, 5000);
- SendClientMessage(killerid, 0xFFFFFFFF, "{33AA33}Killing Spree System ti daje: {FFFFFF} +5000$, +25 scor");
- }
- case 8:
- {
- format(string, sizeof(string), "~r~%s ~y~-Je postigao Ultra Kill sa %d ubistava", pname, KillSpree[killerid]);
- TextDrawSetString(Textdraw0, string);
- SetPlayerScore(killerid, GetPlayerScore(killerid) + 30);
- GivePlayerMoney(killerid, 10000);
- SendClientMessage(killerid, 0xFFFFFFFF, "{33AA33}Killing Spree System ti daje: {FFFFFF}+10000$, +30 scor");
- }
- case 9:
- {
- format(string, sizeof(string), "~r~%s ~y~- Je postigao Godlike sa %d Ubistava", pname, KillSpree[killerid]);
- TextDrawSetString(Textdraw0, string);
- SetPlayerScore(killerid, GetPlayerScore(killerid) + 35);
- GivePlayerMoney(killerid, 10000);
- SendClientMessage(killerid, 0xFFFFFFFF, "{33AA33}Killing Spree System ti daje: {FFFFFF} +10000$, +35 scor");
- }
- case 10:
- {
- format(string, sizeof(string), "~r~%s ~y~- Je postigao Wicked Sick with %d kills", pname, KillSpree[killerid]);
- TextDrawSetString(Textdraw0, string);
- SetPlayerScore(killerid, GetPlayerScore(killerid) + 40);
- GivePlayerMoney(killerid, 10000);
- SendClientMessage(killerid, 0xFFFFFFFF, "{33AA33}Killing Spree System: {FFFFFF}Ti daje +10000$, +40 scor");
- }
- case 11:
- {
- format(string, sizeof(string), "~r~%s ~y~- Je postigao Ludacriss Kill with %d kills", pname, KillSpree[killerid]);
- TextDrawSetString(Textdraw0, string);
- SetPlayerScore(killerid, GetPlayerScore(killerid) + 45);
- GivePlayerMoney(killerid, 10000);
- SendClientMessage(killerid, 0xFFFFFFFF, "{33AA33}Killing Spree System: {FFFFFF}Ti daje +10000$, +45 score");
- }
- case 12:
- {
- format(string, sizeof(string), "~r~%s ~y~- Je postigao Holy Shit with %d kills", pname, KillSpree[killerid]);
- TextDrawSetString(Textdraw0, string);
- SetPlayerScore(killerid, GetPlayerScore(killerid) + 50);
- GivePlayerMoney(killerid, 50000);
- SendClientMessage(killerid, 0xFFFFFFFF, "{33AA33}Killing Spree System: {FFFFFF}Ti daje +50000$, +50 scor");
- }
- case 13:
- {
- format(string, sizeof(string), "~r~%s ~y~- Je postigao Huge Killing Script with %d kills", pname, KillSpree[killerid]);
- TextDrawSetString(Textdraw0, string);
- SetPlayerScore(killerid, GetPlayerScore(killerid) + 55);
- GivePlayerMoney(killerid, 50000);
- SendClientMessage(killerid, 0xFFFFFFFF, "{33AA33}Killing Spree System: {FFFFFF}Ti daje +50000$, +55 scor");
- }
- case 14:
- {
- format(string, sizeof(string), "~r~%s ~y~- Je postigao Huge Killing Script with %d kills", pname, KillSpree[killerid]);
- TextDrawSetString(Textdraw0, string);
- SetPlayerScore(killerid, GetPlayerScore(killerid) + 60);
- GivePlayerMoney(killerid, 50000);
- SendClientMessage(killerid, 0xFFFFFFFF, "{33AA33}Killing Spree System: {FFFFFF}Ti daje +50000$, +60 scor");
- }
- case 15:
- {
- format(string, sizeof(string), "~r~%s ~y~-Je postigao Huge Killing Script with %d kills", pname, KillSpree[killerid]);
- TextDrawSetString(Textdraw0, string);
- SetPlayerScore(killerid, GetPlayerScore(killerid) + 65);
- GivePlayerMoney(killerid, 50000);
- SendClientMessage(killerid, 0xFFFFFFFF, "{33AA33}Killing Spree System: {FFFFFF}Ti daje +50000$, +65 scor");
- }
- case 16:
- {
- format(string, sizeof(string), "~r~%s ~y~- Je postigao Huge Killing Script with %d kills", pname, KillSpree[killerid]);
- TextDrawSetString(Textdraw0, string);
- SetPlayerScore(killerid, GetPlayerScore(killerid) + 70);
- GivePlayerMoney(killerid, 50000);
- SendClientMessage(killerid, 0xFFFFFFFF, "{33AA33}Killing Spree System: {FFFFFF}Ti daje +50000$, +70 scor");
- }
- case 17:
- {
- format(string, sizeof(string), "~r~%s ~y~- Je postigao Huge Killing Script with %d kills", pname, KillSpree[killerid]);
- TextDrawSetString(Textdraw0, string);
- SetPlayerScore(killerid, GetPlayerScore(killerid) + 75);
- GivePlayerMoney(killerid, 50000);
- SendClientMessage(killerid, 0xFFFFFFFF, "{33AA33}Killing Spree System: {FFFFFF}Ti daje +50000$, +75 scor");
- }
- case 18:
- {
- format(string, sizeof(string), "~r~%s ~y~- Je postigao Huge Killing Script with %d kills", pname, KillSpree[killerid]);
- TextDrawSetString(Textdraw0, string);
- SetPlayerScore(killerid, GetPlayerScore(killerid) + 80);
- GivePlayerMoney(killerid, 50000);
- SendClientMessage(killerid, 0xFFFFFFFF, "{33AA33}Killing Spree System: {FFFFFF}Ti daje +50000$, +80 scor");
- }
- case 19:
- {
- format(string, sizeof(string), "~r~%s ~y~- Je postigao Huge Killing Script with %d kills", pname, KillSpree[killerid]);
- TextDrawSetString(Textdraw0, string);
- SetPlayerScore(killerid, GetPlayerScore(killerid) + 85);
- GivePlayerMoney(killerid, 50000);
- SendClientMessage(killerid, 0xFFFFFFFF, "{33AA33}Killing Spree System: {FFFFFF}Ti daje +50000$, +85 scor");
- }
- case 20:
- {
- format(string, sizeof(string), "~r~%s ~y~- Je postigao Huge Killing Script with %d kills", pname, KillSpree[killerid]);
- TextDrawSetString(Textdraw0, string);
- SetPlayerScore(killerid, GetPlayerScore(killerid) + 90);
- GivePlayerMoney(killerid, 50000);
- SendClientMessage(killerid, 0xFFFFFFFF, "{33AA33}Killing Spree System ti daje: {FFFFFF} +50000$, +90 scor");
- }
- }
- if(KillSpree[killerid] >=3)
- {
- TextDrawHideForAll(Textdraw0);
- KillTimer(aaa);
- aaa = SetTimer("blablabla", 5000, false);
- TextDrawShowForAll(Textdraw0);
- return 1;
- }
- if(KillSpree[playerid] >=3)
- {
- TextDrawHideForAll(Textdraw0);
- KillTimer(aaa);
- aaa = SetTimer("blablabla", 5000, false);
- TextDrawShowForAll(Textdraw0);
- format(string, sizeof(string), "~r~%s ~y~- Killing Spree zavrsen", kname, KillSpree[killerid]);
- TextDrawSetString(Textdraw0, string);
- return 1;
- }
- return 1;
- }
- //=====================================//
- public blablabla()
- {
- TextDrawHideForAll(Textdraw0);
- return 1;
- }
- //End of the script. © 2012 [RNG]DuReX.=======================================//
Advertisement
Add Comment
Please, Sign In to add comment