How to disable shooting from vehicles...
#5

put the following code under "OnPlayerStateChange"

Код:
if(newstate == PLAYER_STATE_PASSENGER)
{
SetPlayerArmedWeapon(playerid,0);
}
or if you want to disable driver drive-by too

Код:
if(newstate == PLAYER_STATE_PASSENGER || newstate == PLAYER_STATE_DRIVER)
{
SetPlayerArmedWeapon(playerid,0);
}
Reply


Messages In This Thread
How to disable shooting from vehicles... - by Fjclip99 - 10.01.2015, 15:13
Re: How to disable shooting from vehicles... - by iReacheR - 10.01.2015, 15:26
Re: How to disable shooting from vehicles... - by VishvaJeet - 10.01.2015, 15:44
Re: How to disable shooting from vehicles... - by PowerPC603 - 10.01.2015, 18:37
Re: How to disable shooting from vehicles... - by Garavel - 10.01.2015, 18:49

Forum Jump:


Users browsing this thread: 3 Guest(s)