AH, thank you, I didn't know this command.

The fully working code: (In the case someone needs such a code)

Code:
function hud()
{
	//armed = 0 - unarmed
	//armed = 1 - Pistol
	//armed = 2 - Rifle
	//armed = 3 - Shotgun
	PANEL* pistol_muni_pan =
	{
		digits(1450,925,3,"Arial#150b",1,ammo_pistol);
	}
	
	PANEL* rifle_muni_pan =
	{
		digits(1450,925,3,"Arial#150b",1,ammo_rifle);
	}
	
	PANEL* shotgun_muni_pan =
	{
		digits(1450,925,3,"Arial#150b",1,ammo_shotgun);
	}
	
	while(1)
	{
		switch(armed)
		{
			case 1:
			{
				set(pistol_muni_pan, SHOW);
				reset(rifle_muni_pan, SHOW);
				reset(shotgun_muni_pan, SHOW);
				break;
			}
			case 2:
			{
				set(rifle_muni_pan, SHOW);
				reset(pistol_muni_pan, SHOW);
				reset(shotgun_muni_pan, SHOW);
				break;
			}
			
			case 3:
			{
				set(shotgun_muni_pan, SHOW);
				reset(pistol_muni_pan, SHOW);
				reset(rifle_muni_pan, SHOW);
				break;
			}
			
			default:
			reset(pistol_muni_pan, SHOW);
			reset(rifle_muni_pan, SHOW);
			reset(shotgun_muni_pan, SHOW);
			
		}
		wait(1);
	}

}



Thank you,
Shooter


Staub ist das neue Prime!!

Programming is like sex:
One mistake and you have to support it for the rest of your life.

Aktuelles Projekt: http://thisiswargame.bplaced.net/index.html

A8 Commercial *freu*