SA-MP Forums Archive
Help. - 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: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help. (/showthread.php?tid=344966)



Help. - HighPitchedVoice - 23.05.2012

How can I disable deagle drive-by as passanger of a vehicle? :S


Re: Help. - zbt - 23.05.2012

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate) {
    if(newstate & PLAYER_STATE_PASSENGER) {
        if(GetPlayerWeapon(playerid) == 24) {
            SetPlayerArmedWeapon(playerid, 0);
        }
    }
    return true;
}