SA-MP Forums Archive
[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=435952)



Anti Drive-By - BlackHorse - 09.05.2013

WHAT IS THIS?
This is a filterscript in which players kicked when drive-by because in many servers drive-by is not allowed
WHAT I NEED?
You need one include a_samp this include you already have when installed pawno
How can i download this
Don't worry you can download this. http://pastebin.com/YBQCH64R
ENJOY!


Re: Anti Drive-By - Rimmon - 09.05.2013

This is a sh*t seriously .
1)This isn't a FS (my own view)
2)GameTextForPlayer does not appear because you used Kick .. You must use a timer for kick if you wanna the text to appear
3)Wasn't necessary to create a new variable
Код:
new playerState = GetPlayerState(killerid);
All what you done was a new line
I don't wanna be rude , but , i guess i'm right


Re: Anti Drive-By - LaGrande - 09.05.2013

Pretty shit, wanna see my anti driveby?

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER)
    {
        SetPlayerArmedWeapon(playerid, 0);
    }
    return 1;
}
And this works.


Re: Anti Drive-By - Red_Dragon. - 09.05.2013

Quote:
Originally Posted by LaGrande
Посмотреть сообщение
Pretty shit, wanna see my anti driveby?

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER)
    {
        SetPlayerArmedWeapon(playerid, 0);
    }
    return 1;
}
And this works.
Agreed