SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 27/02/2014, 01:54 PM   #1
VenomMancer
Gangsta
 
VenomMancer's Avatar
 
Join Date: May 2013
Location: Indonesia (Manado)
Posts: 637
Reputation: 28
Red face Anti DB(Drive-By) Kill [SIMPLE] - My first FS! Updates v.1.2

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 Code:
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 Code:
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

Last edited by VenomMancer; 28/02/2014 at 10:50 AM.
VenomMancer is offline   Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Anti Fake Kill Solutions ? +Rep1 VenomMancer Scripting Help 9 18/02/2014 03:28 AM
[HELP] Anti fake kill +REP1 VenomMancer Scripting Help 5 29/01/2014 04:39 PM
[Include] a_driveby - a simple, yet effective anti drive-by system Weponz Includes 4 26/09/2013 10:21 AM
[Tutorial] Anti driver drive-by ( simple + very explaind ) Chrisis Tutorials 8 08/08/2013 08:06 AM
[FilterScript] Simple anti drive by for SA-MP 0.3b BuLLeT[LTU] Filterscripts 25 20/09/2010 07:50 PM


All times are GMT. The time now is 02:23 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.