[FilterScript] Anti Drive-By - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Anti Drive-By (
/showthread.php?tid=658631)
Anti Drive-By -
Lokii - 08.09.2018
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)
Re: Anti Drive-By -
solstice_ - 08.09.2018
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
Re: Anti Drive-By -
Lokii - 08.09.2018
Quote:
Originally Posted by willbedie
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"
Re: Anti Drive-By -
RogueDrifter - 09.09.2018
I don't know what kind of replies are you expecting by releasing something like this in late 2018.
Re: Anti Drive-By -
coool - 10.09.2018
Why would there be an "Anti drive-by"? P.S You should just have done this
PHP Code:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(ispassenger==false) SetPlayerArmedWeapon(playerid, WEAPON_FIST);
return 1;
}
Re: Anti Drive-By -
Hunud - 10.09.2018
Quote:
Originally Posted by RogueDrifter
I don't know what kind of replies are you expecting by releasing something like this in late 2018.
|
Eazy reputation hunt.
Re: Anti Drive-By -
Lokii - 10.09.2018
Quote:
Originally Posted by coool
Why would there be an "Anti drive-by"? P.S You should just have done this
PHP Code:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(ispassenger==false) SetPlayerArmedWeapon(playerid, WEAPON_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?
Re: Anti Drive-By -
coool - 15.09.2018
Quote:
Originally Posted by Lokii
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?
Re: Anti Drive-By -
Lokii - 15.09.2018
Quote:
Originally Posted by coool
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.
Re: Anti Drive-By -
coool - 15.09.2018
Quote:
Originally Posted by Lokii
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(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
if(!GetPlayerVehilceSeat(playerid)) SetPlayerArmedWeapon(playerid, 0);
return 1;
}