12.08.2011, 12:54
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!
https://sampwiki.blast.hk/wiki/SetPlayerArmedWeapon on OnPlayerStateChange should do the trick.
|
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if( newstate == PLAYER_STATE_DRIVER || PLAYER_STATE_PASSENGER )
{
SetPlayerArmedWeapon( playerid, 0 );
}
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if( newstate == PLAYER_STATE_DRIVER )
{
SetPlayerArmedWeapon( playerid, 0 );
}
return 1;
}