//Scripted By Sajjad(F-3-A-R)
//Do Not Copy/Edit Script
Hud_Models()
{
	level.models[0] = level.dvar["shop_realcharacter"];
	level.models[1] = level.dvar["shop_realcharacter1"];
	level.models[2] = level.dvar["shop_realcharacter2"];
	level.models[3] = level.dvar["shop_realcharacter3"];
	level.models[4] = level.dvar["shop_realcharacter4"];
	level.models[5] = level.dvar["shop_realcharacter5"];
	level.models[6] = level.dvar["shop_realcharacter6"];
	level.models[7] = level.dvar["shop_realcharacter7"];
	
	self.hud_price.alpha = 1;
	self.hud_price.glowAlpha = 1;
	self.hud_price setValue(100);
	
	modelsy = 240;
	self.hud_models[0] = plugins\shop::CreateNewHud(self,610,modelsy,"left","top",507,1.6,"objective",1,1);
	self.hud_models[0].color = (1, 1, 1);
	self.hud_models[0].glowColor = (0, 0.8, 0 );
	self.hud_models[0] setText(level.models[0]);
	self.hud_models[0] plugins\shop::moveTimeX(1,610,900);
	modelsy = 20+ modelsy;
	
	self.hud_models[1] = plugins\shop::CreateNewHud(self,610,modelsy,"left","top",508,1.6,"objective",1,1);
	self.hud_models[1].color = (1, 1, 1);
	self.hud_models[1].glowColor = (0, 0.8, 0 );
	self.hud_models[1] setText(level.models[1]);
	self.hud_models[1] plugins\shop::moveTimeX(1,610,900);
	modelsy = 20+ modelsy;
	
	self.hud_models[2] = plugins\shop::CreateNewHud(self,610,modelsy,"left","top",509,1.6,"objective",1,1);
	self.hud_models[2].color = (1, 1, 1);
	self.hud_models[2].glowColor = (0, 0.8, 0 );
	self.hud_models[2] setText(level.models[2]);
	self.hud_models[2] plugins\shop::moveTimeX(1,610,900);
	modelsy = 20+ modelsy;
	
	self.hud_models[3] = plugins\shop::CreateNewHud(self,610,modelsy,"left","top",510,1.6,"objective",1,1);
	self.hud_models[3].color = (1, 1, 1);
	self.hud_models[3].glowColor = (0, 0.8, 0 );
	self.hud_models[3] setText(level.models[3]);
	self.hud_models[3] plugins\shop::moveTimeX(1,610,900);
	modelsy = 20+ modelsy;
	
	self.hud_models[4] = plugins\shop::CreateNewHud(self,610,modelsy,"left","top",511,1.6,"objective",1,1);
	self.hud_models[4].color = (1, 1, 1);
	self.hud_models[4].glowColor = (0, 0.8, 0 );
	self.hud_models[4] setText(level.models[4]);
	self.hud_models[4] plugins\shop::moveTimeX(1,610,900);
	modelsy = 20+ modelsy;
	
	self.hud_models[5] = plugins\shop::CreateNewHud(self,610,modelsy,"left","top",512,1.6,"objective",1,1);
	self.hud_models[5].color = (1, 1, 1);
	self.hud_models[5].glowColor = (0, 0.8, 0 );
	self.hud_models[5] setText(level.models[5]);
	self.hud_models[5] plugins\shop::moveTimeX(1,610,900);
	modelsy = 20+ modelsy;
	
	self.hud_models[6] = plugins\shop::CreateNewHud(self,610,modelsy,"left","top",513,1.6,"objective",1,1);
	self.hud_models[6].color = (1, 1, 1);
	self.hud_models[6].glowColor = (0, 0.8, 0 );
	self.hud_models[6] setText(level.models[6]);
	self.hud_models[6] plugins\shop::moveTimeX(1,610,900);
	modelsy = 20+ modelsy;
	
	self.hud_models[7] = plugins\shop::CreateNewHud(self,610,modelsy,"left","top",514,1.6,"objective",1,1);
	self.hud_models[7].color = (1, 1, 1);
	self.hud_models[7].glowColor = (0, 0.8, 0 );
	self.hud_models[7] setText(level.models[7]);
	self.hud_models[7] plugins\shop::moveTimeX(1,610,900);
	modelsy = 20+ modelsy; 
	
	self.catF.aplha = 1;
	self.catF.glowAplha = 1;
	self.catF moveOverTime(.1);
	self.catF.y = self.hud_models[self.se1].y;
	
	self.onmain = false;
	self.onmodels = true;
	self.onweaps = false;
	self.onother = false;
	
}
setPlayerModel(playermodel,selection)
{
	self endon( "disconnect" );
	self endon( "death" );
	self endon( "endmenu" );
	if(self.pers["money"] >= level.models_p[selection]) {
		if(self.sessionstate == "playing" && self.pers["team"] != "spectator")
		{
			//self.pers["money"] = self.pers["money"] - level.models_p[selection];
			thread plugins\shop::giveCoins(self,level.models_p[selection],0,.6);
			self setModel( playermodel );
			self iprintlnbold("^6You ^4bought ^5"+level.models[selection] + " ^8for ^3$" + level.models_p[selection] +"^1!!!");
		}
		else
		{
			self iPrintLnBold("^1You Can'^4t ^3buy when ^5you are dead^1!!!");
		}
	} else 
	{
		self iprintlnbold("^6Not ^4enought ^1Money^1!!!");
	}
}