Re: Anti DB(Drive-By) Kill [SIMPLE] - My first FS! [+REP1] -
VenomMancer - 09.03.2014
If bug, ask me
Re: Anti DB(Drive-By) Kill [SIMPLE] - My first FS! [+REP1] -
Dubya - 04.06.2014
Or...
pawn Code:
public OnPlayerEnterVehicle(playerid, ispassenger) {
SetPlayerArmedWeapon(playerid, 0);
return 1;
}
Re: Anti DB(Drive-By) Kill [SIMPLE] - My first FS! [+REP1] -
Parallex - 04.06.2014
Drive-by can be disabled, easily on OnPlayerStateChange, though.
Anyways, you tried as your first FS - It's fine. Nice work.
Re: Anti DB(Drive-By) Kill [SIMPLE] - My first FS! [+REP1] -
SAMProductions - 04.06.2014
Nice work for your first filterscript, bhai
Keep up the good work brother
Respuesta: Anti DB(Drive-By) Kill [SIMPLE] - My first FS! [+REP1] -
SickAttack - 04.06.2014
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;
}
Re: Anti DB(Drive-By) Kill [SIMPLE] - My first FS! [+REP1] -
HitterHitman - 04.06.2014
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.
Re: Anti DB(Drive-By) Kill [SIMPLE] - My first FS! [+REP1] -
VenomMancer - 04.06.2014
Quote:
Originally Posted by HitterHitman
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 -_-
Re: Anti DB(Drive-By) Kill [SIMPLE] - My first FS! [+REP1] -
satafinix - 30.08.2014
Nice, but drive by is allowed on freeroam
Btw Gj