No Drive-by Guns
#3

Quote:
Originally Posted by [HiC]TheKiller
Посмотреть сообщение
https://sampwiki.blast.hk/wiki/SetPlayerArmedWeapon on OnPlayerStateChange should do the trick.
PASSENGER OR DRIVER
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if( newstate == PLAYER_STATE_DRIVER || PLAYER_STATE_PASSENGER )
    {
        SetPlayerArmedWeapon( playerid, 0 );
    }
    return 1;
}
DRIVER
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if( newstate == PLAYER_STATE_DRIVER )
    {
        SetPlayerArmedWeapon( playerid, 0 );
    }
    return 1;
}
^ Example(s)
Reply


Messages In This Thread
No Drive-by Guns - by Sting. - 12.08.2011, 12:54
Re: No Drive-by Guns - by [HiC]TheKiller - 12.08.2011, 12:56
Re: No Drive-by Guns - by Lorenc_ - 12.08.2011, 13:00
Re: No Drive-by Guns - by Riddick94 - 12.08.2011, 13:34

Forum Jump:


Users browsing this thread: 1 Guest(s)