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>>>>>>AMUNRA>>>>>>>>>>>>>>>>>>>>>>>>>>>AMUNRA>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>*/
- /*>>>>>>>>>>>>>>>AMUNRA>>>>>>>>>>>>>>>>>>>>>>>>>>>AMUNRA>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>*/
- /*>>>>>>>>>>>>>>>AMUNRA>>>>>>>>>>>>>>>>>>>>>>>>>>>AMUNRA>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>*/
- /*>>>>>>>>>>>>>>>AMUNRA>>>>>>>>>>>>>>>>>>>>>>>>>>>AMUNRA>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>*/
- /*>>>>>>>>>>>>>>>AMUNRA>>>>>>>>>>>>>>>>>>>>>>>>>>>AMUNRA>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>*/
- /*>>>>>>>>>>>>>>>AMUNRA>>>>>>>>>>>>>>>>>>>>>>>>>>>AMUNRA>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>*/
- /*>>>>>>>>>>>>>>>AMUNRA,AMUNRA,AMUNRA,AMUNRA>>>>>>>AMUNRA>>>>>>>>>>>>>>>>>>>AMUNRA>>>*/
- /*>>>>>>>>>>>>>>>AMUNRA,AMUNRA,AMUNRA,AMUNRA>>>>>>>>AMUNRA,AMUNRA,AMUNRA,AMUNRA>>>>>>*/
- /*>>>>>>>>>>>>>>>AMUNRA,AMUNRA,AMUNRA,AMUNRA>>>>>>>>>>>AMUNRA,AMUNRA,AMUNRA.>>>>>>>>*/
- /*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
- /* MY SERVER [LC]Legendary Criminals */
- #define FILTERSCRIPT
- #include <a_samp>
- #include <Dini>
- #include <Dutils>
- #include <Dudb>
- #define savefolder "killstreak/%s.ini"
- #pragma unused ret_memcpy
- #pragma unused strtok
- #pragma tabsize 0
- #define ks1 1
- #define ks2 1
- #define ks3 1
- #define ks4 1
- #define ks5 2
- #define ks6 2
- #define ks7 2
- #define ks8 2
- #define ks9 2
- #define ks10 3
- #define ks11 3
- //===================================cash======================================
- #define cash1 2000
- #define cash2 3000
- #define cash3 4000
- #define cash4 5000
- #define cash5 6000
- #define cash6 7000
- #define cash7 8000
- #define cash8 9000
- #define cash9 10000
- #define cash10 11000
- #define cash11 12000
- #define COLOR_BLUE 0x0000BBAA
- new Killz[MAX_PLAYERS];
- new Deathz[MAX_PLAYERS];
- new Streaks[MAX_PLAYERS];
- new string2[50];
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" >>>>>>>>FILTERSCRIPT CREATED BY <<<<<<<");
- print(" >>>>>>>>>>>>>>>>>AMUNRA<<<<<<<<<<<<<<<<");
- print("--------------------------------------\n");
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- new pname[128];
- new file[128];
- Streaks[playerid] = 0;
- GetPlayerName(playerid, pname, sizeof(pname));
- format(file, sizeof(file), savefolder,pname);
- if(!dini_Exists(file)) {
- dini_Create(file);
- dini_IntSet(file, "Score", 0);
- dini_IntSet(file, "Money", 0);
- dini_IntSet(file, "Kills", Killz[playerid]);
- dini_IntSet(file, "Deaths", Deathz[playerid]);
- dini_IntSet(file, "Skin", 0);
- SetPlayerScore(playerid, dini_Int(file, "Score"));
- SetPlayerMoney(playerid, dini_Int(file, "Money"));
- SetPlayerSkin(playerid, dini_Int(file, "Skin"));
- }
- else {
- SetPlayerScore(playerid, dini_Int(file, "Score"));
- SetPlayerMoney(playerid, dini_Int(file, "Money"));
- SetPlayerSkin(playerid, dini_Int(file, "Skin"));
- }
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- new pname[128];
- new file[128];
- Streaks[playerid] = 0;
- GetPlayerName(playerid, pname, sizeof(pname));
- format(file, sizeof(file), savefolder,pname);
- if(!dini_Exists(file)) {
- }
- else {
- dini_IntSet(file, "Score", GetPlayerScore(playerid));
- dini_IntSet(file, "Money", GetPlayerMoney(playerid));
- dini_IntSet(file, "Kills", Killz[playerid]);
- dini_IntSet(file, "Deaths", Deathz[playerid]);
- dini_IntSet(file, "Skin", GetPlayerSkin(playerid));
- }
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- if(IsPlayerConnected(killerid) && killerid != INVALID_PLAYER_ID ) { //check if the player is connected and it's a VALID KILL
- if(GetPlayerWantedLevel(killerid) < 6) //if the player's wantedlevel is under 6
- {
- SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid) + 1); //increase it by 1
- }
- Streaks[killerid] ++; //the sign '++' means, increase the variable for the killerid by 1
- GivePlayerMoney(killerid, 500); //if you like, give the killer some money, else comment this line out
- }
- SetPlayerWantedLevel(playerid, 0); //the player who died will get his wanted level reset to 0
- Streaks[playerid] = 0; //and his streak will end, while giving the value '0' to this variable
- SetPlayerScore(killerid,GetPlayerScore(killerid)+1); //not really necessary, would increase the player's score by 1 point
- new str[ 256 ], KillerName[MAX_PLAYER_NAME]; //here, you're defining a string2 and the killername
- GetPlayerName(killerid, KillerName, sizeof(KillerName)); //receive the information of the killer's name
- switch(Streaks[killerid]) //IMPORTANT: with the function "switch", you're switching / toggling through the killstreaks of a player (Streals). you need the killerid here, because the playerid is the one which is GETTING killed
- {
- case 2: // we won't start with the first kill (case 1), because it wouldn't be countable as streak
- {
- PlayAudioStreamForPlayer(killerid,"http://downloads.ziddu.com/downloadfiles/11190090/doublekill.mp3");
- format(str, sizeof(str), "[KILLSTREAK] ~g~%s has performed a ~y~double kill!", KillerName); //here, you're formatting the defined string2 and add the content (text)
- GameTextForAll(str,4000,4); //this is a function, which will show a short, colored big text for all the players (str, 4000ms, stylenumber 4)
- format(string2, sizeof(string2), "You get $%i and +%i score! (KILLSTREAK BONUS bonus)", cash1, ks1);
- SendClientMessage(killerid, COLOR_BLUE, string2);
- GivePlayerMoney(killerid, cash1);
- GivePlayerScore(killerid, ks1);
- }
- case 3:
- {
- PlayAudioStreamForPlayer(killerid,"http://downloads.ziddu.com/downloadfiles/11190250/triplekill.mp3");
- format(str, sizeof(str), "[KILLSTREAK] ~y~Triple Kill for ~b~%s!", KillerName);
- GameTextForAll(str,4000,4);
- format(string2, sizeof(string2), "You get $%i and +%i score! (KILLSTREAK BONUS bonus)", cash2, ks2);
- SendClientMessage(killerid, COLOR_BLUE, string2);
- GivePlayerMoney(killerid, cash2);
- GivePlayerScore(killerid, ks2);
- }
- case 4:
- {
- PlayAudioStreamForPlayer(killerid,"http://downloads.ziddu.com/downloadfiles/11190086/chainkiller.mp3");
- format(str, sizeof(str), "[KILLSTREAK] ~p~I Got you for ~r~%s!", KillerName);
- GameTextForAll(str,4000,4);
- format(string2, sizeof(string2), "You get $%i and +%i score! (KILLSTREAK BONUS bonus)", cash3, ks3);
- SendClientMessage(killerid, COLOR_BLUE, string2);
- GivePlayerMoney(killerid, cash3);
- GivePlayerScore(killerid, ks3);
- }
- case 5:
- {
- PlayAudioStreamForPlayer(killerid,"http://downloads.ziddu.com/downloadfiles/11190086/chainkiller.mp3");
- format(str, sizeof(str), "[KILLSTREAK] ~r~%s is dominating with ~p~five kills!", KillerName);
- GameTextForAll(str,4000,4);
- format(string2, sizeof(string2), "You get $%i and +%i score! (KILLSTREAK BONUS bonus)", cash4, ks4);
- SendClientMessage(killerid, COLOR_BLUE, string2);
- GivePlayerMoney(killerid, cash4);
- GivePlayerScore(killerid, ks4); }
- case 6:
- {
- PlayAudioStreamForPlayer(killerid,"http://downloads.ziddu.com/downloadfiles/11190086/chainkiller.mp3");
- format(str, sizeof(str), "[KILLSTREAK] ~w~%s is godlike with ~y~six kills!", KillerName);
- GameTextForAll(str,4000,4);
- format(string2, sizeof(string2), "You get $%i and +%i score! (KILLSTREAK BONUS bonus)", cash5, ks5);
- SendClientMessage(killerid, COLOR_BLUE, string2);
- GivePlayerMoney(killerid, cash5);
- GivePlayerScore(killerid, ks5); }
- case 7:
- {
- PlayAudioStreamForPlayer(killerid,"http://downloads.ziddu.com/downloadfiles/11190086/chainkiller.mp3");
- format(str, sizeof(str), "[KILLSTREAK] ~r~RAMPAGE for %s with ~w~seven kills!", KillerName);
- GameTextForAll(str,4000,4);
- format(string2, sizeof(string2), "You get $%i and +%i score! (KILLSTREAK BONUS bonus)", cash6, ks6);
- SendClientMessage(killerid, COLOR_BLUE, string2);
- GivePlayerMoney(killerid, cash6);
- GivePlayerScore(killerid, ks6); }
- case 8:
- {
- PlayAudioStreamForPlayer(killerid,"http://downloads.ziddu.com/downloadfiles/11190086/chainkiller.mp3");
- format(str, sizeof(str), "[KILLSTREAK] ~p~%s is unbelievable with ~y~eight kills!Someone Want to killed", KillerName);
- GameTextForAll(str,4000,4);
- format(string2, sizeof(string2), "You get $%i and +%i score! (KILLSTREAK BONUS bonus)", cash7, ks7);
- SendClientMessage(killerid, COLOR_BLUE, string2);
- GivePlayerMoney(killerid, cash7);
- GivePlayerScore(killerid, ks7);
- }
- case 9:
- {
- PlayAudioStreamForPlayer(killerid,"http://downloads.ziddu.com/downloadfiles/11190086/chainkiller.mp3");
- format(str, sizeof(str), "[KILLSTREAK] ~g~%s is So Nice,With ~b~nine kills!Got you", KillerName);
- GameTextForAll(str,4000,4);
- format(string2, sizeof(string2), "You get $%i and +%i score! (KILLSTREAK BONUS bonus)", cash8, ks8);
- SendClientMessage(killerid, COLOR_BLUE, string2);
- GivePlayerMoney(killerid, cash8);
- GivePlayerScore(killerid, ks8);
- }
- case 10:
- {
- PlayAudioStreamForPlayer(killerid,"http://downloads.ziddu.com/downloadfiles/11190086/chainkiller.mp3");
- format(str, sizeof(str), "[KILLSTREAK] ~b~%s is annihilating with ~g~ten kills!", KillerName);
- GameTextForAll(str,4000,4);
- format(string2, sizeof(string2), "You get $%i and +%i score! (KILLSTREAK BONUS bonus)", cash9, ks9);
- SendClientMessage(killerid, COLOR_BLUE, string2);
- GivePlayerMoney(killerid, cash9);
- GivePlayerScore(killerid, ks9);
- }
- case 11:
- {
- PlayAudioStreamForPlayer(killerid,"http://downloads.ziddu.com/downloadfiles/11190086/chainkiller.mp3");
- format(str, sizeof(str), "[KILLSTREAK] ~b~%s GOD KILLER..~g~I Can't Lose...!", KillerName);
- GameTextForAll(str,4000,4);
- format(string2, sizeof(string2), "You get $%i and +%i score! (KILLSTREAK BONUS bonus)", cash10, ks10);
- SendClientMessage(killerid, COLOR_BLUE, string2);
- GivePlayerMoney(killerid, cash10);
- GivePlayerScore(killerid, ks10);
- }
- }
- GivePlayerMoney(killerid, 10000); //change the amount to whatever u want
- SetPlayerScore(killerid, GetPlayerScore(killerid)+1);
- SetPlayerScore(playerid, GetPlayerScore(playerid)-1);
- Killz[killerid] ++;
- Deathz[playerid] ++;
- return 1;
- }
- stock GivePlayerScore(playerid, score)
- {
- SetPlayerScore(playerid, GetPlayerScore(playerid)+score);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement