hello,

I am making a code that disable's usage of the barret in stand and crouch position.

Code:
barretalleenliggend()
{
self endon("disconnect");
 self endon("death");
  for(;;)
   {
    currentweapon = self getCurrentWeapon();
    if(currentweapon == "barrett_mp" && self getstance() != "prone")
      {
	  self _disableWeapon();
	  }
 else
      {
	  self _enableWeapon();
      }
	  wait 0.4;
 }
  wait 0.4;
}
Only thing is it just keeps enable and disable the weapon not 1 time.

i already tried with remove the ammo but resetting the ammo again is hard for me.