14.12.2010, 17:10
Then script it....
This forces player to use an SMG, Tec9, or Uzi only if they have one, otherwise sets their weapon to fists.
Tested, works great.
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate==PLAYER_STATE_PASSENGER)
{
new gun,tmp;
GetPlayerWeaponData(playerid,4,gun,tmp);
#pragma unused tmp
if(gun)SetPlayerArmedWeapon(playerid,gun);
else SetPlayerArmedWeapon(playerid,0);
}
return 1;
}
Tested, works great.