[FilterScript] Following the Kill - Style Combat Arms
#1

Following the Kill - Style Combat Arms

pawn Код:
2 Kills followed: Double Kill
3 Kills: Multi Kill
4 Kills: Ultra Kill              
5 Kills: Fantastic              
6 Kills: Unbelievable          
7 Kills or more: Unbelievable+
I posted this on the board FilterScript PT / BR because I am Brazilian, obvious.

Anyway, one FilterScript basic sequence kills, similar to the Combat Arms .. The video is in Portuguese, sorry!

The sounds were uploaded to 4shared by myself ..
I do not have accounts at other sites of Lodging! Sorry.

Translation of the video:

I put high time for TextDraw fade to test and demonstrate perfectly how the FilterScript ...

- Video:
[ame]http://www.youtube.com/watch?v=p3SLAGqDI0E[/ame]

- FilterScript:
pawn Код:
/*
        Following the Kill
                (Style Combat Arms)
                    By - @Riichard
    -------------------------------------
    |2 Kills followed: Double Kill      |
    |3 Kills: Multi Kill                |
    |4 Kills: Ultra Kill                |
    |5 Kills: Fantastic                 |
    |6 Kills: Unbelievable              |
    |7 Kills or more: Unbelievable+     |
    -------------------------------------
*/


// ==== [Includes] ==== //
#include <a_samp> // SA:MP Team


// ==== [Variaveis] ==== //
new
    PlayerText:tComb[MAX_PLAYERS],
    pKills[MAX_PLAYERS],
    TempTD[MAX_PLAYERS]
;

// ============================== //
public OnFilterScriptInit()
    return print("[FilterScript - rKills] Loaded.");
public OnFilterScriptExit()
    return print("[FilterScript - rKills] Desloaded.");


public OnPlayerConnect(playerid)
    return CreateTextDraw(playerid), KillTimer(KillTimer(TempTD[playerid])), 0;

public OnPlayerDisconnect(playerid)
    return DeleteTD(playerid), 0;

public OnPlayerDeath(playerid, killerid, reason)
{
    pKills[playerid] = 0;
    pKills[killerid] += 1;
    KillTimer(TempTD[playerid]);
    if(pKills[killerid] == 2)
    {
        PlayAudioStreamForPlayer(killerid, "http://dc342.4shared.com/img/4281389484/b8662230/dlink__2Fdownload_2FCppyHaJi_3Ftsid_3D20131230-194334-ad8ffb73_26dsid_3D17lvwy.d92f45bf72d18c18cf89dafb47dbe3b3/preview.mp3");
        PlayerTextDrawSetString(killerid, tComb[killerid], "Double Kill");
        PlayerTextDrawColor(killerid, tComb[killerid], -2686721);
        PlayerTextDrawShow(killerid, tComb[killerid]);
        if(TempTD[killerid]) KillTimer(TempTD[killerid]);
        TempTD[killerid] = SetTimerEx("DeleteTD", 3500, false, "d", killerid);
    }
    if(pKills[killerid] == 3)
    {
        PlayAudioStreamForPlayer(killerid, "http://dc380.4shared.com/img/4281404928/9cf8b666/dlink__2Fdownload_2FMr8L1AMT_3Ftsid_3D20131230-195256-8ea57afd_26dsid_3D17lvwy.45d4101d1daef7600916c86a43302638/preview.mp3");
        PlayerTextDrawSetString(killerid, tComb[killerid], "Multi Kill");
        PlayerTextDrawColor(killerid, tComb[killerid], -65281);
        PlayerTextDrawShow(killerid, tComb[killerid]);
        if(TempTD[killerid]) KillTimer(TempTD[killerid]);
        TempTD[killerid] = SetTimerEx("DeleteTD", 3500, false, "d", killerid);
    }
    if(pKills[killerid] == 4)
    {
        PlayAudioStreamForPlayer(killerid, "http://dc544.4shared.com/img/4281406970/455d029a/dlink__2Fdownload_2FuEXYbOPa_3Ftsid_3D20131230-195405-a92b5017_26dsid_3D17lvwy.422e3569f7f7c0759c738343eb9123a5/preview.mp3");
        PlayerTextDrawSetString(killerid, tComb[killerid], "Ultra Kill");
        PlayerTextDrawColor(killerid, tComb[killerid], -7601921);
        PlayerTextDrawShow(killerid, tComb[killerid]);
        if(TempTD[killerid]) KillTimer(TempTD[killerid]);
        TempTD[killerid] = SetTimerEx("DeleteTD", 3500, false, "d", killerid);
    }
    if(pKills[killerid] == 5)
    {
        PlayAudioStreamForPlayer(killerid, "http://dc691.4shared.com/img/4281408708/ee864656/dlink__2Fdownload_2FAi2HfzLr_3Ftsid_3D20131230-195502-c130ba15_26dsid_3D17lvwy.d3fc5874202c8fa5ceae74c73d5367a2/preview.mp3");
        PlayerTextDrawSetString(killerid, tComb[killerid], "Fantastic");
        PlayerTextDrawColor(killerid, tComb[killerid], -16776961);
        PlayerTextDrawShow(killerid, tComb[killerid]);
        if(TempTD[killerid]) KillTimer(TempTD[killerid]);
        TempTD[killerid] = SetTimerEx("DeleteTD", 3500, false, "d", killerid);
    }
    if(pKills[killerid] >= 6)
    {
        PlayAudioStreamForPlayer(killerid, "http://dc591.4shared.com/img/4281409982/74a86f2f/dlink__2Fdownload_2FTdjyU9YB_3Ftsid_3D20131230-195543-b2bd8d_26dsid_3D17lvwy.97833465d64208589bc1343e8fd85951/preview.mp3");
        if(pKills[killerid] == 6) PlayerTextDrawSetString(killerid, tComb[killerid], "Unbelievable");
        if(pKills[killerid] > 6) PlayerTextDrawSetString(killerid, tComb[killerid], "Unbelievable+");
        if(pKills[killerid] == 6) PlayerTextDrawColor(killerid, tComb[killerid], -855637761);
        if(pKills[killerid] > 6) PlayerTextDrawColor(killerid, tComb[killerid], -1962934017);
        PlayerTextDrawShow(killerid, tComb[killerid]);
        if(TempTD[killerid]) KillTimer(TempTD[killerid]);
        TempTD[killerid] = SetTimerEx("DeleteTD", 3500, false, "d", killerid);
    }
    return 0;
}


// ================================================= //
forward DeleteTD(playerid);
public DeleteTD(playerid)
    return PlayerTextDrawHide(playerid, tComb[playerid]), pKills[playerid] = 0, KillTimer(KillTimer(TempTD[playerid]));

forward CreateTextDraw(playerid);
public CreateTextDraw(playerid)
{
    tComb[playerid] = CreatePlayerTextDraw(playerid, 261.000000, 121.000000, "");
    PlayerTextDrawFont(playerid, tComb[playerid], 1);
    PlayerTextDrawColor(playerid, tComb[playerid], -2686721);
    PlayerTextDrawSetOutline(playerid, tComb[playerid], 1);
    PlayerTextDrawSetProportional(playerid, tComb[playerid], 1);
    PlayerTextDrawSetShadow(playerid, tComb[playerid], 1);
    PlayerTextDrawLetterSize(playerid, tComb[playerid], 0.680000, 2.500000);
    pKills[playerid] = 0;
    return 1;
}

- OBS:
The sound takes a while to run, so I put 3 seconds and a half to TextDraw disappear.


- Credits:

Creator > @Riichard
Test > #Coringa
TextDraw's created in TextDraw Zamaroth

Sorry for the mistakes, I'm brazilian! .


Though simple, hope you like!






Reply
#2

Use the structure switch before that to use conditional many.

On the FS, good work! .
Reply
#3

Nice man, Hope you make more script like this
Reply
#4

Nice job man, love it
Reply
#5

wow just wow
Reply
#6

Quote:
Originally Posted by EnzoMetlc
Посмотреть сообщение
Use the structure switch before that to use conditional many.

On the FS, good work! .
Quote:
Originally Posted by Alphlax
Посмотреть сообщение
Nice script
Thanks .

Quote:
Originally Posted by hhaaoo123
Посмотреть сообщение
Nice man, Hope you make more script like this
Sometimes I'm doing scripts! But, as I am Brazilian, I end up posting it on board PT / BR .

Quote:
Originally Posted by FreAkeD
Посмотреть сообщение
Nice job man, love it
Thanks .

Quote:
Originally Posted by LMagnifico
Посмотреть сообщение
wow just wow
Reply
#7

Wow Good Script
Reply
#8

Quote:
Originally Posted by EmpireSk
Посмотреть сообщение
Wow Good Script
Thanks .
Reply
#9

Good job!
Reply
#10

Quote:
Originally Posted by CharlieBrown
Посмотреть сообщение
Good job!
Thanks.
.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)