18.11.2012, 16:13
I wanted to disable drive by because of all the gun abuse. People can kill other people faster. Well I did not want to totally disable the Uzi/MP5/Tech9 and M4/AK47. So this is what I did.
It doesn't allow the driver to have a weapon. 
Next,
It allows M4 or AK47 even if I used the M4 weapon id. See now I tried adding the ID of the Uzi and it didn't work.
I tried it many ways. Here is one way.
I really don't know. How can I make it allow the M4 and Uzi?
Код:
if( newstate == PLAYER_STATE_DRIVER ) { SetPlayerArmedWeapon( playerid, 0 ); }

Next,
Код:
if( newstate == PLAYER_STATE_PASSENGER ) { SetPlayerArmedWeapon( playerid, 31 ); }
I tried it many ways. Here is one way.
Код:
if( newstate == PLAYER_STATE_PASSENGER ) { SetPlayerArmedWeapon( playerid, 31 ) && SetPlayerArmedWeapon( playerid, 28 ); }