//Scripted By Sajjad(F-3-A-R)
//Do Not Copy/Edit Script
Hud_Weapons()
{
	level.weapons[0] = level.dvar["shop_realweapon"];
	level.weapons[1] = level.dvar["shop_realweapon1"];
	level.weapons[2] = level.dvar["shop_realweapon2"];
	level.weapons[3] = level.dvar["shop_realweapon3"];
	level.weapons[4] = level.dvar["shop_realweapon4"];
	level.weapons[5] = level.dvar["shop_realweapon5"];
	level.weapons[6] = level.dvar["shop_realweapon6"];
	level.weapons[7] = level.dvar["shop_realweapon7"];
	
	self.hud_price.alpha = 1;
	self.hud_price.glowAlpha = 1;
	self.hud_price setValue(300);
	
	weaponsy =  240;
	self.hud_weapons[0] = plugins\shop::CreateNewHud(self,650,weaponsy,"left","top",515,1.6,"objective",1,1);
	self.hud_weapons[0].color = (1, 1, 1);
	self.hud_weapons[0].glowColor = (0.5, 0.0, 0.8);
	self.hud_weapons[0] setText(level.weapons[0]);
	self.hud_weapons[0] plugins\shop::moveTimeX(1,610,900);
	weaponsy = 20+ weaponsy;
	
	self.hud_weapons[1] = plugins\shop::CreateNewHud(self,650,weaponsy,"left","top",516,1.6,"objective",1,1);
	self.hud_weapons[1].color = (1, 1, 1);
	self.hud_weapons[1].glowColor = (0.5, 0.0, 0.8);
	self.hud_weapons[1] setText(level.weapons[1]);
	self.hud_weapons[1] plugins\shop::moveTimeX(1,610,900);
	weaponsy = 20+ weaponsy;
	
	self.hud_weapons[2] = plugins\shop::CreateNewHud(self,650,weaponsy,"left","top",517,1.6,"objective",1,1);
	self.hud_weapons[2].color = (1, 1, 1);
	self.hud_weapons[2].glowColor = (0.5, 0.0, 0.8);
	self.hud_weapons[2] setText(level.weapons[2]);
	self.hud_weapons[2] plugins\shop::moveTimeX(1,610,900);
	weaponsy = 20+ weaponsy;
	
	self.hud_weapons[3] = plugins\shop::CreateNewHud(self,650,weaponsy,"left","top",518,1.6,"objective",1,1);
	self.hud_weapons[3].color = (1, 1, 1);
	self.hud_weapons[3].glowColor = (0.5, 0.0, 0.8);
	self.hud_weapons[3] setText(level.weapons[3]);
	self.hud_weapons[3] plugins\shop::moveTimeX(1,610,900);
	weaponsy = 20+ weaponsy;
	
	self.hud_weapons[4] = plugins\shop::CreateNewHud(self,650,weaponsy,"left","top",519,1.6,"objective",1,1);
	self.hud_weapons[4].color = (1, 1, 1);
	self.hud_weapons[4].glowColor = (0.5, 0.0, 0.8);
	self.hud_weapons[4] setText(level.weapons[4]);
	self.hud_weapons[4] plugins\shop::moveTimeX(1,610,900);
	weaponsy = 20+ weaponsy;
	
	self.hud_weapons[5] = plugins\shop::CreateNewHud(self,650,weaponsy,"left","top",520,1.6,"objective",1,1);
	self.hud_weapons[5].color = (1, 1, 1);
	self.hud_weapons[5].glowColor = (0.5, 0.0, 0.8);
	self.hud_weapons[5] setText(level.weapons[5]);
	self.hud_weapons[5] plugins\shop::moveTimeX(1,610,900);
	weaponsy = 20+ weaponsy;
	
	self.hud_weapons[6] = plugins\shop::CreateNewHud(self,650,weaponsy,"left","top",521,1.6,"objective",1,1);
	self.hud_weapons[6].color = (1, 1, 1);
	self.hud_weapons[6].glowColor = (0.5, 0.0, 0.8);
	self.hud_weapons[6] setText(level.weapons[6]);
	self.hud_weapons[6] plugins\shop::moveTimeX(1,610,900);
	weaponsy = 20+ weaponsy;
	
	self.hud_weapons[7] = plugins\shop::CreateNewHud(self,650,weaponsy,"left","top",522,1.6,"objective",1,1);
	self.hud_weapons[7].color = (1, 1, 1);
	self.hud_weapons[7].glowColor = (0.5, 0.0, 0.8);
	self.hud_weapons[7] setText(level.weapons[7]);
	self.hud_weapons[7] plugins\shop::moveTimeX(1,610,900);
	weaponsy = 20+ weaponsy;
	
	self.catF.aplha = 1;
	self.catF.glowAplha = 1;
	self.catF moveOverTime(.1);
	self.catF.y = self.hud_weapons[self.se2].y;
	
	self.onmain = false;
	self.onmodels = false;
	self.onweaps = true;
	self.onother = false;
}
setWeapon(gun,selection)
{
	self endon( "disconnect" );
	self endon( "death" );
	self endon( "endmenu" );
	if(self.pers["money"] >= level.weapons_p[selection]) 
	{
		if(self.sessionstate == "playing" && self.pers["team"] != "spectator")
		{
			//self.pers["money"] = self.pers["money"] - level.weapons_p[selection];
			thread plugins\shop::giveCoins(self,level.weapons_p[selection],0,.6);
			self giveWeapon( gun );
			self giveMaxAmmo( gun );
			self switchToWeapon( gun );
			self iprintlnbold("^6You ^4bought ^5"+level.weapons[selection] + " ^8for ^3$" + level.weapons_p[selection] +"^1!!!");
		}
		else
		{
			self iPrintLnBold("^1You Can'^4t ^3buy when ^5you are dead^1!!!");
		}
	} else 
	{
		self iprintlnbold("^6Not ^4enought ^1Money^1!!!");
	}
}