[FilterScript] Anti DB(Drive-By) Kill [SIMPLE] - My first FS! [+REP1]
#21

If bug, ask me
Reply
#22

Or...

pawn Code:
public OnPlayerEnterVehicle(playerid, ispassenger) {
    SetPlayerArmedWeapon(playerid, 0);
    return 1;
}
Reply
#23

Drive-by can be disabled, easily on OnPlayerStateChange, though.
Anyways, you tried as your first FS - It's fine. Nice work.
Reply
#24

Nice work for your first filterscript, bhai

Keep up the good work brother
Reply
#25

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;
}
Reply
#26

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.
Reply
#27

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 -_-
Reply
#28

Nice, but drive by is allowed on freeroam Btw Gj
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)