Drive-by Restriction [HELP]
#1

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.
Код:
if( newstate == PLAYER_STATE_DRIVER )
{
      SetPlayerArmedWeapon( playerid, 0 );
}
It doesn't allow the driver to have a weapon.

Next,
Код:
if( newstate == PLAYER_STATE_PASSENGER )
{
      SetPlayerArmedWeapon( playerid, 31 );
}
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.

Код:
if( newstate == PLAYER_STATE_PASSENGER )
{
      SetPlayerArmedWeapon( playerid, 31 ) && SetPlayerArmedWeapon( playerid, 28 );
}
I really don't know. How can I make it allow the M4 and Uzi?
Reply


Messages In This Thread
Drive-by Restriction [HELP] - by Sting. - 18.11.2012, 16:13
Re: Drive-by Restriction [HELP] - by Riddick94 - 18.11.2012, 17:43
Re: Drive-by Restriction [HELP] - by EliteApple - 18.11.2012, 19:45
Re: Drive-by Restriction [HELP] - by Sting. - 19.11.2012, 06:23
Re: Drive-by Restriction [HELP] - by iggy1 - 19.11.2012, 07:22
Re: Drive-by Restriction [HELP] - by Sting. - 19.11.2012, 12:01

Forum Jump:


Users browsing this thread: 2 Guest(s)