/* 
*	'JustServer JailBreak' functions API
*	
*/

#if defined _JS_jail_included
  #endinput
#endif
#define _JS_jail_included

#pragma reqlib JS_jail

enum _:PlrCustomType {
	PLAYER_NOTYPE,
	PLAYER_SIMON,
	PLAYER_WANTED
}

enum _:PrisonerSkin {
	SKIN_NA = -1,
	SKIN_WHITE,
	SKIN_BLUE,
	SKIN_PURPLE,
	SKIN_BROWN,
	SKIN_GRAY,
	SKIN_GREEN,
	SKIN_RED
}

/* Natives */

/*
* Get custom player type. All types are defined in enum PlrCustomType.
*
* If player has not custom type PLAYER_NOTYPE is returned and when you
* should get player team to determine player role.
*
*	@index - player index
*	@return - custom player type
*/
native jb_get_player_type(index)

/*
* Get prisoner skin. All types are defined in enum PrisonerSkin.
*
* If a player is not a prisoner or he is dead return result is not applicable.
* You should make this checks in calling plugin!
*
*	@index - player index
*	@return - player skin
*/
native jb_get_prisoner_skin(index)

native jb_get_modeid(index)


/* Forwards */

/*
* This forward is called when the player becomes last prisoner.
* 
* Return: no return
* 
*/
forward fw_jb_last_t(index)

/*
* This forward is called when the player becomes simon.
* 
* Return: no return
* 
*/
forward fw_jb_simon_become(index)

/*
* This forward is called when the player <> simon.
* 
* Return: no return
* 
*/
forward fw_jb_simon_done(index)

/*
* This forward is called when the player becomes wanted prisoner.
* 
* Return: no return
* 
*/
forward fw_jb_wanted_t(index)

/*
* This forward is called when there will be a game in the current round.
* It is weekend.
* 
* Return: no return
* 
*/
forward fw_jb_game_day()

/*
* Форвард вызывается когда меняется день на сервере
* 
* @iDay - текущий день на сервере
* Return: no return
* 
*/
forward fw_event_daychange(iDay)