[FilterScript] Anti DB(Drive-By) Kill [SIMPLE] - My first FS! [+REP1]
#1

Anti DB(Drive-By) Kill v1.2
Hello guys, i have idea for make this one
I dont know, if this has been released!


Here :
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
{
    if(GetPlayerState(issuerid) == PLAYER_STATE_DRIVER || GetPlayerState(issuerid) == PLAYER_STATE_PASSENGER )
    {
        new Float:Health;
        GetPlayerHealth(playerid, Health);
        GetPlayerHealth(issuerid, Health);
        SetPlayerHealth(issuerid, Health - 20); // Make when player DB Kill, issuerid health will -20 /1 shoot
        SetPlayerHealth(playerid, Health + 100); // playerid health will +100 /1 shoot
        GameTextForPlayer(issuerid,"~r~~h~~h~Stop Drive by kill ~n~ or you will die!",4000,3);
    }
    return 1;
}
Or this :
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
{
    if(GetPlayerState(issuerid) == PLAYER_STATE_DRIVER || GetPlayerState(issuerid) == PLAYER_STATE_PASSENGER )
    {
        GameTextForPlayer(issuerid,"~r~~h~~h~Stop Shoot ~n~ or you will kicked!",4000,3);
        PlayerPlaySound(issuerid,1085,0.0,0.0,0.0);
    }
    return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
    new angga[256];
    new kname[MAX_PLAYER_NAME];
    GetPlayerName(killerid, kname, sizeof(kname));
    if(GetPlayerState(killerid) == PLAYER_STATE_DRIVER || GetPlayerState(killerid) == PLAYER_STATE_PASSENGER )
    {
        format(angga, sizeof(angga), ":: SERVER :: %s has been kicked from server! (Reason : Drive-by kill)!",kname);
        SendClientMessageToAll(-1,angga);
        SetTimerEx("playerkick", 2000, 0, "i", killerid);
    }
    return 1;
}

forward playerkick(playerid);
public playerkick(playerid)
{
    Kick(playerid);
    return 1;
}
Simple!
Give me +REP1 for my 1st realesed FS!

Thanks
Reply


Messages In This Thread
Anti DB(Drive-By) Kill [SIMPLE] - My first FS! Updates v.1.2 - by VenomMancer - 27.02.2014, 13:54
Re: Anti DB(Drive-By) Kill [SIMPLE] - My first FS! [+REP1] - by Ha$H_Sexyboy - 27.02.2014, 13:57
Re: Anti DB(Drive-By) Kill [SIMPLE] - My first FS! [+REP1] - by VenomMancer - 27.02.2014, 14:01
Re: Anti DB(Drive-By) Kill [SIMPLE] - My first FS! [+REP1] - by theomanking - 27.02.2014, 14:33
Re: Anti DB(Drive-By) Kill [SIMPLE] - My first FS! [+REP1] - by VenomMancer - 27.02.2014, 14:42
Re: Anti DB(Drive-By) Kill [SIMPLE] - My first FS! [+REP1] - by VenomMancer - 27.02.2014, 15:29
Re: Anti DB(Drive-By) Kill [SIMPLE] - My first FS! [+REP1] - by Pottus - 27.02.2014, 15:33
Re: Anti DB(Drive-By) Kill [SIMPLE] - My first FS! [+REP1] - by VenomMancer - 27.02.2014, 16:06
Re: Anti DB(Drive-By) Kill [SIMPLE] - My first FS! [+REP1] - by Sagna - 27.02.2014, 16:15
Re: Anti DB(Drive-By) Kill [SIMPLE] - My first FS! [+REP1] - by Pottus - 27.02.2014, 16:39
Re: Anti DB(Drive-By) Kill [SIMPLE] - My first FS! [+REP1] - by CroM256 - 27.02.2014, 16:47
Re: Anti DB(Drive-By) Kill [SIMPLE] - My first FS! [+REP1] - by VenomMancer - 28.02.2014, 09:49
Re: Anti DB(Drive-By) Kill [SIMPLE] - My first FS! [+REP1] - by VenomMancer - 02.03.2014, 08:18
Re: Anti DB(Drive-By) Kill [SIMPLE] - My first FS! [+REP1] - by mahardika - 04.03.2014, 06:24
Re: Anti DB(Drive-By) Kill [SIMPLE] - My first FS! [+REP1] - by Raza2013 - 04.03.2014, 06:43
Re: Anti DB(Drive-By) Kill [SIMPLE] - My first FS! [+REP1] - by Uberanwar - 04.03.2014, 09:51
Re: Anti DB(Drive-By) Kill [SIMPLE] - My first FS! [+REP1] - by Team_PRO - 04.03.2014, 09:52
Re: Anti DB(Drive-By) Kill [SIMPLE] - My first FS! [+REP1] - by VenomMancer - 04.03.2014, 21:08
Re: Anti DB(Drive-By) Kill [SIMPLE] - My first FS! [+REP1] - by HolyScripter - 06.03.2014, 07:53
Re: Anti DB(Drive-By) Kill [SIMPLE] - My first FS! [+REP1] - by VenomMancer - 06.03.2014, 11:52
Re: Anti DB(Drive-By) Kill [SIMPLE] - My first FS! [+REP1] - by VenomMancer - 09.03.2014, 12:40
Re: Anti DB(Drive-By) Kill [SIMPLE] - My first FS! [+REP1] - by Dubya - 04.06.2014, 03:29
Re: Anti DB(Drive-By) Kill [SIMPLE] - My first FS! [+REP1] - by Parallex - 04.06.2014, 03:43
Re: Anti DB(Drive-By) Kill [SIMPLE] - My first FS! [+REP1] - by SAMProductions - 04.06.2014, 03:54
Respuesta: Anti DB(Drive-By) Kill [SIMPLE] - My first FS! [+REP1] - by SickAttack - 04.06.2014, 04:24
Re: Anti DB(Drive-By) Kill [SIMPLE] - My first FS! [+REP1] - by HitterHitman - 04.06.2014, 06:09
Re: Anti DB(Drive-By) Kill [SIMPLE] - My first FS! [+REP1] - by VenomMancer - 04.06.2014, 07:00
Re: Anti DB(Drive-By) Kill [SIMPLE] - My first FS! [+REP1] - by satafinix - 30.08.2014, 04:53

Forum Jump:


Users browsing this thread: 4 Guest(s)