init()
{
	if (getDvar("g_gametype") == "sd")
	{
	level.oldName = Getdvar( "sv_original_hostname" );
	while(1)
	{
    	newName = level.oldName + "^7[^1H^7U^2N^7] CubI. PromodLive211 ^3Pub ^7Servere. | pwd By clans.hu ^7[^2T^0ámadók^7: ^2" +game["teamScores"]["allies"] + "^7] ^7[^1V^0édők^7: ^1" +game["teamScores"]["axis"] + "^7] " + "^7[^3K^0örök^7: ^3" +game["roundsplayed"] + "^7]";
    	SetDvar( "sv_hostname", newName  );
	wait 1;
	} }



	if (getDvar("g_gametype") == "war")
	{
                level.oldName = Getdvar( "sv_original_hostname" );
	while(1)
	{
	timePassed=(getTime()-level.startTime)/1000/60;
    	newName = level.oldName + "^0[ ^2M^7arines: ^2" +game["teamScores"]["allies"] + " ^0] ^0[ ^2S^0pecnaz: ^2" +game["teamScores"]["axis"] + " ^0] " + "^0[ ^2T^0ime Left: ^2 " + (getdvarint("scr_war_timelimit") - int(timePassed)) + " ^0]";
    	SetDvar( "sv_hostname", newName  );
	wait 1;
	} }
}
