/**=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=
	lifes_manager
-=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=-*/

native set_life(id, lifes)
native show_life(id)


/**=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=
	informer_list_tt
-=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=-*/

native get_list_book_t(szReturnList[], iLenReturn, const szNameListOne[], const szNameListMany[], any:...);


/**=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=
	get_mods
-=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=-*/
new InformerMode, mode[32]
stock fs_get_game_type()
{
	get_pcvar_string(InformerMode, mode, 31)
	if (equal (mode, "DUEL")) 	        return 0;
	else if (equal (mode, "TRAPS")) 	return 1;
	else if (equal (mode, "FREE"))          return 2;
	else if (equal (mode, "SNOW"))          return 3;
	else if (equal (mode, "SAW"))           return 4;
	else if (equal (mode, "INVIS")) 	return 5;
	else if (equal (mode, "RAMBO")) 	return 6;
	else if (equal (mode, "B_MEN")) 	return 7;
	else if (equal (mode, "VAMPIRE")) 	return 8;
	
	return -1;
}

/**=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=
	money_lifes_menu
-=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=-*/
enum 
{
	MONEY = 0, 
	LIFES 
}

/**
 * @param id - index player
 * @param type - that open 
*/
native open_transfer_menu(id, type);

/**=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=
	shop_manager
-=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=-*/
native win_money_big(id)

/**=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=
	level_system
-=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=-*/
/**
 * Функция устанавливает игроку уровень.
 * @параметр iPlayer - Индекс игрока.
 * @параметр iLevel - Уровень.
*/
native set_user_level( iPlayer, iLevel ) ;

/**
 * Функция устанавливает игроку Опыт.
 * @параметр iPlayer - Индекс игрока.
 * @параметр iExp - Уровень.
*/
native set_user_experience( iPlayer, iExp ) ;

/**
 * Функция получает уровень игрока.
 * @параметр iPlayer - Индекс игрока.
 * @возвращает - уровень игрока.
*/
native get_user_level( iPlayer ) ;

/**
 * Функция получает опыт игрока.
 * @параметр iPlayer - Индекс игрока.
 * @возвращает - опыт игрока.
*/
native get_user_experience( iPlayer ) ;

/**
 * Функция получает опыт игрока для следующего уровня.
 * @параметр iPlayer - Индекс игрока.
 * @возвращает - опыт для следующего уровня.
*/
native get_experience_next_level( iPlayer ) ;

/**=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=
	money_system
-=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=-*/
/**
 * Узнать кол-во денег
*/
native dr_get_user_money(index) ;

/**
 * Выдать некое кол-во денег
*/
native dr_set_user_money(index, num) ;