////////////////////////////////////
//  Csak KS script               //
//       by Anonymous1337   v1.1  //
//ES_ 1.4 vagy magasabb          //



block load
{
	es_setinfo csakkesanonymous1337 1
	es_setinfo csak_kes_anonymous1337 1
	es_setinfo csak_kes_anonymous1337_ver "v1.1"
	es_makepublic kcsak_kes_anonymous1337
	es_makepublic csak_kes_anonymous1337_ver
	es_centermsg A kvetkez krben, csak kst hasznlhatsz!!!
	es_msg #multi #green [Csak KS!]#default Kvetkez krtl csak KST hasznlhatsz!
	es es_xcexec_all play npc/overwatch/radiovoice/attention.wav
}

event map_start
{
	es_setinfo csakkesanonymous1337 1
}

event round_start
{
	es_centermsg Csak kst hasznlhatsz!!!!!
}

event player_spawn
{
	es_give event_var(userid) player_weaponstrip
	es_fire event_var(userid) player_weaponstrip Strip 1
	es_delayed 1 es_give event_var(userid) item_assaultsuit
	es_delayed 1 es_give event_var(userid) weapon_knife
	bot_allow_pistols 0
	bot_allow_grenades 0
	bot_allow_shotguns 0
	bot_allow_rifles 0
	bot_allow_snipers 0
	bot_allow_machine_guns 0
	bot_allow_sub_machine_guns 0
}
	
event round_end
{
	if (server_var(csakkesanonymous1337) = 1) do
	{
		ma_restrict deagle
		ma_restrict galil
		ma_restrict ak47
		ma_restrict scout
		ma_restrict sg552
		ma_restrict awp
		ma_restrict g3sg1
		ma_restrict famas
		ma_restrict m4a1
		ma_restrict aug
		ma_restrict sg550
		ma_restrict glock
		ma_restrict usp
		ma_restrict p228
		ma_restrict elite
		ma_restrict fiveseven
		ma_restrict m3
		ma_restrict xm1014
		ma_restrict mac10
		ma_restrict tmp
		ma_restrict mp5navy
		ma_restrict ump45
		ma_restrict p90
		ma_restrict m249
		es_setinfo p3nknife 0
	}
}

block unload
{
	es_setinfo csak_kes_anonymous1337 0
	es_setinfo csak_kes_anonymous1337_ver 0
	es_makepublic csak_kes_anonymous1337
	es_makepublic csak_kes_anonymous1337_ver
	es_setinfo csakkesanonymous1337 0
	ma_unrestrict deagle
	ma_unrestrict galil
	ma_unrestrict ak47
	ma_unrestrict scout
	ma_unrestrict sg552
	ma_unrestrict awp
	ma_unrestrict g3sg1
	ma_unrestrict famas
	ma_unrestrict m4a1
	ma_unrestrict aug
	ma_unrestrict sg550
	ma_unrestrict glock
	ma_unrestrict usp
	ma_unrestrict p228
	ma_unrestrict elite
	ma_unrestrict fiveseven
	ma_unrestrict m3
	ma_unrestrict xm1014
	ma_unrestrict mac10
	ma_unrestrict tmp
	ma_unrestrict mp5navy
	ma_unrestrict ump45
	ma_unrestrict p90
	ma_unrestrict m249
	bot_allow_pistols 1
	bot_allow_grenades 1
	bot_allow_shotguns 1
	bot_allow_rifles 1
	bot_allow_snipers 1
	bot_allow_machine_guns 1
	bot_allow_sub_machine_guns 1
	es_centermsg Csak KS script kikapcsolva!!!
	es_msg #multi #green [Csak KS!]#default A kvetkez krtl hasznlhatod a fegyvereket!
	es es_xcexec_all play npc/overwatch/radiovoice/attention.wav
}
