//..................................................................................................*.
//.......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.....
//....................................................................................................
//....................................................................................................
//....................................................................................................
//.............__________________________________________.............................................
//::::::::::::|                                          | :::::::::::------EVENTSCRIPTS-----:::::::::
//............|    http://AzleY.Ru - файлы для           |............................................
//............|                                          | ...........................................
//............|    CS:Source и Сервера                   |.................*BY 2GariN.................
//............|__________________________________________|............................................
//....................................................................................................
//.............................Статьи.................................................................
//.................................................................Модели.............................
//..............Скрипты.......................SourceMods..............................Помощь..........
//....................................................................................................
//.................................Моды................................Программы......................
//....................................................................................................
//....................................................................................................
//.........Спреи................................Фоны для меню.........................................
//.....................EventScrips................................................Конфиги.............
//....................................................................................................
//
// SvinO.oREZ (by 2Garin)
// Если Вы убиваете противника ножжом, то Вам выдается скин с надписью на спине
// "Свинорез" Наслаждайтесь!
//
//Версия 2.0 (тестовая)
//Требования:
//	* Eventscripts 2.0 или выше
//      * ES_Tools v. 420
//
//Установка:
//	*Распаковать файлы по соответсвующим папкам
//	*Прописать es_load svinorez2g в autoexec.cfg
//	*Перезапустить сервер
//
//Специально по запросу Sniper100 =)
// Благодарность:
// Sniper100 за идею и модели...
// RANLI за тест и моральную поддержку XD
//***************************************
//

block load
{
  es_xmsg #multi #lightgreen[SvinO.oREZ] #default Включен! #green:)
  es_doblock svinorez2g/config
}

event player_connect
{
// * Загрузка моделей *
es downloadable models\player\ics\ct_gign_kking\ct_gign.dx80.vtx
es downloadable models\player\ics\ct_gign_kking\ct_gign.dx90.vtx
es downloadable models\player\ics\ct_gign_kking\ct_gign.mdl
es downloadable models\player\ics\ct_gign_kking\ct_gign.phy
es downloadable models\player\ics\ct_gign_kking\ct_gign.sw.vtx
es downloadable models\player\ics\ct_gign_kking\ct_gign.vvd
es downloadable models\player\ics\t_leet_kking\t_leet.dx80.vtx
es downloadable models\player\ics\t_leet_kking\t_leet.dx90.vtx
es downloadable models\player\ics\t_leet_kking\t_leet.mdl
es downloadable models\player\ics\t_leet_kking\t_leet.phy
es downloadable models\player\ics\t_leet_kking\t_leet.sw.vtx
es downloadable models\player\ics\t_leet_kking\t_leet.vvd
es downloadable materials\models\player\ics\ct_gign_kking\ct_gign.vmt
es downloadable materials\models\player\ics\ct_gign_kking\ct_gign.vtf
es downloadable materials\models\player\ics\ct_gign_kking\ct_gign_glass.vmt
es downloadable materials\models\player\ics\t_leet_kking\t_leet.vmt
es downloadable materials\models\player\ics\t_leet_kking\t_leet.vtf
es downloadable materials\models\player\ics\t_leet_kking\t_leet_glass.vmt
//-=-=-==-КонеЦ=-=-=--=--
}

block config
{
//Сообщения
  es_setinfo new_svin "Яйца толстому кабану привязать узлом к бревну!" // Пишется всем игрокам, когда кого либо закобанят
  es_setinfo svinorez "Ты настоящий #greenСВИНОРЕЗ!!!" //Пишется игроку, который зарезал...
  es_setinfo lose_msg "Кабан, хрюкай! =)" //Пишется "жертве" или же "кабану" )
  es_setinfo fun_msg2 "Хрю-Хрюююю..." // Пишется от имени "закабаненного игрока"
  es_setinfo fun_msg "WTF?!Я КабанчеГ XD" // Как и предыдущее, но просто допонительно сообщение
  es_setinfo msgfun1 0 //включает первое сообщение см пред. 2 пункта
  es_setinfo msgfun2 1 ////включает второе сообщение
}

event player_death
{
	if (event_var(es_attackerteam) notequalto event_var(es_userteam)) do
	{
		if(event_var(es_attackerweapon) == weapon_knife) do
		{
			if (event_var(es_attackerteam) == 3) do
			{
			es est_SetModel event_var(attacker) player\ics\ct_gign_kking\ct_gign.mdl
                        es est_SetPlayerColor event_var(attacker) 255 255 255 255 1
			es_tell event_var(attacker) #multi #lightgreen server_var(svinorez)
			es_msg #multi #green server_var(new_svin) 
			es_msg #multi #lightgreen event_var(es_attackername) #green ---ЗакабаниЛ--->#lightgreen event_var(es_username)
			es_tell event_var(userid) #multi #green server_var(lose_msg)
			if (server_var(msgfun1) equalto 1) then es_delayed 3.1 es_sexec event_var(userid) say server_var(fun_msg)
			if (server_var(msgfun2) equalto 1) then es_delayed 5.1 es_sexec event_var(userid) say server_var(fun_msg2)
			}
			if (event_var(es_attackerteam) == 2) do
			{
			es est_SetModel event_var(attacker) player\ics\t_leet_kking\t_leet.mdl
                        es est_SetPlayerColor event_var(attacker) 255 255 255 255 1
			es_tell event_var(attacker) #multi #lightgreen server_var(svinorez)
			es_msg #multi #green server_var(new_svin) 
			es_msg #multi #lightgreen event_var(es_attackername) #green ---ЗакабаниЛ--->#lightgreen event_var(es_username)
			es_tell event_var(userid) #multi #green server_var(lose_msg)
			if (server_var(msgfun1) equalto 1) then es_delayed 3.1 es_sexec event_var(userid) say server_var(fun_msg)
			if (server_var(msgfun2) equalto 1) then es_delayed 5.1 es_sexec event_var(userid) say server_var(fun_msg2)
			}
		}
	}
}

block load
{
  es_xmsg #multi #lightgreen[SvinO.oREZ] #default Выключен! #green:(
}

event player_activate
	{
	es_tell event_var(userid) #multi #green --------#lightgreenINFO#green-------------
	es_tell event_var(userid) #multi  #default Сервер использует скрипт #lightgreen СВИНОРЕЗ #defaultby #lightgreen 2GariN
	es_tell event_var(userid) #multi #green -------#lightgreenAzleY.Ru#green----------
	}