..................................................................................................*.
.......RR.......RRRRRRRRRRR.rRRR........RRRRRRRRRRRuRRl.......RRR.....eRRRRRRRu....RRR.......RRRr...
......RRRR......RRRRRRRRRRE.aRRR........RRRRRRRRRRRrRRRR....RRRRa.....RRRRRRRRRR...RRRl......RRRZ...
......RRRR............RRRl..URRR........RRRr.........RRRE..zRRRr......RRRR..rRRRR..RRRr......RRRz...
.....RRR.RRU.........RRR....YRRR........RRR...........RRR..RRR........RRRR....RRR..RRRr......RRRz...
....RRR..RRR........rRRL....uRRR........RRRRRRRRRR.....RRRRRR.........RRRRrrzRRRR..RRRr......RRRz...
...RRR....RRR.......RRR.....YRRR........RRRRRRRRRR......RRRR..........RRRRRRRRRR...RRRr......RRRz...
...RRRRRRRRRR.....YRRR......YRRR........RRR.............RRRR..........RRRRRRRRR....RRR.......RRRz...
..RRRRRRRRRRRR...rRRR.......YRRR........RRR.............RRRR...ERRE...RRRR..eRRR...RRRR.....rRRRE...
..RRR......RRR...RRRRRRRRRR.LRRRRRRRRR..RRRRRRRRRRR.....RRRR..rRRRRY..RRRR...RRRR..RRRRRRRRRRRRRr...
.RRRa......zRRRlRRRRRRRRRRR.rRRRRRRRRR..RRRRRRRRRRR.....RRRR...RRRR...RRRR....rRRRu..RRRRRRRRRL.....
....................................................................................................
....................................................................................................
....................................................................................................
.............__________________________________________.............................................
............|                                          | ...........*BY 2GariN......................
............|    http://AzleY.Ru - файлы для           |............................................
............|                                          | ...........................................
............|    CS:Source и Сервера                   |............................................
............|__________________________________________|............................................
....................................................................................................
.............................Статьи.................................................................
.................................................................Модели.............................
..............Скрипты.......................SourceMods..............................Помощь..........
....................................................................................................
.................................Моды................................Программы......................
....................................................................................................
....................................................................................................
.........Спреи................................Фоны для меню.........................................
.....................EventScrips................................................Конфиги.............
....................................................................................................
// SkinRanks by Di[M]aN & LezZzvie (2GariN) based on 3R10N's SkinRanks
// Скины для разных рангов игроков от Di[M]aN & LezZzvie (2GariN), основанные на скрипте SkinRanks от 
// 3R10N (если я не ошибаюсь:)

//Настройки
block config
{
  es_setinfo killmsg 1 // Показывать при каждом респауне, сколько игрок убил.
  es_setinfo advert 1 // Показывать рекламу при входе на серер.
// Количество убийств для получения того или иного звания, скина
// Разное для КТ и Т
//ДЛя КТ: 
  es_setinfo ct_kils_1 10
  es_setinfo ct_kils_2 25
  es_setinfo ct_kils_3 40
  es_setinfo ct_kils_4 60
// ДЛя Т
  es_setinfo t_kils_1 10
  es_setinfo t_kils_2 25
  es_setinfo t_kils_3 40
  es_setinfo t_kils_4 60
// Названия званий для игроков
// Для КТ
  es_setinfo t_1zvan_name "Сержант"
  es_setinfo t_2zvan_name "Лейтенант"
  es_setinfo t_3zvan_name "Капитан"
  es_setinfo t_4zvan_name "Майор"
// Для Т
  es_setinfo ct_1zvan_name "Сержант"
  es_setinfo ct_2zvan_name "Лейтенант"
  es_setinfo ct_3zvan_name "Капитан"
  es_setinfo ct_4zvan_name "Майор"
// Для игрока с фрагами, кол-во которых меньше первого звания  
  es_setinfo 0_zvan "Рядовой"
}

block load
{
es_msg #multi #green[#defaultRankS#green] #lightgreenВключено
es_doblock skin_ranks/config
}

block load
{
es_msg #multi #green[#defaultRankS#green] #lightgreenВыключено
}

event player_connect
{
// *** Модели и материалы ***
// ** Контр-террористы ***
// Delta Counter Terrorist
es downloadable models/player/skitz/ct_rank_delta_v1/urban.mdl
es downloadable models/player/skitz/ct_rank_delta_v1/urban.phy
es downloadable models/player/skitz/ct_rank_delta_v1/urban.dx90.vtx
es downloadable models/player/skitz/ct_rank_delta_v1/urban.dx80.vtx
es downloadable models/player/skitz/ct_rank_delta_v1/urban.sw.vtx
es downloadable models/player/skitz/ct_rank_delta_v1/urban.vvd
es downloadable materials/models/player/skitz/ct_rank_delta_v1/ct_urban.vmt
es downloadable materials/models/player/skitz/ct_rank_delta_v1/ct_urban.vtf
es downloadable materials/models/player/skitz/ct_rank_delta_v1/ct_urban_glass.vmt
es downloadable materials/models/player/skitz/ct_rank_delta_v1/ct_urban_glass.vtf
// Private Counter Terrorist
es downloadable models/player/skitz/ct_rank_private_v1/urban.mdl
es downloadable models/player/skitz/ct_rank_private_v1/urban.phy
es downloadable models/player/skitz/ct_rank_private_v1/urban.dx90.vtx
es downloadable models/player/skitz/ct_rank_private_v1/urban.dx80.vtx
es downloadable models/player/skitz/ct_rank_private_v1/urban.vvd
es downloadable models/player/skitz/ct_rank_private_v1/urban.sw.vtx
es downloadable materials/models/player/skitz/ct_rank_private_v1/ct_urban.vmt
es downloadable materials/models/player/skitz/ct_rank_private_v1/ct_urban.vtf
// Sergeant Counter Terrorist
es downloadable models/player/skitz/ct_rank_sergeant_v1/urban.mdl
es downloadable models/player/skitz/ct_rank_sergeant_v1/urban.phy
es downloadable models/player/skitz/ct_rank_sergeant_v1/urban.dx90.vtx
es downloadable models/player/skitz/ct_rank_sergeant_v1/urban.dx80.vtx
es downloadable models/player/skitz/ct_rank_sergeant_v1/urban.vvd
es downloadable models/player/skitz/ct_rank_sergeant_v1/urban.sw.vtx
es downloadable materials/models/player/skitz/ct_rank_sergeant_v1/ct_urban.vmt
es downloadable materials/models/player/skitz/ct_rank_sergeant_v1/ct_urban.vtf
// Sergeant Major Counter Terrorist
es downloadable models/player/skitz/ct_rank_sergeant_major_v1/urban.mdl
es downloadable models/player/skitz/ct_rank_sergeant_major_v1/urban.phy
es downloadable models/player/skitz/ct_rank_sergeant_major_v1/urban.dx90.vtx
es downloadable models/player/skitz/ct_rank_sergeant_major_v1/urban.dx80.vtx
es downloadable models/player/skitz/ct_rank_sergeant_major_v1/urban.vvd
es downloadable models/player/skitz/ct_rank_sergeant_major_v1/urban.sw.vtx
es downloadable materials/models/player/skitz/ct_rank_sergeant_major_v1/ct_urban.vmt
es downloadable materials/models/player/skitz/ct_rank_sergeant_major_v1/ct_urban.vtf
// *** Террористы ***
// Butcher Rouvix Terrorist
es downloadable models/player/skitz/ts_rank_butcher_rouvix_v1/terror.mdl
es downloadable models/player/skitz/ts_rank_butcher_rouvix_v1/terror.phy
es downloadable models/player/skitz/ts_rank_butcher_rouvix_v1/terror.dx90.vtx
es downloadable models/player/skitz/ts_rank_butcher_rouvix_v1/terror.dx80.vtx
es downloadable models/player/skitz/ts_rank_butcher_rouvix_v1/terror.vvd
es downloadable models/player/skitz/ts_rank_butcher_rouvix_v1/terror.sw.vtx
es downloadable materials/models/player/skitz/ts_rank_butcher_rouvix_v1/t_phoenix.vmt
es downloadable materials/models/player/skitz/ts_rank_butcher_rouvix_v1/t_phoenix.vtf
// Murderer Terrorist
es downloadable models/player/skitz/ts_rank_murderer_v1/terror.mdl
es downloadable models/player/skitz/ts_rank_murderer_v1/terror.phy
es downloadable models/player/skitz/ts_rank_murderer_v1/terror.dx90.vtx
es downloadable models/player/skitz/ts_rank_murderer_v1/terror.dx80.vtx
es downloadable models/player/skitz/ts_rank_murderer_v1/terror.vvd
es downloadable models/player/skitz/ts_rank_murderer_v1/terror.sw.vtx
es downloadable materials/models/player/skitz/ts_rank_murderer_v1/t_phoenix.vmt
es downloadable materials/models/player/skitz/ts_rank_murderer_v1/t_phoenix.vtf
// Serial Killer Terrorist
es downloadable models/player/skitz/ts_rank_serial_killer_v1/terror.mdl
es downloadable models/player/skitz/ts_rank_serial_killer_v1/terror.phy
es downloadable models/player/skitz/ts_rank_serial_killer_v1/terror.dx90.vtx
es downloadable models/player/skitz/ts_rank_serial_killer_v1/terror.dx80.vtx
es downloadable models/player/skitz/ts_rank_serial_killer_v1/terror.vvd
es downloadable models/player/skitz/ts_rank_serial_killer_v1/terror.sw.vtx
es downloadable materials/models/player/skitz/ts_rank_serial_killer_v1/t_phoenix.vmt
es downloadable materials/models/player/skitz/ts_rank_serial_killer_v1/t_phoenix.vtf
// Spetsnaz Terrorist
es downloadable models/player/skitz/ts_rank_spetsnaz_v1/terror.mdl
es downloadable models/player/skitz/ts_rank_spetsnaz_v1/terror.phy
es downloadable models/player/skitz/ts_rank_spetsnaz_v1/terror.dx90.vtx
es downloadable models/player/skitz/ts_rank_spetsnaz_v1/terror.dx80.vtx
es downloadable models/player/skitz/ts_rank_spetsnaz_v1/terror.vvd
es downloadable models/player/skitz/ts_rank_spetsnaz_v1/terror.sw.vtx
es downloadable materials/models/player/skitz/ts_rank_spetsnaz_v1/t_phoenix.vmt
es downloadable materials/models/player/skitz/ts_rank_spetsnaz_v1/t_phoenix.vtf
}

event player_activate
{
	  if (server_var(advert) == 1) do
		{
		es_delayed 5.0 es_tell event_var(userid) #multi #defaultСервер использует #lightgreenSkinRanks. #defaultУбивайте противника и повышайтесь в звании!
		}
}

event player_spawn
{
	es_tell event_var(userid) #multi #default----------[#lightgreenSkinRankS Статистика#default]----------
	
	if (event_var(es_userteam) == 3) do
	{
		es_set k 0
		es est_GetKills k event_var(userid)
		if (server_var(k) >= server_var(ct_kils_4)) do
			{
			es est_SetModel event_var(userid) player/skitz/ct_rank_delta_v1/urban
				es est_SetPlayerColor event_var(userid) 255 255 255 255 1
				{
				if (server_var(killmsg) == 1) do
					{
					es_tell event_var(userid) #multi #green Ваши очки server_var(k). Ваше звание: #lightgreen server_var(ct_4zvan_name) #green****
					}
				}
			}
	}
	if (event_var(es_userteam) == 3) do
	{
		es_set k 0
		es est_GetKills k event_var(userid)
		if (server_var(k) >= server_var(ct_kils_2)) do
		{
			if (server_var(k) < server_var(ct_kils_3)) do
			{
			es est_SetModel event_var(userid) player/skitz/ct_rank_sergeant_v1/urban
				es est_SetPlayerColor event_var(userid) 255 255 255 255 1
			{
				if (server_var(killmsg) == 1) do
				{
				es_tell event_var(userid) #multi #green Ваши очки server_var(k). Ваше звание: #lightgreen server_var(ct_2zvan_name) #green**
				}
			}
		}
	}
	if (event_var(es_userteam) == 3) do
	{
		es_set k 0
		es est_GetKills k event_var(userid)
		if (server_var(k) >= server_var(ct_kils_1)) do
		{
			if (server_var(k) < server_var(ct_kils_2)) do
				{
				es est_SetModel event_var(userid) player/skitz/ct_rank_private_v1/urban
				es est_SetPlayerColor event_var(userid) 255 255 255 255 1
	{
						if (server_var(killmsg) == 1) do
						{
						es_tell event_var(userid) #multi #green Ваши очки server_var(k). Ваше звание: #lightgreen server_var(ct_1zvan_name) #green*
						}
					}
				}
		}
	}
if (event_var(es_userteam) == 3) do
	{
		es_set k 0
		es est_GetKills k event_var(userid)
		if (server_var(k) >= server_var(ct_kils_3)) do
		{
			if (server_var(k) < server_var(ct_kils_4)) do
				{
				es est_SetModel event_var(userid) player/skitz/ct_rank_sergeant_major_v1/urban
				es est_SetPlayerColor event_var(userid) 255 255 255 255 1
					{
					if (server_var(killmsg) == 1) do
						{
						es_tell event_var(userid) #multi #green Ваши очки server_var(k). Ваше звание: #lightgreen server_var(ct_3zvan_name) #green***
						}
					}
				}
		}
	}
	if (event_var(es_userteam) == 3) do
		{
		es_set k 0
		es est_GetKills k event_var(userid)
		if (server_var(k) < server_var(ct_kils_1)) do
			{
			if (server_var(killmsg) == 1) do
				{
				es_tell event_var(userid) #multi #green Ваши очки server_var(k). Ваше звание: #lightgreen server_var(0_zvan)
				}
			}
		}

	}
	if (event_var(es_userteam) == 2) do
	{
		es_set k 0
		es est_GetKills k event_var(userid)
		if (server_var(k) < server_var(t_kils_1)) do
			{
			if (server_var(killmsg) == 1) do
				{
				es_tell event_var(userid) #multi #green Ваши очки server_var(k). Ваше звание: #lightgreen server_var(0_zvan)
				}
			}
	}

	if (event_var(es_userteam) == 2) do
	{
		es_set k 0
		es est_GetKills k event_var(userid)
		if (server_var(k) >= server_var(t_kils_1)) do
		{
			if (server_var(k) < server_var(t_kils_2)) do
			{
			es est_SetModel event_var(userid) player/skitz/ts_rank_murderer_v1/terror
				es est_SetPlayerColor event_var(userid) 255 255 255 255 1
						{
			if (server_var(killmsg) == 1) do
				{
				es_tell event_var(userid) #multi #green Ваши очки server_var(k). Ваше звание: #lightgreen server_var(t_1zvan_name) #green*
				}
			}
}
		}
	}
	if (event_var(es_userteam) == 2) do
	{
		es_set k 0
		es est_GetKills k event_var(userid)
		if (server_var(k) >= server_var(t_kils_2)) do
		{
			if (server_var(k) < server_var(t_kils_3)) do
			{
			es est_SetModel event_var(userid) player/skitz/ts_rank_serial_killer_v1/terror
				es est_SetPlayerColor event_var(userid) 255 255 255 255 1
{
			if (server_var(killmsg) == 1) do
				{
				es_tell event_var(userid) #multi #green Ваши очки server_var(k). Ваше звание: #lightgreen server_var(t_2zvan_name) #green**
				}
			}
			}
		}
	}
	if (event_var(es_userteam) == 2) do
	{
		es_set k 0
		es est_GetKills k event_var(userid)
		if (server_var(k) >= server_var(t_kils_3)) do
		{
			if (server_var(k) < server_var(t_kils_4)) do
			{
			es est_SetModel event_var(userid) player/skitz/ts_rank_butcher_rouvix_v1/terror
				es est_SetPlayerColor event_var(userid) 255 255 255 255 1
			{
			if (server_var(killmsg) == 1) do
				{
				es_tell event_var(userid) #multi #green Ваши очки server_var(k). Ваше звание: #lightgreen server_var(t_3zvan_name) #green***
				}
			}
			}
		}
	}
	if (event_var(es_userteam) == 2) do
	{
		es_set k 0
		es est_GetKills k event_var(userid)
		if (server_var(k) >= server_var(ct_kils_4)) do
		{
		es est_SetModel event_var(userid) player/skitz/ts_rank_spetsnaz_v1/terror
				es est_SetPlayerColor event_var(userid) 255 255 255 255 1
			{
			if (server_var(killmsg) == 1) do
				{
				es_tell event_var(userid) #multi #green Ваши очки server_var(k). Ваше звание: #lightgreen server_var(t_4zvan_name) #green****
				}
			}
		}
	}
}
