block load
{
	es_setinfo "Gabeee Crysis Mod" 1.0
	es_makepublic "Gabeee Crysis Mod"
	es_xmsg #multi #default[ #greenGabeee Crysis Modja #default] #lightgreenBekapcsolva
	es_xdoblock gabeee-crysismod/crysis
}
block unload
{
	es_xmsg #multi #default[ #greenGabeee Crysis Modja #default] #lightgreenKikapcsolva
	popup delete crysis
}
block crysis
{
	popup create crysis
	popup addline crysis "Gabeee Crysis Mod"
	popup addline crysis "->1. Elrejtőzes"
	popup addline crysis "->2. Extra HP"
	popup addline crysis "->3. Ugrás"
	popup addline crysis "->4. Sebesség"
	popup menuselect crysis gabeee-crysismod/crysisselect
}
block crysisselect
{
	if (server_var(_popup_choice) == 1) do
	{
		es_tell server_var(_popup_userid) #multi #default[ #greenGabeee Crysis Mod #default] #greenTe az Elrejtőzést válaszottad.
		es est_setplayercolor server_var(_popup_userid) 255 255 255 40 1
		es est_setgravity event_var(userid) 1
	}
	if (server_var(_popup_choice) == 2) do
	{
		es_tell server_var(_popup_userid) #multi #default[ #greenGabeee Crysis Mod #default] #greenTe az ExtraHP-t választottad.
		es est_healthadd server_var(_popup_userid) 300
		es est_setgravity event_var(userid) 1
	}
	if (server_var(_popup_choice) == 3) do
	{
		es_tell server_var(_popup_userid) #multi #default[ #greenGabeee Crysis Mod #default] #greenTe az Ugrást válaszottad.
		es est_setgravity server_var(_popup_userid) 0.5
	}
	if (server_var(_popup_choice) == 4) do
	{
		es_tell server_var(_popup_userid) #multi #default[ #greenGabeee Crysis Mod #default] #greenTe a sebességet választottad.
		es est_speed server_var(_popup_userid) 2
		es est_setgravity event_var(userid) 1
	}
}
event player_spawn
{
	es est_setgravity event_var(userid) 1
	es_tell event_var(userid) #multi #greenA szerveren #lightgreen: #default[ #greenGabeee Crysis Mod #default] #green Fut
	es popup send crysis event_var(userid)
}
block powerup_sounds
{
	if (server_var(_popup_choice) == 1) do
	{
		foreach player tempuserid #human "es_playsound server_var(_popup_userid) sound/cloak.wav
	}
	if (server_var(_popup_choice) == 2) do
	{
		foreach player tempuserid #human "es_playsound server_var(_popup_userid) sound/maxarmor.wav
	if (server_var(_popup_choice) == 3) do
	{
		foreach player tempuserid #human "es_playsound server_var(_popup_userid) sound/maxstr.wav
	}
	if (server_var(_popup_choice) == 4) do
	{
		foreach player tempuserid #human "es_playsound server_var(_popup_userid) sound/maxspeed.wav
	}

