[FilterScript] Anti Drive-By
#1

Anti Drive-By




INFO:


Code:
MAX_WARNING - 3 //can change to yours

If player was shot reason: (drive-by) he will not get damage!

Once player reaches max warnings he will get kicked.


PIC:











PASTEBIN



CREDITS:

SA-MP team - a_samp
ME - Anti Drive-By (ADB)

Reply
#2

I would recommend you using pastebin/github, can't & don't want to download the file even tho i won't be using this filterscript i just want to have a look at the code
Reply
#3

Quote:
Originally Posted by willbedie
View Post
I would recommend you using pastebin/github, can't & don't want to download the file even tho i won't be using this filterscript i just want to have a look at the code
i did upload to pastebin

edit changed "DOWNLOAD" to "PASTEBIN"
Reply
#4

I don't know what kind of replies are you expecting by releasing something like this in late 2018.
Reply
#5

Why would there be an "Anti drive-by"? P.S You should just have done this
PHP Code:
public OnPlayerEnterVehicle(playeridvehicleidispassenger)
{
    if(
ispassenger==falseSetPlayerArmedWeapon(playeridWEAPON_FIST);
    return 
1;

Reply
#6

Quote:
Originally Posted by RogueDrifter
View Post
I don't know what kind of replies are you expecting by releasing something like this in late 2018.
Eazy reputation hunt.
Reply
#7

Quote:
Originally Posted by coool
View Post
Why would there be an "Anti drive-by"? P.S You should just have done this
PHP Code:
public OnPlayerEnterVehicle(playeridvehicleidispassenger)
{
    if(
ispassenger==falseSetPlayerArmedWeapon(playeridWEAPON_FIST);
    return 
1;

What if i will use giveplayerweapon? Ill have weapons again

Also it would be better to use onplayerstatechange

@hunud are you going to reply useless comments on all of my posts?
Reply
#8

Quote:
Originally Posted by Lokii
View Post
What if i will use giveplayerweapon? Ill have weapons again

Also it would be better to use onplayerstatechange
What do you mean by using GivePlayerWeapon??
And why would it be better to use OnPlayerStateChange?
Reply
#9

Quote:
Originally Posted by coool
View Post
What do you mean by using GivePlayerWeapon??
And why would it be better to use OnPlayerStateChange?
OnPlayerEnterVehicle set to fist when player open the door but when he get in the car the weapon is back, that doesnt happen with OnPlayerStateChange.

but anyway they both wont work good cause what if player uses a command that will give him a weapon??

he will have a weapon again and he will be able to use it.
Reply
#10

Quote:
Originally Posted by Lokii
View Post
OnPlayerEnterVehicle set to fist when player open the door but when he get in the car the weapon is back, that doesnt happen with OnPlayerStateChange.

but anyway they both wont work good cause what if player uses a command that will give him a weapon??

he will have a weapon again and he will be able to use it.
Then I will use this
PHP Code:
public OnPlayerWeaponShot(playeridweaponidhittypehitidFloat:fXFloat:fYFloat:fZ)
{
    if(!
GetPlayerVehilceSeat(playerid)) SetPlayerArmedWeapon(playerid0);
    return 
1;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)