SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 09/03/2014, 01:40 PM   #21
VenomMancer
Gangsta
 
VenomMancer's Avatar
 
Join Date: May 2013
Location: Indonesia (Manado)
Posts: 637
Reputation: 28
Default Re: Anti DB(Drive-By) Kill [SIMPLE] - My first FS! [+REP1]

If bug, ask me
VenomMancer is offline   Reply With Quote
Old 04/06/2014, 04:29 AM   #22
Dubya
Huge Clucker
 
Dubya's Avatar
 
Join Date: Jun 2012
Location: Missouri, USA
Posts: 442
Reputation: 33
Default Re: Anti DB(Drive-By) Kill [SIMPLE] - My first FS! [+REP1]

Or...

pawn Code:
public OnPlayerEnterVehicle(playerid, ispassenger) {
    SetPlayerArmedWeapon(playerid, 0);
    return 1;
}
__________________
Dubya is offline   Reply With Quote
Old 04/06/2014, 04:43 AM   #23
Parallex
Gangsta
 
Parallex's Avatar
 
Join Date: Mar 2014
Posts: 559
Reputation: 64
Default Re: Anti DB(Drive-By) Kill [SIMPLE] - My first FS! [+REP1]

Drive-by can be disabled, easily on OnPlayerStateChange, though.
Anyways, you tried as your first FS - It's fine. Nice work.
Parallex is offline   Reply With Quote
Old 04/06/2014, 04:54 AM   #24
SAMProductions
Huge Clucker
 
SAMProductions's Avatar
 
Join Date: Aug 2013
Location: /System32/
Posts: 414
Reputation: 27
Default Re: Anti DB(Drive-By) Kill [SIMPLE] - My first FS! [+REP1]

Nice work for your first filterscript, bhai

Keep up the good work brother
__________________


RAGE Paradise [CNR/CTF/RACE/FREEROAM/PARKOUR/ZOMBIE
•• Call Of Duty - BattleZone 2050 •• (0.3z)




Life is like riding a Bicycle,
You don’t fall off unless you plan to stop peddling.

We Are Anonymous, We Are Legions, We Do Not Forgive, We Do Not Forget, Expect Us.
SAMProductions is offline   Reply With Quote
Old 04/06/2014, 05:24 AM   #25
SickAttack
High-roller
 
Join Date: Dec 2013
Posts: 4,772
Reputation: 754
Default Respuesta: Anti DB(Drive-By) Kill [SIMPLE] - My first FS! [+REP1]

You can simply prevent drive-by with just 1 line. There's no need to kick the player.

pawn Code:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER) SetPlayerArmedWeapon(playerid, 0);
    return 1;
}
SickAttack is offline   Reply With Quote
Old 04/06/2014, 07:09 AM   #26
HitterHitman
Banned
 
Join Date: Sep 2013
Location: San fierro
Posts: 270
Reputation: 25
Default Re: Anti DB(Drive-By) Kill [SIMPLE] - My first FS! [+REP1]

I have a feeling that it isn't correct

pawn Code:
SetPlayerHealth(playerid, Health + 100); // playerid health will +100 /1 shoot

Please explain this to me.
HitterHitman is offline   Reply With Quote
Old 04/06/2014, 08:00 AM   #27
VenomMancer
Gangsta
 
VenomMancer's Avatar
 
Join Date: May 2013
Location: Indonesia (Manado)
Posts: 637
Reputation: 28
Wink Re: Anti DB(Drive-By) Kill [SIMPLE] - My first FS! [+REP1]

Quote:
Originally Posted by HitterHitman View Post
I have a feeling that it isn't correct

pawn Code:
SetPlayerHealth(playerid, Health + 100); // playerid health will +100 /1 shoot

Please explain this to me.
When the killer (issuerid) shoot from vehicle, the target's (playerid) Health will +100 or the target's health will keep on 100 amount

Sorry for my bad english -_-
VenomMancer is offline   Reply With Quote
Old 30/08/2014, 05:53 AM   #28
satafinix
Huge Clucker
 
satafinix's Avatar
 
Join Date: Apr 2013
Location: Marruecos
Posts: 300
Reputation: 15
Default Re: Anti DB(Drive-By) Kill [SIMPLE] - My first FS! [+REP1]

Nice, but drive by is allowed on freeroam Btw Gj
__________________
SA-MP: 5.231.53.212:7777
TS3: TS3.swx-stunting.ga
satafinix is offline   Reply With Quote
Old 07/11/2019, 12:56 PM   #29
VenomMancer
Gangsta
 
VenomMancer's Avatar
 
Join Date: May 2013
Location: Indonesia (Manado)
Posts: 637
Reputation: 28
Default Re: Anti DB(Drive-By) Kill [SIMPLE] - My first FS! [+REP1]

im back from 2013 LOL
VenomMancer is offline   Reply With Quote
Old 07/11/2019, 02:21 PM   #30
Kasichok
Big Clucker
 
Kasichok's Avatar
 
Join Date: Sep 2018
Location: weed farm
Posts: 61
Reputation: 24
Default Re: Anti DB(Drive-By) Kill [SIMPLE] - My first FS! [+REP1]

Quote:
Originally Posted by VenomMancer View Post
im back from 2013 LOL
Nice BUMP LOL
__________________



STRESSED? TRY KASICHOK AND RELAX


Kasichok is offline   Reply With Quote
Reply

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 04:28 AM
[HELP] Anti fake kill +REP1 VenomMancer Scripting Help 5 29/01/2014 05:39 PM
[Include] a_driveby - a simple, yet effective anti drive-by system Weponz Includes 4 26/09/2013 11:21 AM
[Tutorial] Anti driver drive-by ( simple + very explaind ) Chrisis Tutorials 8 08/08/2013 09:06 AM
[FilterScript] Simple anti drive by for SA-MP 0.3b BuLLeT[LTU] Filterscripts 25 20/09/2010 08:50 PM


All times are GMT. The time now is 01:30 PM.


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