12.08.2011, 13:00
Quote:
https://sampwiki.blast.hk/wiki/SetPlayerArmedWeapon on OnPlayerStateChange should do the trick.
|
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if( newstate == PLAYER_STATE_DRIVER || PLAYER_STATE_PASSENGER )
{
SetPlayerArmedWeapon( playerid, 0 );
}
return 1;
}
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if( newstate == PLAYER_STATE_DRIVER )
{
SetPlayerArmedWeapon( playerid, 0 );
}
return 1;
}