////////////////////////////////////////////////////////////////////////////////////
// Script coded by Blackhawk, or snake38
// Please, go on his ZombieMod'server !
// IP: 77.111.200.121:27015
// Forum: http://www.dark-infection.forumperso.com/
////////////////////////////////////////////////////////////////////////////////////
// http://addons.eventscripts.com/addons/view/Super_admin

/////////////////////////////////////////
// DON'T TOUCH !!!
/////////////////////////////////////////

block load
{
	es_load popup
	es_load keymenu
	es_xset Super_admin "5.2"
	es_xmakepublic Super_admin
	es_xset super_leader 0
	es_xsetinfo super_consolecommand 0
	es_xsetinfo super_chatcommand 0
	es_setinfo targetid 0
	es_setinfo targetindex 0
	es_xsetinfo respawn_chatcommand 0
	es_xsetinfo god_chatcommand 0
	es_xsetinfo speed_chatcommand 0
	es_xsetinfo rocket_chatcommand 0
	es_xsetinfo jetpack_chatcommand 0
	es_xsetinfo gravity_chatcommand 0
	es_xsetinfo invisible_chatcommand 0
	es_xsetinfo wizz_chatcommand 0
	es_xsetinfo unlimited_chatcommand 0
	es_xsetinfo desarme_chatcommand 0
	es_xsetinfo regeneration_chatcommand 0
	es_xsetinfo unlimited_chatcommand 0
	es_xsetinfo desarme_chatcommand 0
	es_xsetinfo regeneration_chatcommand 0
	es_xsetinfo deguise_chatcommand 0
	es_xsetinfo enterre_chatcommand 0
	es_setinfo super_buryx 0
	es_setinfo super_buryy 0
	es_setinfo super_buryz 0
	es_xsetinfo super_renvoimenu 0
	es_xsetinfo super_tell 0
	es_xsetinfo invisible_statut 0
	es_xsetinfo desarme_vitesse 0
	es_xsetinfo super_sons 0
	es_xset super_music_auto 0
                   es_xset super_prop_message_antispam 0
	es_xmexec ../addons/eventscripts/super_admin/super_admin_config.cfg
	es_regclientcmd server_var(super_consolecommand) super_admin/ouverture_menu
	es_keygroupcreate speed
	es_xsetinfo speed_existsmenu 0
	es_xsetinfo speed_existsplayer 0
	es_xsetinfo speed_player 0
	es_xsetinfo speed_name 0
	es_xsetinfo speed_listname 0
	es_xsetinfo speed_choice 0
	es_xsetinfo respawn_existsmenu 0
	es_xsetinfo respawn_choice 0
	es_keygroupcreate god
	es_xsetinfo god_existsmenu 0
	es_xsetinfo god_existsplayer 0
	es_xsetinfo god_player 0
	es_xsetinfo god_name 0
	es_xsetinfo god_listname 0
	es_xsetinfo god_choice 0
	es_xsetinfo rocket_existsmenu 0
	es_xsetinfo rocket_choice 0
	es_keygroupcreate jetpack
	es_xsetinfo jetpack_existsmenu 0
	es_xsetinfo jetpack_existsplayer 0
	es_xsetinfo jetpack_player 0
	es_xsetinfo jetpack_name 0
	es_xsetinfo jetpack_listname 0
	es_xsetinfo jetpack_choice 0
	es_keygroupcreate gravity
	es_xsetinfo gravity_existsmenu 0
	es_xsetinfo gravity_existsplayer 0
	es_xsetinfo gravity_player 0
	es_xsetinfo gravity_name 0
	es_xsetinfo gravity_listname 0
	es_xsetinfo gravity_choice 0
	es_keygroupcreate invisible
	es_xsetinfo invisible_existsmenu 0
	es_xsetinfo invisible_existsplayer 0
	es_xsetinfo invisible_player 0
	es_xsetinfo invisible_name 0
	es_xsetinfo invisible_listname 0
	es_xsetinfo invisible_choice 0
	es_xsetinfo wizz_existsmenu 0
	es_xsetinfo wizz_choice 0
	es_keygroupcreate unlimited
	es_xsetinfo unlimited_existsmenu 0
	es_xsetinfo unlimited_existsplayer 0
	es_xsetinfo unlimited_player 0
	es_xsetinfo unlimited_name 0
	es_xsetinfo unlimited_listname 0
	es_xsetinfo unlimited_choice 0
	es_keygroupcreate regeneration
	es_xsetinfo regeneration_existsmenu 0
	es_xsetinfo regeneration_existsplayer 0
	es_xsetinfo regeneration_player 0
	es_xsetinfo regeneration_name 0
	es_xsetinfo regeneration_listname 0
	es_xsetinfo regeneration_choice 0
	es_xsetinfo deguise_existsmenu 0
	es_xsetinfo deguise_choice 0
	es_xsetinfo enterre_existsmenu 0
	es_xsetinfo enterre_choice 0
	popup create super_admin_main
	popup addline super_admin_main "[ Супер админ ]"
	popup addline super_admin_main " "
	popup addline super_admin_main "->1. Забавные команды"
	popup addline super_admin_main "->2. Музыка"
	popup addline super_admin_main "->3. Добавление предметов"
	popup addline super_admin_main "->4. Админка"
	popup addline super_admin_main " "
	popup addline super_admin_main "0. Exit"
	popup menuselect super_admin_main super_admin/super_admin_main
	popup create super_admin_page1
	popup addline super_admin_page1 "|> Забавные команды <|"
	popup addline super_admin_page1 "Стр 1/2"
	popup addline super_admin_page1 "->1. Бессмертие"
	popup addline super_admin_page1 "->2. Воскресить"
	popup addline super_admin_page1 "->3. Скорость бега"
	popup addline super_admin_page1 "->4. Убийство ракетой"
	popup addline super_admin_page1 "->5. Реактивный ранец"
	popup addline super_admin_page1 "->6. Гравитация"
	popup addline super_admin_page1 "->7. Невидемость"
	popup addline super_admin_page1 "->8. Шок"
	popup addline super_admin_page1 "->9. Дальше"
	popup addline super_admin_page1 "0. Главное меню"
	popup menuselect super_admin_page1 super_admin/super_admin_page1
	popup create super_admin_page2
	popup addline super_admin_page2 "|> Забавные команды <|"
	popup addline super_admin_page2 "Pg 2/2"
	popup addline super_admin_page2 "->1. Бесконечное аммо"
	popup addline super_admin_page2 "->2. Разоружить"
	popup addline super_admin_page2 "->3. Регенерация HP"
	popup addline super_admin_page2 "->4. Превратить в бочку"
	popup addline super_admin_page2 "->5. Закопать"
	popup addline super_admin_page2 "->8. Назад"
	popup addline super_admin_page2 "0. Главное меню"
	popup menuselect super_admin_page2 super_admin/super_admin_page2
	popup create super_admin_music1
	popup addline super_admin_music1 "|> Музыка <|"
	popup addline super_admin_music1 "Стр 1/3"
	popup addline super_admin_music1 "->1. Звук 1 [0:30]"
	popup addline super_admin_music1 "->2. Звук 2 [0:31]"
	popup addline super_admin_music1 "->3. Звук 3 [0:35]"
	popup addline super_admin_music1 "->4. Звук 4 [0:46]"
	popup addline super_admin_music1 "->5. Звук 5 [0:51]"
	popup addline super_admin_music1 "->6. Звук 6 [0:54]"
	popup addline super_admin_music1 "->7. Звук 7 [1:00]"
	popup addline super_admin_music1 "->8. Звук 8 [1:00]"
	popup addline super_admin_music1 "->9. Далее"
	popup addline super_admin_music1 "0. Главное меню"
	popup menuselect super_admin_music1 super_admin/super_admin_music1
	popup create super_admin_music2
	popup addline super_admin_music2 "|> Музыка <|"
	popup addline super_admin_music2 "Стр 2/3"
	popup addline super_admin_music2 "->1. Звук 9 [1:05]"
	popup addline super_admin_music2 "->2. Звук 10 [1:10]"
	popup addline super_admin_music2 "->3. Звук 11 [1:10]"
	popup addline super_admin_music2 "->4. Звук 12 [1:24]"
	popup addline super_admin_music2 "->5. Звук 13 [1:30]"
	popup addline super_admin_music2 "->6. Звук 14 [1:40]"
	popup addline super_admin_music2 "->7. Звук 15 [1:43]"
	popup addline super_admin_music2 "->8. назад"
	popup addline super_admin_music2 "->9. Далее"
	popup addline super_admin_music2 "0. Главное меню"
	popup menuselect super_admin_music2 super_admin/super_admin_music2
	popup create super_admin_music3
	popup addline super_admin_music3 "|> Музыка <|"
	popup addline super_admin_music3 "Стр 3/3"
	popup addline super_admin_music3 "->1. Звук 16 [1:56]"
	popup addline super_admin_music3 "->2. Звук 17 [2:37]"
	popup addline super_admin_music3 "->3. Звук 18 [2:50]"
	popup addline super_admin_music3 "->4. Звук 19 [2:51]"
	popup addline super_admin_music3 "->5. [Вкл автомат воспр]"
	popup addline super_admin_music3 "->6. [Откл автомат воспр]"
	popup addline super_admin_music3 "->8. назад"
	popup addline super_admin_music3 "0. Главное меню"
	popup menuselect super_admin_music3 super_admin/super_admin_music3
	popup create super_admin_prop1
	popup addline super_admin_prop1 "|> Добавление предметов <|"
	popup addline super_admin_prop1 "Стр 1/2"
	popup addline super_admin_prop1 "->1. Туалет"
	popup addline super_admin_prop1 "->2. Стол"
	popup addline super_admin_prop1 "->3. Камень"
	popup addline super_admin_prop1 "->4. Оффисный шкафф"
	popup addline super_admin_prop1 "->5. Бочка"
	popup addline super_admin_prop1 "->6. Бочка со взрывом"
	popup addline super_admin_prop1 "->7. Фонтан"
	popup addline super_admin_prop1 "->8. Каркас машины"
	popup addline super_admin_prop1 "->9. Далее"
	popup addline super_admin_prop1 "0. Главное меню"
	popup menuselect super_admin_prop1 super_admin/super_admin_prop1
	popup create super_admin_prop2
	popup addline super_admin_prop2 "|> Добавление предметов <|"
	popup addline super_admin_prop2 "Стр 2/2"
	popup addline super_admin_prop2 "->1. Танк"
	popup addline super_admin_prop2 "->2. Бочка пропана"
	popup addline super_admin_prop2 "->3. Фонарь"
	popup addline super_admin_prop2 "->4. Диван"
	popup addline super_admin_prop2 "->5. Вентиляция"
	popup addline super_admin_prop2 "->6. Деревянная коробка"
	popup addline super_admin_prop2 "->7. [Удалить все]"
	popup addline super_admin_prop2 "->8. Назад"
	popup addline super_admin_prop2 "0. Главное меню"
	popup menuselect super_admin_prop2 super_admin/super_admin_prop2
	es_xkeygroupload super_adminlist |super_admin
	popup create menu_gestion_admins
	popup addline menu_gestion_admins "|> Админ меню <|"
	popup addline menu_gestion_admins "->1. Добавить админа"
	popup addline menu_gestion_admins "->2. Удалить админа"
	popup addline menu_gestion_admins "0. Главное меню"
	popup menuselect menu_gestion_admins super_admin/menu_gestion_admins
	es_xmsg #multi #default[#greenSuper Admin#default]#lightgreen Settings saved#default
}

block super_admin_main
{
	if (server_var(_popup_choice) == 1) do
	{
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
		es popup send super_admin_page1 server_var(_popup_userid)
	}
	if (server_var(_popup_choice) == 2) do
	{
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
		es popup send super_admin_music1 server_var(_popup_userid)
	}
	if (server_var(_popup_choice) == 3) do
	{
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
		es popup send super_admin_prop1 server_var(_popup_userid)
	}
	if (server_var(_popup_choice) == 4) do
	{
		es_xdoblock super_admin/detection_admin_leader
	}
	if (server_var(_popup_choice) in "5 6 7 8 9") do
	{
		es popup send super_admin_main server_var(_popup_userid)
	}
	if (server_var(_popup_choice) notin "1 2 3 4 5 6 7 8 9") do
	{
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button5.wav" 1.0
		es popup close super_admin_main server_var(_popup_userid)
	}
}



block super_admin_page1
{
	if (server_var(_popup_choice) == 1) do
	{
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
		es_xdoblock super_admin/god_playerlist
	}
	if (server_var(_popup_choice) == 2) do
	{
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
		es_xdoblock super_admin/respawn_playerlist
	}
	if (server_var(_popup_choice) == 3) do
	{
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
		es_xdoblock super_admin/speed_playerlist
	}
	if (server_var(_popup_choice) == 4) do
	{
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
		es_xdoblock super_admin/rocket_playerlist
	}
	if (server_var(_popup_choice) == 5) do
	{
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
		es_xdoblock super_admin/jetpack_playerlist
	}
	if (server_var(_popup_choice) == 6) do
	{
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
		es_xdoblock super_admin/gravity_playerlist
	}
	if (server_var(_popup_choice) == 7) do
	{
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
		es_xdoblock super_admin/invisible_playerlist
	}
	if (server_var(_popup_choice) == 8) do
	{
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
		es_xdoblock super_admin/wizz_playerlist
	}
	if (server_var(_popup_choice) == 9) do
	{
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
		es popup send super_admin_page2 server_var(_popup_userid)
	}
	if (server_var(_popup_choice) notin "1 2 3 4 5 6 7 8 9") do
	{
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
		es popup send super_admin_main server_var(_popup_userid)
	}
}

block super_admin_page2
{
	if (server_var(_popup_choice) == 1) do
	{
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
		es_xdoblock super_admin/unlimited_playerlist
	}
	if (server_var(_popup_choice) == 2) do
	{
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
		es_xdoblock super_admin/desarme_playerlist
	}
	if (server_var(_popup_choice) == 3) do
	{
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
		es_xdoblock super_admin/regeneration_playerlist
	}
	if (server_var(_popup_choice) == 4) do
	{
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
		es_xdoblock super_admin/deguise_playerlist
	}
	if (server_var(_popup_choice) == 5) do
	{
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
		es_xdoblock super_admin/enterre_playerlist
	}
	if (server_var(_popup_choice) == 8) do
	{
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
		es popup send super_admin_page1 server_var(_popup_userid)
	}
	if (server_var(_popup_choice) in "6 7 9") do
	{
		es popup send super_admin_page2 server_var(_popup_userid)
	}
	if (server_var(_popup_choice) notin "1 2 3 4 5 6 7 8 9") do
	{
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
		es popup send super_admin_main server_var(_popup_userid)
	}
}

block super_admin_music1
{
	if (server_var(_popup_choice) == 1) do
	{
		foreach player tempuserid #human "es_playsound server_var(tempuserid) music/Ravenholm_1.mp3 1.0"
		es popup send super_admin_music1 server_var(_popup_userid)
	}
	if (server_var(_popup_choice) == 2) do
	{
		foreach player tempuserid #human "es_playsound server_var(tempuserid) music/HL2_song10.mp3 1.0"
		es popup send super_admin_music1 server_var(_popup_userid)
	}
	if (server_var(_popup_choice) == 3) do
	{
		foreach player tempuserid #human "es_playsound server_var(tempuserid) music/HL2_song11.mp3 1.0"
		es popup send super_admin_music1 server_var(_popup_userid)
	}
	if (server_var(_popup_choice) == 4) do
	{
		foreach player tempuserid #human "es_playsound server_var(tempuserid) music/HL2_song6.mp3 1.0"
		es popup send super_admin_music1 server_var(_popup_userid)
	}
	if (server_var(_popup_choice) == 5) do
	{
		foreach player tempuserid #human "es_playsound server_var(tempuserid) music/HL2_song7.mp3 1.0"
		es popup send super_admin_music1 server_var(_popup_userid)
	}
	if (server_var(_popup_choice) == 6) do
	{
		foreach player tempuserid #human "es_playsound server_var(tempuserid) music/HL2_song13.mp3 1.0"
		es popup send super_admin_music1 server_var(_popup_userid)
	}
	if (server_var(_popup_choice) == 7) do
	{
		foreach player tempuserid #human "es_playsound server_var(tempuserid) music/HL2_song8.mp3 1.0"
		es popup send super_admin_music1 server_var(_popup_userid)
	}
	if (server_var(_popup_choice) == 8) do
	{
		foreach player tempuserid #human "es_playsound server_var(tempuserid) music/HL2_song17.mp3 1.0"
		es popup send super_admin_music1 server_var(_popup_userid)
	}
	if (server_var(_popup_choice) == 9) do
	{
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
		es popup send super_admin_music2 server_var(_popup_userid)
	}
	if (server_var(_popup_choice) notin "1 2 3 4 5 6 7 8 9") do
	{
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
		es popup send super_admin_main server_var(_popup_userid)
	}
}

block super_admin_music2
{
	if (server_var(_popup_choice) == 1) do
	{
		foreach player tempuserid #human "es_playsound server_var(tempuserid) music/HL2_song4.mp3 1.0"
		es popup send super_admin_music2 server_var(_popup_userid)
	}
	if (server_var(_popup_choice) == 2) do
	{
		foreach player tempuserid #human "es_playsound server_var(tempuserid) music/HL2_song12_long.mp3 1.0"
		es popup send super_admin_music2 server_var(_popup_userid)
	}
	if (server_var(_popup_choice) == 3) do
	{
		foreach player tempuserid #human "es_playsound server_var(tempuserid) music/HL2_song15.mp3 1.0"
		es popup send super_admin_music2 server_var(_popup_userid)
	}
	if (server_var(_popup_choice) == 4) do
	{
		foreach player tempuserid #human "es_playsound server_var(tempuserid) music/HL2_song33.mp3 1.0"
		es popup send super_admin_music2 server_var(_popup_userid)
	}
	if (server_var(_popup_choice) == 5) do
	{
		foreach player tempuserid #human "es_playsound server_var(tempuserid) music/HL2_song3.mp3 1.0"
		es popup send super_admin_music2 server_var(_popup_userid)
	}
	if (server_var(_popup_choice) == 6) do
	{
		foreach player tempuserid #human "es_playsound server_var(tempuserid) music/HL2_song1.mp3 1.0"
		es popup send super_admin_music2 server_var(_popup_userid)
	}
	if (server_var(_popup_choice) == 7) do
	{
		foreach player tempuserid #human "es_playsound server_var(tempuserid) music/HL2_song30.mp3 1.0"
		es popup send super_admin_music2 server_var(_popup_userid)
	}
	if (server_var(_popup_choice) == 8) do
	{
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
		es popup send super_admin_music1 server_var(_popup_userid)
	}
	if (server_var(_popup_choice) == 9) do
	{
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
		es popup send super_admin_music3 server_var(_popup_userid)
	}
	if (server_var(_popup_choice) notin "1 2 3 4 5 6 7 8 9") do
	{
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
		es popup send super_admin_main server_var(_popup_userid)
	}
}

block super_admin_music3
{
	if (server_var(_popup_choice) == 1) do
	{
		foreach player tempuserid #human "es_playsound server_var(tempuserid) music/HL2_song19.mp3 1.0"
		es popup send super_admin_music3 server_var(_popup_userid)
	}
	if (server_var(_popup_choice) == 2) do
	{
		foreach player tempuserid #human "es_playsound server_var(tempuserid) music/HL2_song14.mp3 1.0"
		es popup send super_admin_music3 server_var(_popup_userid)
	}
	if (server_var(_popup_choice) == 3) do
	{
		foreach player tempuserid #human "es_playsound server_var(tempuserid) music/HL2_song16.mp3 1.0"
		es popup send super_admin_music3 server_var(_popup_userid)
	}
	if (server_var(_popup_choice) == 4) do
	{
		foreach player tempuserid #human "es_playsound server_var(tempuserid) music/HL2_song2.mp3 1.0"
		es popup send super_admin_music3 server_var(_popup_userid)
	}
	if (server_var(_popup_choice) == 5) do
	{
		es_xset super_music_auto 1
		es_xset admin_enableur 0
		es_getplayername admin_enableur server_var(_popup_userid)
		es_xset format_enableur 0
		es_format format_enableur "(ADMIN) %1: enabled automatic sounds" server_var(admin_enableur)
		es_msg server_var(format_enableur)
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
		es popup send super_admin_music3 server_var(_popup_userid)
	}
	if (server_var(_popup_choice) == 6) do
	{
		es_xset super_music_auto 0
		es_xset admin_disableur 0
		es_getplayername admin_disableur server_var(_popup_userid)
		es_xset format_disableur 0
		es_format format_disableur "(ADMIN) %1: disabled automatic sounds" server_var(admin_disableur)
		es_msg server_var(format_disableur)
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
		es popup send super_admin_music3 server_var(_popup_userid)
	}
	if (server_var(_popup_choice) == 7) do
	{
		es popup send super_admin_music3 server_var(_popup_userid)
	}
	if (server_var(_popup_choice) == 8) do
	{
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
		es popup send super_admin_music2 server_var(_popup_userid)
	}
	if (server_var(_popup_choice) == 9) do
	{
		es popup send super_admin_music3 server_var(_popup_userid)
	}
	if (server_var(_popup_choice) notin "1 2 3 4 5 6 7 8 9") do
	{
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
		es popup send super_admin_main server_var(_popup_userid)
	}
}

block super_admin_prop1
{
	if (server_var(_popup_choice) == 1) do
	{
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
		es_prop_dynamic_create server_var(_popup_userid) /props/cs_militia/toilet
		es_xset admin_spawneur_nom 0
		es_getplayername admin_spawneur_nom server_var(_popup_userid)
		es_xset format_spawneur 0
		es_format format_spawneur "(ADMIN) %1: Добавил туалет" server_var(admin_spawneur_nom)
		if (server_var(super_prop_message_antispam) != 1) then es_msg server_var(format_spawneur)
		es popup send super_admin_prop1 server_var(_popup_userid)
	}
	if (server_var(_popup_choice) == 2) do
	{
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
		es_prop_dynamic_create server_var(_popup_userid) props/cs_militia/table_kitchen
		es_xset admin_spawneur_nom 0
		es_getplayername admin_spawneur_nom server_var(_popup_userid)
		es_xset format_spawneur 0
		es_format format_spawneur "(ADMIN) %1: Добавил стол" server_var(admin_spawneur_nom)
		if (server_var(super_prop_message_antispam) != 1) then es_msg server_var(format_spawneur)
		es popup send super_admin_prop1 server_var(_popup_userid)
	}
	if (server_var(_popup_choice) == 3) do
	{
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
		es_prop_dynamic_create server_var(_popup_userid) props/de_inferno/de_inferno_boulder_01
		es_xset admin_spawneur_nom 0
		es_getplayername admin_spawneur_nom server_var(_popup_userid)
		es_xset format_spawneur 0
		es_format format_spawneur "(ADMIN) %1: Добавил камень" server_var(admin_spawneur_nom)
		if (server_var(super_prop_message_antispam) != 1) then es_msg server_var(format_spawneur)
		es popup send super_admin_prop1 server_var(_popup_userid)
	}
	if (server_var(_popup_choice) == 4) do
	{
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
		es_prop_physics_create server_var(_popup_userid) props/cs_office/file_cabinet3
		es_xset admin_spawneur_nom 0
		es_getplayername admin_spawneur_nom server_var(_popup_userid)
		es_xset format_spawneur 0
		es_format format_spawneur "(ADMIN) %1: Добавил офисный ящик" server_var(admin_spawneur_nom)
		if (server_var(super_prop_message_antispam) != 1) then es_msg server_var(format_spawneur)
		es popup send super_admin_prop1 server_var(_popup_userid)
	}
	if (server_var(_popup_choice) == 5) do
	{
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
		es_prop_physics_create server_var(_popup_userid) props_c17/oildrum001
		es_xset admin_spawneur_nom 0
		es_getplayername admin_spawneur_nom server_var(_popup_userid)
		es_xset format_spawneur 0
		es_format format_spawneur "(ADMIN) %1: Добавил бочку" server_var(admin_spawneur_nom)
		if (server_var(super_prop_message_antispam) != 1) then es_msg server_var(format_spawneur)
		es popup send super_admin_prop1 server_var(_popup_userid)
	}
	if (server_var(_popup_choice) == 6) do
	{
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
		es_prop_physics_create server_var(_popup_userid) props_c17/oildrum001_explosive
		es_xset admin_spawneur_nom 0
		es_getplayername admin_spawneur_nom server_var(_popup_userid)
		es_xset format_spawneur 0
		es_format format_spawneur "(ADMIN) %1: Добавил взрывающаюся бочку" server_var(admin_spawneur_nom)
		if (server_var(super_prop_message_antispam) != 1) then es_msg server_var(format_spawneur)
		es popup send super_admin_prop1 server_var(_popup_userid)
	}
	if (server_var(_popup_choice) == 7) do
	{
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
		es_prop_dynamic_create server_var(_popup_userid) props/de_inferno/fountain
		es_xset admin_spawneur_nom 0
		es_getplayername admin_spawneur_nom server_var(_popup_userid)
		es_xset format_spawneur 0
		es_format format_spawneur "(ADMIN) %1: Добавил фонтан" server_var(admin_spawneur_nom)
		if (server_var(super_prop_message_antispam) != 1) then es_msg server_var(format_spawneur)
		es popup send super_admin_prop1 server_var(_popup_userid)
	}
	if (server_var(_popup_choice) == 8) do
	{
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
		es_prop_dynamic_create server_var(_popup_userid) props_vehicles/car002b
		es_xset admin_spawneur_nom 0
		es_getplayername admin_spawneur_nom server_var(_popup_userid)
		es_xset format_spawneur 0
		es_format format_spawneur "(ADMIN) %1: Добавил каркас машины" server_var(admin_spawneur_nom)
		if (server_var(super_prop_message_antispam) != 1) then es_msg server_var(format_spawneur)
		es popup send super_admin_prop1 server_var(_popup_userid)
	}
	if (server_var(_popup_choice) == 9) do
	{
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
		es popup send super_admin_prop2 server_var(_popup_userid)
	}
	if (server_var(_popup_choice) notin "1 2 3 4 5 6 7 8 9") do
	{
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
		es popup send super_admin_main server_var(_popup_userid)
	}
}

block super_admin_prop2
{
	if (server_var(_popup_choice) == 1) do
	{
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
		es_prop_dynamic_create server_var(_popup_userid) props_vehicles\apc001.mdl
		es_xset admin_spawneur_nom 0
		es_getplayername admin_spawneur_nom server_var(_popup_userid)
		es_xset format_spawneur 0
		es_format format_spawneur "(ADMIN) %1: Добавил танк" server_var(admin_spawneur_nom)
		if (server_var(super_prop_message_antispam) != 1) then es_msg server_var(format_spawneur)
		es popup send super_admin_prop2 server_var(_popup_userid)
	}
	if (server_var(_popup_choice) == 2) do
	{
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
		es_prop_dynamic_create server_var(_popup_userid) props/de_train/Processor_NoBase
		es_xset admin_spawneur_nom 0
		es_getplayername admin_spawneur_nom server_var(_popup_userid)
		es_xset format_spawneur 0
		es_format format_spawneur "(ADMIN) %1: Добавил бочку пропана" server_var(admin_spawneur_nom)
		if (server_var(super_prop_message_antispam) != 1) then es_msg server_var(format_spawneur)
		es popup send super_admin_prop2 server_var(_popup_userid)
	}
	if (server_var(_popup_choice) == 3) do
	{
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
		es_prop_dynamic_create server_var(_popup_userid) props_c17/lamppost03a_off
		es_xset admin_spawneur_nom 0
		es_getplayername admin_spawneur_nom server_var(_popup_userid)
		es_xset format_spawneur 0
		es_format format_spawneur "(ADMIN) %1: Добавил фонарь" server_var(admin_spawneur_nom)
		if (server_var(super_prop_message_antispam) != 1) then es_msg server_var(format_spawneur)
		es popup send super_admin_prop2 server_var(_popup_userid)
	}
	if (server_var(_popup_choice) == 4) do
	{
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
		es_prop_dynamic_create server_var(_popup_userid) props/cs_militia/couch
		es_xset admin_spawneur_nom 0
		es_getplayername admin_spawneur_nom server_var(_popup_userid)
		es_xset format_spawneur 0
		es_format format_spawneur "(ADMIN) %1: Добавил диван" server_var(admin_spawneur_nom)
		if (server_var(super_prop_message_antispam) != 1) then es_msg server_var(format_spawneur)
		es popup send super_admin_prop2 server_var(_popup_userid)
	}
	if (server_var(_popup_choice) == 5) do
	{
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
		es_prop_dynamic_create server_var(_popup_userid) props_pipes/PipeCluster32d_001a
		es_xset admin_spawneur_nom 0
		es_getplayername admin_spawneur_nom server_var(_popup_userid)
		es_xset format_spawneur 0
		es_format format_spawneur "(ADMIN) %1: Добавил вентиляцию" server_var(admin_spawneur_nom)
		if (server_var(super_prop_message_antispam) != 1) then es_msg server_var(format_spawneur)
		es popup send super_admin_prop2 server_var(_popup_userid)
	}
	if (server_var(_popup_choice) == 6) do
	{
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
		es_prop_dynamic_create server_var(_popup_userid) props/cs_militia/crate_extralargemill
		es_xset admin_spawneur_nom 0
		es_getplayername admin_spawneur_nom server_var(_popup_userid)
		es_xset format_spawneur 0
		es_format format_spawneur "(ADMIN) %1: Добавил деревяный ящик" server_var(admin_spawneur_nom)
		if (server_var(super_prop_message_antispam) != 1) then es_msg server_var(format_spawneur)
		es popup send super_admin_prop2 server_var(_popup_userid)
	}
	if (server_var(_popup_choice) == 7) do
	{
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
		es_xset entitytemp 0
		es_xcreateentitylist list
		es_foreachkey entitytemp in list "es_xdoblock super_admin/super_delete_props"
		es_xkeygroupdelete list
		es_xset admin_spawneur_nom 0
		es_getplayername admin_spawneur_nom server_var(_popup_userid)
		es_xset format_spawneur 0
		es_format format_spawneur "(ADMIN) %1: Удалил все" server_var(admin_spawneur_nom)
		es_msg server_var(format_spawneur)
		es popup send super_admin_prop2 server_var(_popup_userid)
	}
	if (server_var(_popup_choice) == 8) do
	{
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
		es popup send super_admin_prop1 server_var(_popup_userid)
	}
	if (server_var(_popup_choice) == 9) do
	{
		es popup send super_admin_prop2 server_var(_popup_userid)
	}
	if (server_var(_popup_choice) notin "1 2 3 4 5 6 7 8 9") do
	{
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
		es popup send super_admin_main server_var(_popup_userid)
	}
}

block super_delete_props
{
	es_xset entityclass 0
	es_keygetvalue entityclass list server_var(entitytemp) classname
	if ("prop_" in server_var(entityclass)) then es_xremove server_var(entitytemp)
}

block detection_admin_leader
{
	es_xset utilisateur_commande_userid 0
	es_xgetcmduserid utilisateur_commande_userid
	es_xset utilisateur_commande_steamid 0
	es_getplayersteamid utilisateur_commande_steamid server_var(utilisateur_commande_userid)
	if (server_var(utilisateur_commande_steamid) in server_var(super_leader)) do
	{
		if (server_var(super_sons) == 1) then es_playsound server_var(utilisateur_commande_userid) "buttons/combine_button1.wav" 1.0
                                       es popup send menu_gestion_admins server_var(utilisateur_commande_userid)
	}
	else do
	{
		es_tell server_var(utilisateur_commande_userid) #green You can not use this command!
		es popup send super_admin_main server_var(utilisateur_commande_userid)
	}
}

block menu_gestion_admins
{
	ifx parse("_popup_choice == 1") do
	{
		 if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
                                       es_xcreateplayerlist joueurs_listing
		es_xkeygroupfilter joueurs_listing only isbot 0
		esnq keymenu create joueurs_listing joueur_selectione super_admin/ajouter_un_admin joueurs_listing #keyvalue name #key "Add an admin:"
		keymenu backmenu joueurs_listing menu_gestion_admins
		es keymenu send joueurs_listing server_var(_popup_userid)
		es_xkeygroupdelete joueurs_listing
	}
	ifx parse("_popup_choice == 2") do
	{
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
                                      esnq keymenu create admins_listing admin_selectione super_admin/supprimer_un_admin super_adminlist #keyvalue name #key "Delete an admin:"
		keymenu backmenu admins_listing menu_gestion_admins
		es keymenu send admins_listing server_var(_popup_userid)
	}
	if (server_var(_popup_choice) in "3 4 5 6 7 8 9") do
	{
		es popup send menu_gestion_admins server_var(_popup_userid)
	}
	if (server_var(_popup_choice) notin "1 2 3 4 5 6 7 8 9") do
	{
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
		es popup send super_admin_main server_var(_popup_userid)
	}
}

block ajouter_un_admin
{
	es_xset joueur_selectionne_steamid 0
	es_getplayersteamid joueur_selectionne_steamid server_var(joueur_selectione)
	es_xset joueur_selectionne_est_deja_admin 0
	es_exists joueur_selectionne_est_deja_admin key super_adminlist server_var(joueur_selectionne_steamid)
	ifx false(joueur_selectionne_est_deja_admin) do
	{
		es_xset joueur_selectionne_nom 0
		es_getplayername joueur_selectionne_nom server_var(joueur_selectione)
		es_keycreate super_adminlist server_var(joueur_selectionne_steamid)
		es_keysetvalue super_adminlist server_var(joueur_selectionne_steamid) name server_var(joueur_selectionne_nom)
		es_xkeygroupsave super_adminlist |super_admin
		es_tell server_var(_popup_userid)#multi #default[#greenSuper Admin#default] #greenAdmin#lightgreen server_var(joueur_selectionne_nom) #greenadded with success.
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
                                      es popup send menu_gestion_admins server_var(_popup_userid)
	}
	else do
	{
		es_tell server_var(_popup_userid) #green This player is already an admin!
		es keymenu send joueurs_listing server_var(_popup_userid)
	}

}

block supprimer_un_admin
{
	es_xset joueur_selectionne_nom_deleted 0
	es_keygetvalue joueur_selectionne_nom_deleted super_adminlist server_var(admin_selectione) name
	es_keydelete super_adminlist server_var(admin_selectione)
	es_xkeygroupsave super_adminlist |super_admin
	if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
                   es popup send menu_gestion_admins server_var(_popup_userid)
	es_tell server_var(_popup_userid)#multi #default[#greenSuper Admin#default] #greenAdmin#lightgreen server_var(joueur_selectionne_nom_deleted) #greendeleted with success.
}

event es_map_start
{
                   es_xset format_pub 0
                   es_format format_pub "World-Source.ru" 
                   es_delayed 70 es_msg server_var(format_pub)
                   es_delayed 140 es_msg server_var(format_pub)
	es_keygroupdelete speed
	es_keygroupcreate speed
	es_keygroupdelete god
	es_keygroupcreate god
	es_keygroupdelete jetpack
	es_keygroupcreate jetpack
	es_keygroupdelete gravity
	es_keygroupcreate gravity
	es_keygroupdelete invisible
	es_keygroupcreate invisible
	es_keygroupdelete unlimited
	es_keygroupcreate unlimited
	es_keygroupdelete regeneration
	es_keygroupcreate regeneration
}

event player_say
{
	if (event_var(text) == server_var(super_chatcommand)) do
	{
		es_xset utilisateur_commande_steamid 0
		es_getplayersteamid utilisateur_commande_steamid event_var(userid)
		es_xset utilisateur_commande_est_admin 0
		es_exists utilisateur_commande_est_admin key super_adminlist server_var(utilisateur_commande_steamid)
		ifx true(utilisateur_commande_est_admin) do
		{
			es popup send super_admin_main event_var(userid)
		}
		else es_tell event_var(userid) #green You can not use this command!
	}
	if (server_var(respawn_chatcommand) in event_var(text)) do
	{
		es_xset utilisateur_commande_steamid 0
		es_getplayersteamid utilisateur_commande_steamid event_var(userid)
		es_xset utilisateur_commande_est_admin 0
		es_exists utilisateur_commande_est_admin key super_adminlist server_var(utilisateur_commande_steamid)
		ifx true(utilisateur_commande_est_admin) do
		{

			es_token targetid event_var(text) 2
			es_getuserid targetindex server_var(targetid)
			ifx true (targetindex) do
			{
				es est_spawn server_var(targetid) 1
				es_xsetinfo respawn_respawned 0
				es_xset format ""
				es_getplayername respawn_respawned server_var(targetindex)
				es_xsetinfo respawn_respawneur 0
				es_getplayername respawn_respawneur event_var(userid)
				es_format format_respawn "(ADMIN) %1: ressurected player %2" server_var(respawn_respawneur) server_var(respawn_respawned)
				es_keycreate respawn server_var(targetindex)
				if (server_var(super_tell) == "prive") then es_tell server_var(targetindex)#green You have been ressurected by an admin!
				if (server_var(super_tell) == "public") then es_msg server_var(format_respawn)
			}
			else es_tell event_var(userid) #green Unknown player.
		}
		else es_tell event_var(userid) #green You can not use this command!
	}
	if (server_var(god_chatcommand) in event_var(text)) do
	{
		es_xset utilisateur_commande_steamid 0
		es_getplayersteamid utilisateur_commande_steamid event_var(userid)
		es_xset utilisateur_commande_est_admin 0
		es_exists utilisateur_commande_est_admin key super_adminlist server_var(utilisateur_commande_steamid)
		ifx true(utilisateur_commande_est_admin) do
		{
			es_token targetid event_var(text) 2
			es_getuserid targetindex server_var(targetid)
			ifx true (targetindex) do
			{
				es_exists god_existsplayer key god server_var(targetindex)
				if (server_var(god_existsplayer) == 0) do
				{
					es est_god server_var(targetindex) 1
					es_keycreate god server_var(targetindex)
					es_xsetinfo god_goded 0
					es_xset format ""
					es_getplayername god_goded server_var(targetindex)
					es_xsetinfo god_godeur 0
					es_getplayername god_godeur event_var(userid)
					es_format format_god "(ADMIN) %1: player %2 is in god mode" server_var(god_godeur) server_var(god_goded)
					es_format format_god_stop "(ADMIN) %1: player %2 is mortal again" server_var(god_godeur) server_var(god_goded)
					es_keycreate god server_var(targetindex)
					if (server_var(super_tell) == "prive") then es_tell server_var(targetindex)#green An admin made you invincible!
					if (server_var(super_tell) == "public") then es_msg server_var(format_god)
				}
				else do
				{
					es est_god server_var(targetindex) 0
					es_keydelete god server_var(targetindex)
					if (server_var(super_tell) == "prive") then es_tell server_var(targetindex)#green You are mortal again!
					if (server_var(super_tell) == "public") then es_msg server_var(format_god_stop)
				}
			}
			else es_tell event_var(userid) #green Unknown player.
		}
		else es_tell event_var(userid) #green You can not use this command!
	}
	if (server_var(speed_chatcommand) in event_var(text)) do
	{
		es_xset utilisateur_commande_steamid 0
		es_getplayersteamid utilisateur_commande_steamid event_var(userid)
		es_xset utilisateur_commande_est_admin 0
		es_exists utilisateur_commande_est_admin key super_adminlist server_var(utilisateur_commande_steamid)
		ifx true(utilisateur_commande_est_admin) do
		{
			es_token targetid event_var(text) 2
			es_getuserid targetindex server_var(targetid)
			ifx true (targetindex) do
			{
				es_exists speed_existsplayer key speed server_var(targetindex)
				if (server_var(speed_existsplayer) == 0) do
				{
					es est_speed server_var(targetindex) 2
					es_keycreate speed server_var(targetindex)
					es_xsetinfo speed_speeded 0
					es_xset format ""
					es_getplayername speed_speeded server_var(targetindex)
					es_xsetinfo speed_speedeur 0
					es_getplayername speed_speedeur event_var(userid)
					es_format format_speed "(ADMIN) %1: set the speed for player %2" server_var(speed_speedeur) server_var(speed_speeded)
					es_format format_speed_stop "(ADMIN) %1: player %2 runs at normal speed again" server_var(speed_speedeur) server_var(speed_speeded)
					es_keycreate speed server_var(targetindex)
					if (server_var(super_tell) == "prive") then es_tell server_var(targetindex)#green Your speed was set by admin!
					if (server_var(super_tell) == "public") then es_msg server_var(format_speed)
				}
				else do
				{
					es est_speed server_var(targetindex) 1
					es_keydelete speed server_var(targetindex)
					if (server_var(super_tell) == "prive") then es_tell server_var(targetindex)#green You speed was set to normal.
					if (server_var(super_tell) == "public") then es_msg server_var(format_speed_stop)
				}
			}
			else es_tell event_var(userid) #green Unknown player.
		}
		else es_tell event_var(userid) #green You can not use this command!
	}
	if (server_var(rocket_chatcommand) in event_var(text)) do
	{
		es_xset utilisateur_commande_steamid 0
		es_getplayersteamid utilisateur_commande_steamid event_var(userid)
		es_xset utilisateur_commande_est_admin 0
		es_exists utilisateur_commande_est_admin key super_adminlist server_var(utilisateur_commande_steamid)
		ifx true(utilisateur_commande_est_admin) do
		{
			es_token targetid event_var(text) 2
			es_getuserid targetindex server_var(targetid)
			ifx true (targetindex) do
			{
				es est_rocket server_var(targetid)
				es_xsetinfo rocket_rocketed 0
				es_xset format ""
				es_getplayername rocket_rocketed server_var(targetindex)
				es_xsetinfo rocket_rocketeur 0
				es_getplayername rocket_rocketeur event_var(userid)
				es_format format_rocket "(ADMIN) %1: player %2 is now a rocket" server_var(rocket_rocketeur) server_var(rocket_rocketed)
				es_keycreate rocket server_var(targetindex)
				if (server_var(super_tell) == "prive") then es_tell server_var(targetindex)#green You received a rocket from an admin!
				if (server_var(super_tell) == "public") then es_msg server_var(format_rocket)
			}
			else es_tell event_var(userid) #green Unknown player.
		}
		else es_tell event_var(userid) #green You can not use this command!
	}
	if (server_var(jetpack_chatcommand) in event_var(text)) do
	{
		es_xset utilisateur_commande_steamid 0
		es_getplayersteamid utilisateur_commande_steamid event_var(userid)
		es_xset utilisateur_commande_est_admin 0
		es_exists utilisateur_commande_est_admin key super_adminlist server_var(utilisateur_commande_steamid)
		ifx true(utilisateur_commande_est_admin) do
		{
			es_token targetid event_var(text) 2
			es_getuserid targetindex server_var(targetid)
			ifx true (targetindex) do
			{
				es_exists jetpack_existsplayer key jetpack server_var(targetindex)
				if (server_var(jetpack_existsplayer) == 0) do
				{
					es est_jetpack server_var(targetindex) 1
					es_keycreate jetpack server_var(targetindex)
					es_xsetinfo jetpack_jetpacked 0
					es_xset format ""
					es_getplayername jetpack_jetpacked server_var(targetindex)
					es_xsetinfo jetpack_jetpackeur 0
					es_getplayername jetpack_jetpackeur event_var(userid)
					es_format format_jetpack "(ADMIN) %1: gave player %2 a jetpack" server_var(jetpack_jetpackeur) server_var(jetpack_jetpacked)
					es_format format_jetpack_stop "(ADMIN) %1: took away player %2's jetpack" server_var(jetpack_jetpackeur) server_var(jetpack_jetpacked)
					es_keycreate jetpack server_var(targetindex)
					if (server_var(super_tell) == "prive") then es_tell server_var(targetindex)#green You received a jetpack from an admin!
					if (server_var(super_tell) == "public") then es_msg server_var(format_jetpack)
				}
				else do
				{
					es est_jetpack server_var(targetindex) 0
					es_keydelete jetpack server_var(targetindex)
					if (server_var(super_tell) == "prive") then es_tell server_var(targetindex)#green The admin took away your jetpack!					if (server_var(super_tell) == "public") then es_msg server_var(format_jetpack_stop)
				}
			}
			else es_tell event_var(userid) #green Unknown player.
		}
		else es_tell event_var(userid) #green You can not use this command!
	}
	if (server_var(gravity_chatcommand) in event_var(text)) do
	{
		es_xset utilisateur_commande_steamid 0
		es_getplayersteamid utilisateur_commande_steamid event_var(userid)
		es_xset utilisateur_commande_est_admin 0
		es_exists utilisateur_commande_est_admin key super_adminlist server_var(utilisateur_commande_steamid)
		ifx true(utilisateur_commande_est_admin) do
		{
			es_token targetid event_var(text) 2
			es_getuserid targetindex server_var(targetid)
			ifx true (targetindex) do
			{
				es_exists gravity_existsplayer key gravity server_var(targetindex)
				if (server_var(gravity_existsplayer) == 0) do
				{
					es est_setgravity server_var(targetindex) 0.4
					es_keycreate gravity server_var(targetindex)
					es_xsetinfo gravity_gravityed 0
					es_xset format ""
					es_getplayername gravity_gravityed server_var(targetindex)
					es_xsetinfo gravity_gravityeur 0
					es_getplayername gravity_gravityeur event_var(userid)
					es_format format_gravity "(ADMIN) %1: set player %2's gravity" server_var(gravity_gravityeur) server_var(gravity_gravityed)
					es_format format_gravity_stop "(ADMIN) %1: set player %2's to normal" server_var(gravity_gravityeur) server_var(gravity_gravityed)
					es_keycreate gravity server_var(targetindex)
					if (server_var(super_tell) == "prive") then es_tell server_var(targetindex)#green Your gravity was set by an admin!
					if (server_var(super_tell) == "public") then es_msg server_var(format_gravity)
				}
				else do
				{
					es est_setgravity server_var(targetindex) 1
					es_keydelete gravity server_var(targetindex)
					if (server_var(super_tell) == "prive") then es_tell server_var(targetindex)#green Your gavity was set to normal by an admin!
					if (server_var(super_tell) == "public") then es_msg server_var(format_gravity_stop)
				}
			}
			else es_tell event_var(userid) #green Unknown player.
		}
		else es_tell event_var(userid) #green You can not use this command!
	}
	if (server_var(invisible_chatcommand) in event_var(text)) do
	{
		es_xset utilisateur_commande_steamid 0
		es_getplayersteamid utilisateur_commande_steamid event_var(userid)
		es_xset utilisateur_commande_est_admin 0
		es_exists utilisateur_commande_est_admin key super_adminlist server_var(utilisateur_commande_steamid)
		ifx true(utilisateur_commande_est_admin) do
		{
			es_token targetid event_var(text) 2
			es_getuserid targetindex server_var(targetid)
			ifx true (targetindex) do
			{
				es_exists invisible_existsplayer key invisible server_var(targetindex)
				if (server_var(invisible_existsplayer) == 0) do
				{
					if (server_var(invisible_statut) == "total") then es est_SetPlayerColor server_var(targetindex) 255 255 255 0 1
					if (server_var(invisible_statut) == "partiel") then es est_SetPlayerColor server_var(targetindex) 255 255 255 22 1
					es_keycreate invisible server_var(targetindex)
					es_xsetinfo invisible_invisibleed 0
					es_xset format ""
					es_getplayername invisible_invisibleed server_var(targetindex)
					es_xsetinfo invisible_invisibleeur 0
					es_getplayername invisible_invisibleeur event_var(userid)
					es_format format_invisible "(ADMIN) %1: made player %2 invisible" server_var(invisible_invisibleeur) server_var(invisible_invisibleed)
					es_format format_invisible_stop "(ADMIN) %1: made player %2 visible again" server_var(invisible_invisibleeur) server_var(invisible_invisibleed)
					es_keycreate invisible server_var(targetindex)
					if (server_var(super_tell) == "prive") then es_tell server_var(targetindex)#green An admin made you invisible!
					if (server_var(super_tell) == "public") then es_msg server_var(format_invisible)
				}
				else do
				{
					es est_SetPlayerColor server_var(targetindex) 255 255 255 255 1
					es_keydelete invisible server_var(targetindex)
					es est_SetPlayerColor server_var(targetindex) 255 255 255 255 1
					es_keydelete invisible server_var(targetindex)
					if (server_var(super_tell) == "prive") then es_tell server_var(targetindex)#green You are visible again!
					if (server_var(super_tell) == "public") then es_msg server_var(format_invisible_stop)
				}
			}
			else es_tell event_var(userid) #green Unknown player.
		}
		else es_tell event_var(userid) #green You can not use this command!
	}
	if (server_var(wizz_chatcommand) in event_var(text)) do
	{
		es_xset utilisateur_commande_steamid 0
		es_getplayersteamid utilisateur_commande_steamid event_var(userid)
		es_xset utilisateur_commande_est_admin 0
		es_exists utilisateur_commande_est_admin key super_adminlist server_var(utilisateur_commande_steamid)
		ifx true(utilisateur_commande_est_admin) do
		{
			es_token targetid event_var(text) 2
			es_getuserid targetindex server_var(targetid)
			ifx true (targetindex) do
			{
				es est_shake server_var(targetindex) 20 20 40
				es_xsetinfo wizz_wizzed 0
				es_xset format ""
				es_getplayername wizz_wizzed server_var(targetindex)
				es_xsetinfo wizz_wizzeur 0
				es_getplayername wizz_wizzeur event_var(userid)
				es_format format_wizz "(ADMIN) %1: nudged player %2" server_var(wizz_wizzeur) server_var(wizz_wizzed)
				es_keycreate wizz server_var(targetindex)
				if (server_var(super_tell) == "prive") then es_tell server_var(targetindex)#green An admin nudged you!
				if (server_var(super_tell) == "public") then es_msg server_var(format_wizz)
			}
			else es_tell event_var(userid) #green Unknown player.
		}
		else es_tell event_var(userid) #green You can not use this command!
	}
	if (server_var(unlimited_chatcommand) in event_var(text)) do
	{
		es_xset utilisateur_commande_steamid 0
		es_getplayersteamid utilisateur_commande_steamid event_var(userid)
		es_xset utilisateur_commande_est_admin 0
		es_exists utilisateur_commande_est_admin key super_adminlist server_var(utilisateur_commande_steamid)
		ifx true(utilisateur_commande_est_admin) do
		{
			es_token targetid event_var(text) 2
			es_getuserid targetindex server_var(targetid)
			ifx true (targetindex) do
			{
				es playerset clip server_var(targetindex) event_var(es_userweapon) 999
				es_xsetinfo unlimited_unlimiteded 0
				es_xset format ""
				es_getplayername unlimited_unlimiteded server_var(targetindex)
				es_xsetinfo unlimited_unlimitedeur 0
				es_getplayername unlimited_unlimitedeur event_var(userid)
				es_format format_unlimited "(ADMIN) %1: gave player %2 unlimited ammo" server_var(unlimited_unlimitedeur) server_var(unlimited_unlimiteded)
				if (server_var(super_tell) == "prive") then es_tell server_var(targetindex)#green An admin gave you unlimited ammo!
				if (server_var(super_tell) == "public") then es_msg server_var(format_unlimited)
			}
			else es_tell event_var(userid) #green Unknown player.
		}
		else es_tell event_var(userid) #green You can not use this command!
	}
	if (server_var(desarme_chatcommand) in event_var(text)) do
	{
		es_xset utilisateur_commande_steamid 0
		es_getplayersteamid utilisateur_commande_steamid event_var(userid)
		es_xset utilisateur_commande_est_admin 0
		es_exists utilisateur_commande_est_admin key super_adminlist server_var(utilisateur_commande_steamid)
		ifx true(utilisateur_commande_est_admin) do
		{
			es_token targetid event_var(text) 2
			es_getuserid targetindex server_var(targetid)
			ifx true (targetindex) do
			{
				es est_stripPlayer server_var(targetindex) 0
				es_xsetinfo desarme_desarmeed 0
				es_xset format ""
				es_getplayername desarme_desarmeed server_var(targetindex)
				es_xsetinfo desarme_desarmeeur 0
				es_getplayername desarme_desarmeeur event_var(userid)
				es_format format_desarme "(ADMIN) %1: disarmed player %2" server_var(desarme_desarmeeur) server_var(desarme_desarmeed)
				if (server_var(desarme_vitesse) == 1) then es est_speed server_var(targetindex) 1.29
				if (server_var(super_tell) == "prive") then es_tell server_var(targetindex)#green You were disarmed by admin!
				if (server_var(super_tell) == "public") then es_msg server_var(format_desarme)
			}
			else es_tell event_var(userid) #green Unknown player.
		}
		else es_tell event_var(userid) #green You can not use this command!
	}
	if (server_var(regeneration_chatcommand) in event_var(text)) do
	{
		es_xset utilisateur_commande_steamid 0
		es_getplayersteamid utilisateur_commande_steamid event_var(userid)
		es_xset utilisateur_commande_est_admin 0
		es_exists utilisateur_commande_est_admin key super_adminlist server_var(utilisateur_commande_steamid)
		ifx true(utilisateur_commande_est_admin) do
		{
			es_token targetid event_var(text) 2
			es_getuserid targetindex server_var(targetid)
			ifx true (targetindex) do
			{
				es_exists regeneration_existsplayer key regeneration server_var(targetindex)
				if (server_var(regeneration_existsplayer) == 0) do
				{
					es_doblock super_admin/regen_targetindex
					es_xsetinfo regeneration_regenerationed 0
					es_xset format ""
					es_getplayername regeneration_regenerationed server_var(targetindex)
					es_xsetinfo regeneration_regenerationeur 0
					es_getplayername regeneration_regenerationeur event_var(userid)
					es_format format_regeneration "(ADMIN) %1: set regeneration for player %2" server_var(regeneration_regenerationeur) server_var(regeneration_regenerationed)
					es_format format_regeneration_stop "(ADMIN) %1: stopped player %2's regeneration" server_var(regeneration_regenerationeur) server_var(regeneration_regenerationed)
					es_keycreate regeneration server_var(targetindex)
					if (server_var(super_tell) == "prive") then es_tell server_var(targetindex)#green Your regeneration was increased by admin!
					if (server_var(super_tell) == "public") then es_msg server_var(format_regeneration)
				}
				else do
				{
					es_doblock super_admin/regen_targetindex_stop
					es_keydelete regeneration server_var(targetindex)
					if (server_var(super_tell) == "prive") then es_tell server_var(targetindex)#green Your regeneration is normal again!
					if (server_var(super_tell) == "public") then es_msg server_var(format_regeneration_stop)
				}
			}
			else es_tell event_var(userid) #green Unknown player.
		}
		else es_tell event_var(userid) #green You can not use this command!
	}
	if (server_var(deguise_chatcommand) in event_var(text)) do
	{
		es_xset utilisateur_commande_steamid 0
		es_getplayersteamid utilisateur_commande_steamid event_var(userid)
		es_xset utilisateur_commande_est_admin 0
		es_exists utilisateur_commande_est_admin key super_adminlist server_var(utilisateur_commande_steamid)
		ifx true(utilisateur_commande_est_admin) do
		{
			es_token targetid event_var(text) 2
			es_getuserid targetindex server_var(targetid)
			ifx true (targetindex) do
			{
				es playerset model server_var(targetindex) props_c17/oildrum001.mdl
				es_xsetinfo deguise_deguiseed 0
				es_xset format ""
				es_getplayername deguise_deguiseed server_var(targetindex)
				es_xsetinfo deguise_deguiseeur 0
				es_getplayername deguise_deguiseeur event_var(userid)
				es_format format_deguise "(ADMIN) %1: disguised player %2" server_var(deguise_deguiseeur) server_var(deguise_deguiseed)
				if (server_var(super_tell) == "prive") then es_tell server_var(targetindex)#green An admin disguised you!
				if (server_var(super_tell) == "public") then es_msg server_var(format_deguise)
			}
			else es_tell event_var(userid) #green Unknown player.
		}
		else es_tell event_var(userid) #green You can not use this command!
	}
	if (server_var(enterre_chatcommand) in event_var(text)) do
	{
		es_xset utilisateur_commande_steamid 0
		es_getplayersteamid utilisateur_commande_steamid event_var(userid)
		es_xset utilisateur_commande_est_admin 0
		es_exists utilisateur_commande_est_admin key super_adminlist server_var(utilisateur_commande_steamid)
		ifx true(utilisateur_commande_est_admin) do
		{
			es_token targetid event_var(text) 2
			es_getuserid targetindex server_var(targetid)
			ifx true (targetindex) do
			{
				es_getplayerlocation super_buryx super_buryy super_buryz server_var(targetindex)
				es_math super_buryz - 35
				es_setpos server_var(targetindex) server_var(super_buryx) server_var(super_buryy) server_var(super_buryz)
				es_xsetinfo enterre_enterreed 0
				es_xset format ""
				es_getplayername enterre_enterreed server_var(targetindex)
				es_xsetinfo enterre_enterreeur 0
				es_getplayername enterre_enterreeur event_var(userid)
				es_format format_enterre "(ADMIN) %1: buried player %2" server_var(enterre_enterreeur) server_var(enterre_enterreed)
				if (server_var(super_renvoimenu) == 1) then es_xdoblock super_admin/enterre_playerlist
				if (server_var(super_tell) == "prive") then es_tell server_var(targetindex)#green You were buried by an admin!
				if (server_var(super_tell) == "public") then es_msg server_var(format_enterre)
			}
			else es_tell event_var(userid) #green Unknown player.
		}
		else es_tell event_var(userid) #green You can not use this command!
	}
}

block ouverture_menu
{
	es_xset utilisateur_commande_userid 0
	es_xgetcmduserid utilisateur_commande_userid
	es_xset utilisateur_commande_steamid 0
	es_getplayersteamid utilisateur_commande_steamid server_var(utilisateur_commande_userid)
	es_xset utilisateur_commande_est_admin 0
	es_exists utilisateur_commande_est_admin key super_adminlist server_var(utilisateur_commande_steamid)
	ifx true(utilisateur_commande_est_admin) do
	{

		es popup send super_admin_main server_var(utilisateur_commande_userid)

	}
	else es_tell server_var(utilisateur_commande_userid) #green You can not use this command!
}

block speed_playerlist
{
	keymenu exists speed_existsmenu speedmenu
	if (server_var(speed_existsmenu) == 1) then keymenu delete speedmenu
	es_xkeygroupcreate speedlist
	foreach player speed_player #alive "es_xdoblock super_admin/speed_listing"
	keymenu create speedmenu speed_choice super_admin/speed speedlist #keyvalue name #key Speed the player:
	es keymenu send speedmenu event_var(userid)
	keymenu backmenu speedmenu super_admin_page1
	es_xkeygroupdelete speedlist
}

block speed_listing
{
	es_keycreate speedlist server_var(speed_player)
	es_getplayername speed_name server_var(speed_player)
	es_exists speed_existsplayer key speed server_var(speed_player)
	if (server_var(speed_existsplayer) == 1) do
	{
		es_format speed_listname "SPEED - %1" server_var(speed_name)
		es_keysetvalue speedlist server_var(speed_player) name server_var(speed_listname)
	}
	else do
	{
		es_keysetvalue speedlist server_var(speed_player) name server_var(speed_name)
	}
}

block speed
{
	es_exists speed_existsplayer key speed server_var(speed_choice)
	if (server_var(speed_existsplayer) == 0) do
	{
		es est_speed server_var(speed_choice) 2
		es_keycreate speed server_var(speed_choice)
		es_xsetinfo speed_speeded 0
		es_xset format ""
		es_getplayername speed_speeded server_var(speed_choice)
		es_xsetinfo speed_speedeur 0
		es_getplayername speed_speedeur server_var(_popup_userid)
		es_format format_speed "(ADMIN) %1: increased player %2's speed" server_var(speed_speedeur) server_var(speed_speeded)
		es_format format_speed_stop "(ADMIN) %1: set player %2's speed to normal" server_var(speed_speedeur) server_var(speed_speeded)
		es_keycreate speed server_var(speed_choice)
		if (server_var(super_tell) == "prive") then es_tell server_var(speed_choice)#green Your speed was increased by an admin!
		if (server_var(super_tell) == "public") then es_msg server_var(format_speed)
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
	}
	else do
	{
		es est_speed server_var(speed_choice) 1
		es_keydelete speed server_var(speed_choice)
		if (server_var(super_tell) == "public") then es_msg server_var(format_speed_stop)
		if (server_var(super_tell) == "prive") then es_tell server_var(speed_choice)#green Your speed is normal again !
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
	}
	if (server_var(super_renvoimenu) == 1) then es_xdoblock super_admin/speed_playerlist
}

block respawn_playerlist
{
	keymenu exists respawn_existsmenu respawnmenu
	if (server_var(respawn_existsmenu) == 1) then keymenu delete respawnmenu
	es_xcreateplayerlist respawnlist
	keymenu create respawnmenu respawn_choice super_admin/respawn respawnlist #keyvalue name #key Respawn the player:
	es keymenu send respawnmenu event_var(userid)
	keymenu backmenu respawnmenu super_admin_page1
	es_xkeygroupdelete respawnlist
}

block respawn
{
	es est_spawn server_var(respawn_choice) 1
	if (server_var(super_renvoimenu) == 1) then es_xdoblock super_admin/respawn_playerlist
	es_xsetinfo respawn_respawned 0
	es_xset format ""
	es_getplayername respawn_respawned server_var(respawn_choice)
	es_xsetinfo respawn_respawneur 0
	es_getplayername respawn_respawneur server_var(_popup_userid)
	es_format format_respawn "(ADMIN) %1: ressurected player %2" server_var(respawn_respawneur) server_var(respawn_respawned)
	es_keycreate respawn server_var(respawn_choice)
	if (server_var(super_tell) == "prive") then es_tell server_var(respawn_choice)#green You have been ressurected by an admin!
	if (server_var(super_tell) == "public") then es_msg server_var(format_respawn)
	if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
}

block god_playerlist
{
	keymenu exists god_existsmenu godmenu
	if (server_var(god_existsmenu) == 1) then keymenu delete godmenu
	es_xkeygroupcreate godlist
	foreach player god_player #alive "es_xdoblock super_admin/god_listing"
	keymenu create godmenu god_choice super_admin/god godlist #keyvalue name #key Set the godmode on player:
	es keymenu send godmenu event_var(userid)
	keymenu backmenu godmenu super_admin_page1
	es_xkeygroupdelete godlist
}

block god_listing
{
	es_keycreate godlist server_var(god_player)
	es_getplayername god_name server_var(god_player)
	es_exists god_existsplayer key god server_var(god_player)
	if (server_var(god_existsplayer) == 1) do
	{
		es_format god_listname "GOD - %1" server_var(god_name)
		es_keysetvalue godlist server_var(god_player) name server_var(god_listname)
	}
	else do
	{
		es_keysetvalue godlist server_var(god_player) name server_var(god_name)
	}
}

block god
{
	es_exists god_existsplayer key god server_var(god_choice)
	if (server_var(god_existsplayer) == 0) do
	{
		es est_god server_var(god_choice) 1
		es_keycreate god server_var(god_choice)
		es_xsetinfo god_goded 0
		es_xset format ""
		es_getplayername god_goded server_var(god_choice)
		es_xsetinfo god_godeur 0
		es_getplayername god_godeur server_var(_popup_userid)
		es_format format_god "(ADMIN) %1: made player %2 invincible" server_var(god_godeur) server_var(god_goded)
		es_format format_god_stop "(ADMIN) %1: player %2 is mortal again" server_var(god_godeur) server_var(god_goded)
		es_keycreate god server_var(god_choice)
		if (server_var(super_tell) == "prive") then es_tell server_var(god_choice)#green An admin make you invincible!
		if (server_var(super_tell) == "public") then es_msg server_var(format_god)
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
	}
	else do
	{
		es est_god server_var(god_choice) 0
		es_keydelete god server_var(god_choice)
		if (server_var(super_tell) == "prive") then es_tell server_var(god_choice)#green You are mortal again!
		if (server_var(super_tell) == "public") then es_msg server_var(format_god_stop)
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
	}
	if (server_var(super_renvoimenu) == 1) then es_xdoblock super_admin/god_playerlist
}

block rocket_playerlist
{
	keymenu exists rocket_existsmenu rocketmenu
	if (server_var(rocket_existsmenu) == 1) then keymenu delete rocketmenu
	es_xcreateplayerlist rocketlist
	es_xkeygroupfilter rocketlist only isdead 0
	keymenu create rocketmenu rocket_choice super_admin/rocket rocketlist #keyvalue name #key Rocket on the player:
	es keymenu send rocketmenu event_var(userid)
	keymenu backmenu rocketmenu super_admin_page1
	es_xkeygroupdelete rocketlist
}

block rocket
{
	es est_rocket server_var(rocket_choice)
	if (server_var(super_renvoimenu) == 1) then es_xdoblock super_admin/rocket_playerlist
	es_xsetinfo rocket_rocketed 0
	es_xset format ""
	es_getplayername rocket_rocketed server_var(rocket_choice)
	es_xsetinfo rocket_rocketeur 0
	es_getplayername rocket_rocketeur server_var(_popup_userid)
	es_format format_rocket "(ADMIN) %1: made player %2 into a rocket" server_var(rocket_rocketeur) server_var(rocket_rocketed)
	es_keycreate rocket server_var(rocket_choice)
	if (server_var(super_tell) == "prive") then es_tell server_var(rocket_choice)#green An admin make you into a rocket!
	if (server_var(super_tell) == "public") then es_msg server_var(format_rocket)
	if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
}

block jetpack_playerlist
{
	keymenu exists jetpack_existsmenu jetpackmenu
	if (server_var(jetpack_existsmenu) == 1) then keymenu delete jetpackmenu
	es_xkeygroupcreate jetpacklist
	foreach player jetpack_player #alive "es_xdoblock super_admin/jetpack_listing"
	keymenu create jetpackmenu jetpack_choice super_admin/jetpack jetpacklist #keyvalue name #key Give jetpack to player:
	es keymenu send jetpackmenu event_var(userid)
	keymenu backmenu jetpackmenu super_admin_page1
	es_xkeygroupdelete jetpacklist
}

block jetpack_listing
{
	es_keycreate jetpacklist server_var(jetpack_player)
	es_getplayername jetpack_name server_var(jetpack_player)
	es_exists jetpack_existsplayer key jetpack server_var(jetpack_player)
	if (server_var(jetpack_existsplayer) == 1) do
	{
		es_format jetpack_listname "JET - %1" server_var(jetpack_name)
		es_keysetvalue jetpacklist server_var(jetpack_player) name server_var(jetpack_listname)
	}
	else do
	{
		es_keysetvalue jetpacklist server_var(jetpack_player) name server_var(jetpack_name)
	}
}

block jetpack
{
	es_exists jetpack_existsplayer key jetpack server_var(jetpack_choice)
	if (server_var(jetpack_existsplayer) == 0) do
	{
		es est_jetpack server_var(jetpack_choice) 1
		es_keycreate jetpack server_var(jetpack_choice)
		es_xsetinfo jetpack_jetpacked 0
		es_xset format ""
		es_getplayername jetpack_jetpacked server_var(jetpack_choice)
		es_xsetinfo jetpack_jetpackeur 0
		es_getplayername jetpack_jetpackeur server_var(_popup_userid)
		es_format format_jetpack "(ADMIN) %1: gave player %2 a jetpack" server_var(jetpack_jetpackeur) server_var(jetpack_jetpacked)
		es_format format_jetpack_stop "(ADMIN) %1: took away player %2's jetpack" server_var(jetpack_jetpackeur) server_var(jetpack_jetpacked)
		es_keycreate jetpack server_var(jetpack_choice)
		if (server_var(super_tell) == "prive") then es_tell server_var(jetpack_choice)#green You received a jetpack from an admin!
		if (server_var(super_tell) == "public") then es_msg server_var(format_jetpack)
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
	}
	else do
	{
		es est_jetpack server_var(jetpack_choice) 0
		es_keydelete jetpack server_var(jetpack_choice)
		if (server_var(super_tell) == "prive") then es_tell server_var(jetpack_choice)#green An admin took away your jetpack!
		if (server_var(super_tell) == "public") then es_msg server_var(format_jetpack_stop)
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
	}
	if (server_var(super_renvoimenu) == 1) then es_xdoblock super_admin/jetpack_playerlist
}

block gravity_playerlist
{
	keymenu exists gravity_existsmenu gravitymenu
	if (server_var(gravity_existsmenu) == 1) then keymenu delete gravitymenu
	es_xkeygroupcreate gravitylist
	foreach player gravity_player #alive "es_xdoblock super_admin/gravity_listing"
	keymenu create gravitymenu gravity_choice super_admin/gravity gravitylist #keyvalue name #key Change the gravity to player:
	es keymenu send gravitymenu event_var(userid)
	keymenu backmenu gravitymenu super_admin_page1
	es_xkeygroupdelete gravitylist
}

block gravity_listing
{
	es_keycreate gravitylist server_var(gravity_player)
	es_getplayername gravity_name server_var(gravity_player)
	es_exists gravity_existsplayer key gravity server_var(gravity_player)
	if (server_var(gravity_existsplayer) == 1) do
	{
		es_format gravity_listname "GRAV - %1" server_var(gravity_name)
		es_keysetvalue gravitylist server_var(gravity_player) name server_var(gravity_listname)
	}
	else do
	{
		es_keysetvalue gravitylist server_var(gravity_player) name server_var(gravity_name)
	}
}

block gravity
{
	es_exists gravity_existsplayer key gravity server_var(gravity_choice)
	if (server_var(gravity_existsplayer) == 0) do
	{
		es est_setgravity server_var(gravity_choice) 0.4
		es_keycreate gravity server_var(gravity_choice)
		es_xsetinfo gravity_gravityed 0
		es_xset format ""
		es_getplayername gravity_gravityed server_var(gravity_choice)
		es_xsetinfo gravity_gravityeur 0
		es_getplayername gravity_gravityeur server_var(_popup_userid)
		es_format format_gravity "(ADMIN) %1: set player %2's gravity" server_var(gravity_gravityeur) server_var(gravity_gravityed)
		es_format format_gravity_stop "(ADMIN) %1: set player %2's gravity to normal" server_var(gravity_gravityeur) server_var(gravity_gravityed)
		es_keycreate gravity server_var(gravity_choice)
		if (server_var(super_tell) == "prive") then es_tell server_var(gravity_choice)#green Your gravity was set by an admin!
		if (server_var(super_tell) == "public") then es_msg server_var(format_gravity)
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
	}
	else do
	{
		es est_setgravity server_var(gravity_choice) 1
		es_keydelete gravity server_var(gravity_choice)
		if (server_var(super_tell) == "prive") then es_tell server_var(gravity_choice)#green Your gravity has been set to normal!
		if (server_var(super_tell) == "public") then es_msg server_var(format_gravity_stop)
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
	}
	if (server_var(super_renvoimenu) == 1) then es_xdoblock super_admin/gravity_playerlist
}

block invisible_playerlist
{
	keymenu exists invisible_existsmenu invisiblemenu
	if (server_var(invisible_existsmenu) == 1) then keymenu delete invisiblemenu
	es_xkeygroupcreate invisiblelist
	foreach player invisible_player #alive "es_xdoblock super_admin/invisible_listing"
	keymenu create invisiblemenu invisible_choice super_admin/invisible invisiblelist #keyvalue name #key Make a player invisible:
	es keymenu send invisiblemenu event_var(userid)
	keymenu backmenu invisiblemenu super_admin_page1
	es_xkeygroupdelete invisiblelist
}

block invisible_listing
{
	es_keycreate invisiblelist server_var(invisible_player)
	es_getplayername invisible_name server_var(invisible_player)
	es_exists invisible_existsplayer key invisible server_var(invisible_player)
	if (server_var(invisible_existsplayer) == 1) do
	{
		es_format invisible_listname "INV - %1" server_var(invisible_name)
		es_keysetvalue invisiblelist server_var(invisible_player) name server_var(invisible_listname)
	}
	else do
	{
		es_keysetvalue invisiblelist server_var(invisible_player) name server_var(invisible_name)
	}
}

block invisible
{
	es_exists invisible_existsplayer key invisible server_var(invisible_choice)
	if (server_var(invisible_existsplayer) == 0) do
	{
		if (server_var(invisible_statut) == total) then es est_SetPlayerColor server_var(invisible_choice) 255 255 255 0 1
		if (server_var(invisible_statut) == partiel) then es est_SetPlayerColor server_var(invisible_choice) 255 255 255 22 1
		es_keycreate invisible server_var(invisible_choice)
		es_xsetinfo invisible_invisibleed 0
		es_xset format ""
		es_getplayername invisible_invisibleed server_var(invisible_choice)
		es_xsetinfo invisible_invisibleeur 0
		es_getplayername invisible_invisibleeur server_var(_popup_userid)
		es_format format_invisible "(ADMIN) %1: made player %2 invisible" server_var(invisible_invisibleeur) server_var(invisible_invisibleed)
		es_format format_invisible_stop "(ADMIN) %1: made player %2 visible again" server_var(invisible_invisibleeur) server_var(invisible_invisibleed)
		es_keycreate invisible server_var(invisible_choice)
		if (server_var(super_tell) == "prive") then es_tell server_var(invisible_choice)#green You were made invisible by an admin!
		if (server_var(super_tell) == "public") then es_msg server_var(format_invisible)
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
	}
	else do
	{
		es est_SetPlayerColor server_var(invisible_choice) 255 255 255 255 1
		es_keydelete invisible server_var(invisible_choice)
		if (server_var(super_tell) == "prive") then es_tell server_var(invisible_choice)#green You are visible again!
		if (server_var(super_tell) == "public") then es_msg server_var(format_invisible_stop)
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
	}
	if (server_var(super_renvoimenu) == 1) then es_xdoblock super_admin/invisible_playerlist
}

block wizz_playerlist
{
	keymenu exists wizz_existsmenu wizzmenu
	if (server_var(wizz_existsmenu) == 1) then keymenu delete wizzmenu
	es_xcreateplayerlist wizzlist
	es_xkeygroupfilter wizzlist only isdead 0
	keymenu create wizzmenu wizz_choice super_admin/wizz wizzlist #keyvalue name #key Nudge the player:
	es keymenu send wizzmenu event_var(userid)
	keymenu backmenu wizzmenu super_admin_page1
	es_xkeygroupdelete wizzlist
}

block wizz
{
	es est_shake server_var(wizz_choice) 20 20 40
	if (server_var(super_renvoimenu) == 1) then es_xdoblock super_admin/wizz_playerlist
	es_xsetinfo wizz_wizzed 0
	es_xset format ""
	es_getplayername wizz_wizzed server_var(wizz_choice)
	es_xsetinfo wizz_wizzeur 0
	es_getplayername wizz_wizzeur server_var(_popup_userid)
	es_format format_wizz "(ADMIN) %1: nudged player %2" server_var(wizz_wizzeur) server_var(wizz_wizzed)
	es_keycreate wizz server_var(wizz_choice)
	if (server_var(super_tell) == "prive") then es_tell server_var(wizz_choice)#green An admin nudged you!
	if (server_var(super_tell) == "public") then es_msg server_var(format_wizz)
	if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
}

block unlimited_playerlist
{
	keymenu exists unlimited_existsmenu unlimitedmenu
	if (server_var(unlimited_existsmenu) == 1) then keymenu delete unlimitedmenu
	es_xcreateplayerlist unlimitedlist
	es_xkeygroupfilter unlimitedlist only isdead 0
	keymenu create unlimitedmenu unlimited_choice super_admin/unlimited unlimitedlist #keyvalue name #key Unlimited ammo to player:
	es keymenu send unlimitedmenu event_var(userid)
	keymenu backmenu unlimitedmenu super_admin_page2
	es_xkeygroupdelete unlimitedlist
}

block unlimited
{
	es playerset clip server_var(unlimited_choice) event_var(es_userweapon) 999
	if (server_var(super_renvoimenu) == 1) then es_xdoblock super_admin/unlimited_playerlist
	es_xsetinfo unlimited_unlimiteded 0
	es_xset format ""
	es_getplayername unlimited_unlimiteded server_var(unlimited_choice)
	es_xsetinfo unlimited_unlimitedeur 0
	es_getplayername unlimited_unlimitedeur server_var(_popup_userid)
	es_format format_unlimited "(ADMIN) %1: gave player %2 unlimited ammo" server_var(unlimited_unlimitedeur) server_var(unlimited_unlimiteded)
	es_keycreate unlimited server_var(unlimited_choice)
	if (server_var(super_tell) == "prive") then es_tell server_var(unlimited_choice)#green An admin gave you unlimited ammo!
	if (server_var(super_tell) == "public") then es_msg server_var(format_unlimited)
	if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
}

block desarme_playerlist
{
	keymenu exists desarme_existsmenu desarmemenu
	if (server_var(desarme_existsmenu) == 1) then keymenu delete desarmemenu
	es_xcreateplayerlist desarmelist
	es_xkeygroupfilter desarmelist only isdead 0
	keymenu create desarmemenu desarme_choice super_admin/desarme desarmelist #keyvalue name #key Disarm the player:
	es keymenu send desarmemenu event_var(userid)
	keymenu backmenu desarmemenu super_admin_page2
	es_xkeygroupdelete desarmelist
}

block desarme
{
	es est_stripPlayer server_var(desarme_choice) 0
	if (server_var(desarme_vitesse) == 1) then es est_speed server_var(desarme_choice) 1.29
	if (server_var(super_renvoimenu) == 1) then es_xdoblock super_admin/desarme_playerlist
	es_xsetinfo desarme_desarmeed 0
	es_xset format ""
	es_getplayername desarme_desarmeed server_var(desarme_choice)
	es_xsetinfo desarme_desarmeeur 0
	es_getplayername desarme_desarmeeur server_var(_popup_userid)
	es_format format_desarme "(ADMIN) %1: disarmed player %2" server_var(desarme_desarmeeur) server_var(desarme_desarmeed)
	es_keycreate desarme server_var(desarme_choice)
	if (server_var(super_tell) == "prive") then es_tell server_var(desarme_choice)#green An admin disarmed you!
	if (server_var(super_tell) == "public") then es_msg server_var(format_desarme)
	if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
}

block regeneration_playerlist
{
	keymenu exists regeneration_existsmenu regenerationmenu
	if (server_var(regeneration_existsmenu) == 1) then keymenu delete regenerationmenu
	es_xkeygroupcreate regenerationlist
	foreach player regeneration_player #alive "es_xdoblock super_admin/regeneration_listing"
	keymenu create regenerationmenu regeneration_choice super_admin/regeneration regenerationlist #keyvalue name #key Regeneration bonus for the player:
	es keymenu send regenerationmenu event_var(userid)
	keymenu backmenu regenerationmenu super_admin_page2
	es_xkeygroupdelete regenerationlist
}

block regeneration_listing
{
	es_keycreate regenerationlist server_var(regeneration_player)
	es_getplayername regeneration_name server_var(regeneration_player)
	es_exists regeneration_existsplayer key regeneration server_var(regeneration_player)
	if (server_var(regeneration_existsplayer) == 1) do
	{
		es_format regeneration_listname "REGEN - %1" server_var(regeneration_name)
		es_keysetvalue regenerationlist server_var(regeneration_player) name server_var(regeneration_listname)
	}
	else do
	{
		es_keysetvalue regenerationlist server_var(regeneration_player) name server_var(regeneration_name)
	}
}

block regeneration
{
	es_exists regeneration_existsplayer key regeneration server_var(regeneration_choice)
	if (server_var(regeneration_existsplayer) == 0) do
	{
		es_doblock super_admin/regen
		es_keycreate regeneration server_var(regeneration_choice)
		es_xsetinfo regeneration_regenerationed 0
		es_xset format ""
		es_getplayername regeneration_regenerationed server_var(regeneration_choice)
		es_xsetinfo regeneration_regenerationeur 0
		es_getplayername regeneration_regenerationeur server_var(_popup_userid)
		es_format format_regeneration "(ADMIN) %1: increased player %2's health regeneration" server_var(regeneration_regenerationeur) server_var(regeneration_regenerationed)
		es_format format_regeneration_stop "(ADMIN) %1: set player %2's health regeneration to normal again" server_var(regeneration_regenerationeur) server_var(regeneration_regenerationed)
		es_keycreate regeneration server_var(regeneration_choice)
		if (server_var(super_tell) == "prive") then es_tell server_var(regeneration_choice)#green Your health regeneration was increased by an admin!
		if (server_var(super_tell) == "public") then es_msg server_var(format_regeneration)
		if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
	}
	else do
	{
		es_doblock super_admin/regen_stop
		es_keydelete regeneration server_var(regeneration_choice)
		if (server_var(super_tell) == "prive") then es_tell server_var(regeneration_choice)#green Your regeneration is normal again!
		if (server_var(super_tell) == "public") then es_msg server_var(format_regeneration_stop)
	}
	if (server_var(super_renvoimenu) == 1) then es_xdoblock super_admin/regeneration_playerlist
}

block regen
{
	es_xsetinfo vie 0
	es_xsetinfo vie_vie 0
	es_getplayerprop vie server_var(regeneration_choice) CCSPlayer.baseclass.m_iHealth
	if (server_var(vie) < 100) then es_math vie + 1
	es_setplayerprop server_var(regeneration_choice) CCSPlayer.baseclass.m_iHealth server_var(vie)
	es_getplayerprop vie_vie server_var(regeneration_choice) "CCSPlayer.baseclass.pl.deadflag"
	if (server_var(vie_vie) == 0) then if (server_var(regeneration_choice) != 0) then es_delayed 0.33 es_doblock super_admin/regen
}

block regen_stop
{
	es_xsetinfo vie 0
	es_xsetinfo vie_vie 0
	es_getplayerprop vie server_var(regeneration_choice) CCSPlayer.baseclass.m_iHealth
	if (server_var(vie) < 100) then es_math vie - 1
	es_setplayerprop server_var(regeneration_choice) CCSPlayer.baseclass.m_iHealth server_var(vie)
	es_getplayerprop vie_vie server_var(regeneration_choice) "CCSPlayer.baseclass.pl.deadflag"
	if (server_var(vie_vie) == 0) then if (server_var(regeneration_choice) != 0) then es_delayed 0.33 es_doblock super_admin/regen_stop
}

block regen_targetindex
{
	es_xsetinfo vie 0
	es_xsetinfo vie_vie 0
	es_getplayerprop vie server_var(targetindex) CCSPlayer.baseclass.m_iHealth
	if (server_var(vie) < 100) then es_math vie + 1
	es_setplayerprop server_var(targetindex) CCSPlayer.baseclass.m_iHealth server_var(vie)
	es_getplayerprop vie_vie server_var(targetindex) "CCSPlayer.baseclass.pl.deadflag"
	if (server_var(vie_vie) == 0) then if (server_var(targetindex) != 0) then es_delayed 0.33 es_doblock super_admin/regen_targetindex
}

block regen_targetindex_stop
{
	es_xsetinfo vie 0
	es_xsetinfo vie_vie 0
	es_getplayerprop vie server_var(targetindex) CCSPlayer.baseclass.m_iHealth
	if (server_var(vie) < 100) then es_math vie - 1
	es_setplayerprop server_var(targetindex) CCSPlayer.baseclass.m_iHealth server_var(vie)
	es_getplayerprop vie_vie server_var(targetindex) "CCSPlayer.baseclass.pl.deadflag"
	if (server_var(vie_vie) == 0) then if (server_var(targetindex) != 0) then es_delayed 0.33 es_doblock super_admin/regen_targetindex_stop
}

block regen_id
{
	es_xsetinfo vie 0
	es_xsetinfo vie_vie 0
	es_getplayerprop vie event_var(userid) CCSPlayer.baseclass.m_iHealth
	if (server_var(vie) < 100) then es_math vie + 1
	es_setplayerprop event_var(userid) CCSPlayer.baseclass.m_iHealth server_var(vie)
	es_getplayerprop vie_vie event_var(userid) "CCSPlayer.baseclass.pl.deadflag"
	if (server_var(vie_vie) == 0) then if (event_var(userid) != 0) then es_delayed 0.33 es_doblock super_admin/regen
}

block deguise_playerlist
{
	keymenu exists deguise_existsmenu deguisemenu
	if (server_var(deguise_existsmenu) == 1) then keymenu delete deguisemenu
	es_xcreateplayerlist deguiselist
	keymenu create deguisemenu deguise_choice super_admin/deguise deguiselist #keyvalue name #key Disguise the player:
	es keymenu send deguisemenu event_var(userid)
	keymenu backmenu deguisemenu super_admin_page2
	es_xkeygroupdelete deguiselist
}

block deguise
{
	es playerset model server_var(deguise_choice) props_c17/oildrum001.mdl
	es_xsetinfo deguise_deguiseed 0
	es_xset format ""
	es_getplayername deguise_deguiseed server_var(deguise_choice)
	es_xsetinfo deguise_deguiseeur 0
	es_getplayername deguise_deguiseeur server_var(_popup_userid)
	es_format format_deguise "(ADMIN) %1: disguised player %2" server_var(deguise_deguiseeur) server_var(deguise_deguiseed)
	if (server_var(super_renvoimenu) == 1) then es_xdoblock super_admin/deguise_playerlist
	if (server_var(super_tell) == "prive") then es_tell server_var(deguise_choice)#green An admin disguised you!
	if (server_var(super_tell) == "public") then es_msg server_var(format_deguise)
	if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
}

block enterre_playerlist
{
	keymenu exists enterre_existsmenu enterremenu
	if (server_var(enterre_existsmenu) == 1) then keymenu delete enterremenu
	es_xcreateplayerlist enterrelist
	keymenu create enterremenu enterre_choice super_admin/enterre enterrelist #keyvalue name #key Bury the player:
	es keymenu send enterremenu event_var(userid)
	keymenu backmenu enterremenu super_admin_page2
	es_xkeygroupdelete enterrelist
}

block enterre
{
	es_getplayerlocation super_buryx super_buryy super_buryz server_var(enterre_choice)
	es_math super_buryz - 35
	es_setpos server_var(enterre_choice) server_var(super_buryx) server_var(super_buryy) server_var(super_buryz)
	es_xsetinfo enterre_enterreed 0
	es_xset format ""
	es_getplayername enterre_enterreed server_var(enterre_choice)
	es_xsetinfo enterre_enterreeur 0
	es_getplayername enterre_enterreeur server_var(_popup_userid)
	es_format format_enterre "(ADMIN) %1: buried player %2" server_var(enterre_enterreeur) server_var(enterre_enterreed)
	if (server_var(super_renvoimenu) == 1) then es_xdoblock super_admin/enterre_playerlist
	if (server_var(super_tell) == "prive") then es_tell server_var(enterre_choice)#green You were buried by an admin!
	if (server_var(super_tell) == "public") then es_msg server_var(format_enterre)
	if (server_var(super_sons) == 1) then es_playsound server_var(_popup_userid) "buttons/combine_button1.wav" 1.0
}

event player_spawn
{
	es_exists speed_existsplayer key speed event_var(userid)
	if (server_var(speed_existsplayer) == 1) do
	{
		es est_speed event_var(userid) 2
	}
	{
		es_exists god_existsplayer key god event_var(userid)
		if (server_var(god_existsplayer) == 1) do
		{
			es est_god event_var(userid) 1
		}
		es_exists jetpack_existsplayer key jetpack event_var(userid)
		if (server_var(jetpack_existsplayer) == 1) do
		{
			es est_jetpack event_var(userid) 1
		}
		es_exists gravity_existsplayer key gravity event_var(userid)
		if (server_var(gravity_existsplayer) == 1) do
		{
			es est_setgravity event_var(userid) 0.4
		}
		es_exists invisible_existsplayer key invisible event_var(userid)
		if (server_var(invisible_existsplayer) == 1) do
		{
			if (server_var(invisible_statut) == "total") then es est_SetPlayerColor event_var(userid) 255 255 255 0 1
			if (server_var(invisible_statut) == "partiel") then es est_SetPlayerColor event_var(userid) 255 255 255 23 1
		}
		es_exists regeneration_existsplayer key regeneration event_var(userid)
		if (server_var(regeneration_existsplayer) == 1) do
		{
			es_doblock super_admin/regen_id
		}
	}
}

block unload
{
	es_unregclientcmd server_var(super_consolecommand)
	keymenu exists speed_existsmenu speedmenu
	if (server_var(speed_existsmenu) == 1) then keymenu delete speedmenu
	keymenu exists respawn_existsmenu respawnmenu
	if (server_var(respawn_existsmenu) == 1) then keymenu delete respawnmenu
	keymenu exists rocket_existsmenu respawnmenu
	if (server_var(rocket_existsmenu) == 1) then keymenu delete rocketmenu
	keymenu exists jetpack_existsmenu jetpackmenu
	if (server_var(jetpack_existsmenu) == 1) then keymenu delete jetpackmenu
	keymenu exists gravity_existsmenu gravitymenu
	if (server_var(gravity_existsmenu) == 1) then keymenu delete gravitymenu
	keymenu exists invisible_existsmenu invisiblemenu
	if (server_var(invisible_existsmenu) == 1) then keymenu delete invisiblemenu
	keymenu exists wizz_existsmenu wizzmenu
	if (server_var(wizz_existsmenu) == 1) then keymenu delete wizzmenu
	keymenu exists unlimited_existsmenu unlimitedmenu
	if (server_var(unlimited_existsmenu) == 1) then keymenu delete unlimitedmenu
	keymenu exists desarme_existsmenu desarmemenu
	if (server_var(desarme_existsmenu) == 1) then keymenu delete desarmemenu
	keymenu exists regeneration_existsmenu regenerationmenu
	if (server_var(regeneration_existsmenu) == 1) then keymenu delete regenerationmenu
	keymenu exists pousse_existsmenu poussemenu
	if (server_var(pousse_existsmenu) == 1) then keymenu delete poussemenu
	keymenu exists deguise_existsmenu deguisemenu
	if (server_var(deguise_existsmenu) == 1) then keymenu delete deguisemenu
	keymenu exists enterre_existsmenu enterremenu
	if (server_var(enterre_existsmenu) == 1) then keymenu delete enterremenu
	es_xkeygroupdelete super_adminlist |super_admin
	popup close menu_gestion_admins #all
	popup delete menu_gestion_admins
	es_xset liste_de_joueur_existe 0
	keymenu exists liste_de_joueur_existe joueurs_listing
	ifx true(liste_de_joueur_existe) do
	{
		keymenu delete joueurs_listing
	}
	keymenu exists liste_de_joueur_existe admins_listing
	ifx true(liste_de_joueur_existe) do
	{
		keymenu delete admins_listing
	}
	keymenu exists respawn_existsmenu super_admin
	if (server_var(respawn_existsmenu) == 1) then keymenu delete super_admin
}

event round_start
{
	if (server_var(super_music_auto) == 1) do
	{
		es_xset votesuicide_temp_random 0
		es_xrand votesuicide_temp_random 1 19
		if (server_var(votesuicide_temp_random) == "1") then es_xdoblock super_admin/music_auto_1
		if (server_var(votesuicide_temp_random) == "2") then es_xdoblock super_admin/music_auto_2
		if (server_var(votesuicide_temp_random) == "3") then es_xdoblock super_admin/music_auto_3
		if (server_var(votesuicide_temp_random) == "4") then es_xdoblock super_admin/music_auto_4
		if (server_var(votesuicide_temp_random) == "5") then es_xdoblock super_admin/music_auto_5
		if (server_var(votesuicide_temp_random) == "6") then es_xdoblock super_admin/music_auto_6
		if (server_var(votesuicide_temp_random) == "7") then es_xdoblock super_admin/music_auto_7
		if (server_var(votesuicide_temp_random) == "8") then es_xdoblock super_admin/music_auto_8
		if (server_var(votesuicide_temp_random) == "9") then es_xdoblock super_admin/music_auto_9
		if (server_var(votesuicide_temp_random) == "10") then es_xdoblock super_admin/music_auto_10
		if (server_var(votesuicide_temp_random) == "11") then es_xdoblock super_admin/music_auto_11
		if (server_var(votesuicide_temp_random) == "12") then es_xdoblock super_admin/music_auto_12
		if (server_var(votesuicide_temp_random) == "13") then es_xdoblock super_admin/music_auto_13
		if (server_var(votesuicide_temp_random) == "14") then es_xdoblock super_admin/music_auto_14
		if (server_var(votesuicide_temp_random) == "15") then es_xdoblock super_admin/music_auto_15
		if (server_var(votesuicide_temp_random) == "16") then es_xdoblock super_admin/music_auto_16
		if (server_var(votesuicide_temp_random) == "17") then es_xdoblock super_admin/music_auto_17
		if (server_var(votesuicide_temp_random) == "18") then es_xdoblock super_admin/music_auto_18
		if (server_var(votesuicide_temp_random) == "19") then es_xdoblock super_admin/music_auto_19
		es_setinfo targetid 0
		es_setinfo targetindex 0
	}
}

block music_auto_1
{
	foreach player tempuserid #human "es_playsound server_var(tempuserid) music/Ravenholm_1.mp3 1.0"
}

block music_auto_2
{
	foreach player tempuserid #human "es_playsound server_var(tempuserid) music/HL2_song10.mp3 1.0"
}

block music_auto_3
{
	foreach player tempuserid #human "es_playsound server_var(tempuserid) music/HL2_song11.mp3 1.0"
}

block music_auto_4
{
	foreach player tempuserid #human "es_playsound server_var(tempuserid) music/HL2_song6.mp3 1.0"
}

block music_auto_5
{
	foreach player tempuserid #human "es_playsound server_var(tempuserid) music/HL2_song7.mp3 1.0"
}

block music_auto_6
{
	foreach player tempuserid #human "es_playsound server_var(tempuserid) music/HL2_song13.mp3 1.0"
}

block music_auto_7
{
	foreach player tempuserid #human "es_playsound server_var(tempuserid) music/HL2_song8.mp3 1.0"
}

block music_auto_8
{
	foreach player tempuserid #human "es_playsound server_var(tempuserid) music/HL2_song17.mp3 1.0"
}

block music_auto_9
{
	foreach player tempuserid #human "es_playsound server_var(tempuserid) music/HL2_song4.mp3 1.0"
}

block music_auto_10
{
	foreach player tempuserid #human "es_playsound server_var(tempuserid) music/HL2_song12_long.mp3 1.0"
}

block music_auto_11
{
	foreach player tempuserid #human "es_playsound server_var(tempuserid) music/HL2_song15.mp3 1.0"
}

block music_auto_12
{
	foreach player tempuserid #human "es_playsound server_var(tempuserid) music/HL2_song33.mp3 1.0"
}

block music_auto_13
{
	foreach player tempuserid #human "es_playsound server_var(tempuserid) music/HL2_song3.mp3 1.0"
}

block music_auto_14
{
	foreach player tempuserid #human "es_playsound server_var(tempuserid) music/HL2_song1.mp3 1.0"
}

block music_auto_15
{
	foreach player tempuserid #human "es_playsound server_var(tempuserid) music/HL2_song30.mp3 1.0"
}

block music_auto_16
{
	foreach player tempuserid #human "es_playsound server_var(tempuserid) music/HL2_song19.mp3 1.0"
}

block music_auto_17
{
	foreach player tempuserid #human "es_playsound server_var(tempuserid) music/HL2_song14.mp3 1.0"
}

block music_auto_18
{
	foreach player tempuserid #human "es_playsound server_var(tempuserid) music/HL2_song16.mp3 1.0"
}

block music_auto_19
{
	foreach player tempuserid #human "es_playsound server_var(tempuserid) music/HL2_song2.mp3 1.0"
}


/////////////////////////////////////////
// DON'T TOUCH !!!
/////////////////////////////////////////