No Drive-by Guns
#1

Can someone help me on how to remove drive-by guns when you enter the driver's seat.I really don't know how to remove!
Reply
#2

https://sampwiki.blast.hk/wiki/SetPlayerArmedWeapon on OnPlayerStateChange should do the trick.
Reply
#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
#4

Some weapons or all?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)