[Tutorial] How to disable drive-by's in SA-MP 0.3c
#1

[TUT] How To Disable Drive-By's In SA-MP 0.3c
Introduction

It's seems that some people (or game-mode styles) don't really go well with allowing the newly added "any weapon drive-by" system. I have decided to take 5 minutes and show you how to do this in SA-MP 0.3c...

COMPLETELY Disabling Drive-By's

pawn Code:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_PASSENGER || newstate == PLAYER_STATE_DRIVER) SetPlayerArmedWeapon(playerid, 0);
    return 1;
}
Explanation
We are simply checking to see if a players state has changed to being either the driver, or passenger, of a vehicle. If they are, we will set their "armed (equipped) weapon" to their fist. I don't think that needs to be explained further, does it?
P.S. I am adding more to this later, this is just a start!
Reply


Messages In This Thread
How to disable drive-by's in SA-MP 0.3c - by Scenario - 19.12.2010, 03:28
Re: How to disable drive-by's in SA-MP 0.3c - by X35B - 19.12.2010, 03:35
Re: How to disable drive-by's in SA-MP 0.3c - by Scenario - 19.12.2010, 03:36
Re: How to disable drive-by's in SA-MP 0.3c - by Stefan_Toretto - 19.12.2010, 05:52
Re: How to disable drive-by's in SA-MP 0.3c - by MestreKiller - 19.12.2010, 12:40
Re: How to disable drive-by's in SA-MP 0.3c - by blackwave - 19.12.2010, 12:45
Re: How to disable drive-by's in SA-MP 0.3c - by Flyfishes - 19.12.2010, 12:50
Re: How to disable drive-by's in SA-MP 0.3c - by Scenario - 19.12.2010, 14:54
Re: How to disable drive-by's in SA-MP 0.3c - by __ - 19.12.2010, 15:05
Re: How to disable drive-by's in SA-MP 0.3c - by ToPhrESH - 22.12.2010, 04:09
Re: How to disable drive-by's in SA-MP 0.3c - by GoldenM4 - 22.12.2010, 04:11
Re: How to disable drive-by's in SA-MP 0.3c - by BittleRyan - 22.12.2010, 07:24
Re: How to disable drive-by's in SA-MP 0.3c - by SkizzoTrick - 22.12.2010, 08:48
Re: How to disable drive-by's in SA-MP 0.3c - by Scenario - 22.12.2010, 15:01
Re: How to disable drive-by's in SA-MP 0.3c - by Mean - 25.12.2010, 16:45
Respuesta: How to disable drive-by's in SA-MP 0.3c - by anonymousx - 26.12.2010, 05:57
Re: Respuesta: How to disable drive-by's in SA-MP 0.3c - by Scenario - 26.12.2010, 15:33
Re: Respuesta: How to disable drive-by's in SA-MP 0.3c - by SkizzoTrick - 27.12.2010, 23:47
Re: Respuesta: How to disable drive-by's in SA-MP 0.3c - by admantis - 27.12.2010, 23:59
Re: How to disable drive-by's in SA-MP 0.3c - by Fool - 28.12.2010, 08:46
Re: How to disable drive-by's in SA-MP 0.3c - by Scenario - 28.12.2010, 17:27
Re: How to disable drive-by's in SA-MP 0.3c - by DVDK - 28.12.2010, 17:55
Re: How to disable drive-by's in SA-MP 0.3c - by Scenario - 28.12.2010, 20:59
Re: How to disable drive-by's in SA-MP 0.3c - by OldDirtyBastard - 01.01.2011, 11:04
Respuesta: Re: Respuesta: How to disable drive-by's in SA-MP 0.3c - by anonymousx - 02.01.2011, 21:25

Forum Jump:


Users browsing this thread: 1 Guest(s)