04.06.2014, 04:24
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;
}