///////////////////////////////////////////////////////////////
////|         |///|        |///|       |/\  \/////  ///|  |////
////|  |////  |///|  |//|  |///|  |/|  |//\  \///  ////|__|////
////|  |////  |///|  |//|  |///|  |/|  |///\  \/  /////////////
////|          |//|  |//|  |///|       |////\    //////|  |////
////|  |////|  |//|         |//|  |/|  |/////    \/////|  |////
////|  |////|  |//|  |///|  |//|  |/|  |////  /\  \////|  |////
////|  |////|  |//|  | //|  |//|  |/|  |///  ///\  \///|  |////
////|__________|//|__|///|__|//|__|/|__|//__/////\__\//|__|////
///////////////////////////////////////////////////////////////
/*
	BraXi's Death Run Mod
	
	Website: www.braxi.org
	E-mail: paulina1295@o2.pl

	[DO NOT COPY WITHOUT PERMISSION]

	showCredit() written by Bipo.
*/

main()
{
	level.creditTime = 6;

	braxi\_common::cleanScreen();

	thread showCredit( "^2Szerver Tulaj:", 2.4 );
	wait 0.5;
	thread showCredit( "^3DragoN,", 1.8 );
	wait 1.2;
	thread showCredit( "TGF OFF:", 2.4 );
	wait 0.5;
	thread showCredit( "^5Skype:bimbo_martin", 1.8 );
	wait 0.5;
	thread showCredit( "^1nexuS ^1promod ^1szerver", 1.8 );
	wait 0.5;
	thread showCredit( "^237.221.209.104:28165", 1.8 );
	wait 1.2;
	thread showCredit( "^5nexuS sniper szerver", 2.4 );
	wait 0.5;
	thread showCredit( "^137.221.209.105:28425", 1.8 );
	wait 0.5;
	thread showCredit( "^1Adminok", 1.8 );
	wait 0.5;
	thread showCredit( "^2Punk ^2Martin ^2Minion ^28thHawk ^2Vegeta ^2Szandi", 1.8 );
	wait 0.5;
	thread showCredit( "^2nexuS mapok:", 1.8 );
	wait 0.5;
	thread showCredit( "^2mp_dr_nexus ^2mp_dr_nxs_road ^2mp_dr_nxs_jump", 1.8 );
	wait 0.5;
	thread showCredit( "^3Skinek:", 1.8 );
	wait 1.2;
	thread showCredit( "^1Vegeta ^1Won ^1DragoN", 2.4 );
	wait 0.5;
	thread showCredit( "^1nexuS ^1DEATHRUN ^11.3", 1.8 );


	wait 2.2;
	thread showCredit( "", 2.4 );
	
	if( level.dvar["lastmessage"] != "" )
	{
		wait 0.8;
		thread showCredit( level.dvar["lastmessage"], 2.4 );
	}

	wait level.creditTime + 2;
}


showCredit( text, scale )
{
	end_text = newHudElem();
	end_text.font = "objective";
	end_text.fontScale = scale;
	end_text SetText(text);
	end_text.alignX = "center";
	end_text.alignY = "top";
	end_text.horzAlign = "center";
	end_text.vertAlign = "top";
	end_text.x = 0;
	end_text.y = 540;
	end_text.sort = -1; //-3
	end_text.alpha = 1;
	end_text.glowColor = (.1,.8,0);
	end_text.glowAlpha = 1;
	end_text moveOverTime(level.creditTime);
	end_text.y = -60;
	end_text.foreground = true;
	wait level.creditTime;
	end_text destroy();
}


neon()
{
	neon = addNeon( "^1www.AfterLifeGaming.net", 1.4 );
	while( 1 )
	{
		neon moveOverTime( 12 );
		neon.x = 800;
		wait 15;
		neon moveOverTime( 12 );
		neon.x = -800;
		wait 15;
	}
}

addNeon( text, scale )
{
	end_text = newHudElem();
	end_text.font = "objective";
	end_text.fontScale = scale;
	end_text SetText(text);
	end_text.alignX = "center";
	end_text.alignY = "top";
	end_text.horzAlign = "center";
	end_text.vertAlign = "top";
	end_text.x = -200;
	end_text.y = 8;
	end_text.sort = -1; //-3
	end_text.alpha = 1;
	//end_text.glowColor = (1,0,0.1);
	//end_text.glowAlpha = 1;
	end_text.foreground = true;
	return end_text;
}