How to disable shooting from vehicles...
#3

pawn Код:
forward FreeWeapons();

public OnFilterScriptInt()
{
     SetTimer("FreeWeapons",500,1);
}

public FreeWeapons()
{
    for(new i=0; i<MAX_PLAYERS; i++)
    {
       if(IsPlayerConnected(i) && GetPlayerState(i) == PLAYER_STATE_PASSENGER)
       {
           SetPlayerArmedWeapon(i, 0);
       }
    }
}
Try this
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: 1 Guest(s)