
new amxx_config_dir[64],amxx_base_dir[64],amxx_data_dir[64];
new g_msg_screen_fade,g_sprite_lightning,g_msg_death_msg,g_msg_bartime;
new g_sprite_beam,g_sprite_smoke,g_msg_screen_shake,g_sprite_explosion;
new g_msg_status_icon,g_sprite_shockwave,g_sprite_streak,g_sprite_pflare;
new g_sprite_burning,g_sprite_gwave;

//---------------------------------------------------------------------

new g_player_class[MAXPLAYERS+1]=0;
new g_player_experience[MAXPLAYERS+1]=0;
new g_player_level[MAXPLAYERS+1]=BLEACH_START_LEVEL;
new g_player_skillpoints[MAXPLAYERS+1]=BLEACH_START_SKILLPOINTS;
new g_player_attributepoints[MAXPLAYERS+1]=BLEACH_START_ATTRIBUTEPOINTS;
new g_player_spirit[MAXPLAYERS+1]=BLEACH_START_SPIRIT_POWER;
new g_player_max_health[MAXPLAYERS+1];
new g_player_max_armour[MAXPLAYERS+1];
new g_player_max_spirit[MAXPLAYERS+1]=BLEACH_MAXIMUM_SPIRIT_POWER;
new g_player_next_level[BLEACH_MAX_LEVELS+1]={0,200,400,800,1600,3200,6400,12800,25600,51200,9999999};
new g_player_current_skill[MAXPLAYERS+1]=0;
new g_player_volcanic_flame[MAXPLAYERS+1]=0;
new g_player_frosted[MAXPLAYERS+1]=0;
new g_player_stunned[MAXPLAYERS+1]=0;
new g_player_death_stinged[MAXPLAYERS+1]=0;
new g_player_statusicon[MAXPLAYERS+1][64];
new g_player_damage_dealt[MAXPLAYERS+1][MAXPLAYERS+1];
new g_player_endurance[MAXPLAYERS+1]=0;
new g_player_item[MAXPLAYERS+1]=0;

new g_player_planter;
new g_player_defuser;
new g_player_bomber;

new g_sql_string[256];
new g_sql_table[64];
new g_sql_error[256];

//---------------------------------------------------------------------

new Handle:g_sql_tuple;
new Handle:g_sql_connect;
new Handle:g_sql_query;

//---------------------------------------------------------------------

new g_skill[MAXPLAYERS+1][64];
new g_sound[MAXPLAYERS+1][64];

//---------------------------------------------------------------------

new Float:g_player_last_event[MAXPLAYERS+1][64];
new Float:g_player_athletic[MAXPLAYERS+1]=0.0;
new Float:g_player_acrobatic[MAXPLAYERS+1]=1.0;

//---------------------------------------------------------------------

new Float:g_item_color_red[4]={
				0.0, //None
				255.0,  //Gigai
				0.0, //Injection
				0.0}; //Mantle

new Float:g_item_color_green[4]={
				0.0, //None
				0.0, //Gigai
				255.0, //Injection
				0.0}; //Mantle

new Float:g_item_color_blue[4]={
				0.0, //None
				0.0, //Gigai
				0.0, //Injection
				255.0}; //Mantle

//---------------------------------------------------------------------

new const g_bleach_classes[BLEACH_MAX_CLASSES][]={"None","Death God","Hollow"};
new const g_item_names[BLEACH_MAX_ITEMS+1][]={"None","Gigai","Injection","Brown Mantle"};

//---------------------------------------------------------------------

//Death God skill names
new const g_dg_skill_names[BLEACH_MAX_SKILLS][]={
						"White Lightning",
						"Shine Brightly (passive)",
						"Ice Ring",
						"Restrain (passive)",
						"Cherry Blossoms",
						"Death Sting (passive)"};
//Posetive Death God client commands
new const g_dg_skill_p_cmds[BLEACH_MAX_SKILLS][]={
						"bm_wlight",
						"",
						"bm_icering",
						"",
						"bm_cherry",
						""};
//Negative Death God client commands
new const g_dg_skill_n_cmds[BLEACH_MAX_SKILLS][]={
						"",
						"",
						"",
						"",
						"",
						""};
//Hollow skill names				
new const g_hw_skill_names[BLEACH_MAX_SKILLS][]={
						"Devour Soul (passive)",
						"Hollow Bullet",
						"Negation (passive)",
						"Cero",
						"Steel Skin (passive)",
						"Volcanic Flame"};
//Posetive Hollow client commands
new const g_hw_skill_p_cmds[BLEACH_MAX_SKILLS][]={
						"",
						"bm_hbullet",
						"",
						"+bm_cero",
						"",
						"bm_flame"};
//Negative Hollow client commands
new const g_hw_skill_n_cmds[BLEACH_MAX_SKILLS][]={
						"",
						"",
						"",
						"-bm_cero",
						"",
						""};
		
//---------------------------------------------------------------------

new const html_header[] = "<html><head><link href='bleach.css' rel='stylesheet' type='text/css' /></head><body>";
new const html_footer[] = "</body></html>";

//---------------------------------------------------------------------

new bool:g_player_first_spawn[MAXPLAYERS+1]=true;
new bool:g_restart_attempt[MAXPLAYERS+1];
new bool:g_player_negation_used[MAXPLAYERS+1];
new bool:g_player_negating[MAXPLAYERS+1];
new bool:g_player_spirit_releasing[MAXPLAYERS+1];
new bool:g_player_cero_charged[MAXPLAYERS+1];
new bool:g_player_class_selected[MAXPLAYERS+1];
new bool:g_player_skill_reseted[MAXPLAYERS+1];
new bool:g_player_character_reseted[MAXPLAYERS+1];
new bool:g_player_in_skill[MAXPLAYERS+1];
new bool:g_player_zoomed[MAXPLAYERS+1];
new bool:g_player_frozen[MAXPLAYERS+1];
new bool:g_player_burning[MAXPLAYERS+1];
new bool:g_player_died_by_skill[MAXPLAYERS+1];
new bool:g_player_use[MAXPLAYERS+1];
new bool:g_player_item_in_use[MAXPLAYERS+1];

new bool:g_event_freeze_time;
new bool:g_event_buy_time;
new bool:g_event_round_end;
new bool:g_event_planted;

new bool:g_database_initialized;
new bool:g_sql_available;

//---------------------------------------------------------------------

new cvar_sql_host;
new cvar_sql_user;
new cvar_sql_password;
new cvar_sql_database;
new cvar_sql_type;
new cvar_sql_table;

new cvar_bleach;
new cvar_savexp;
new cvar_xp_suicide;
new cvar_xp_kill;
new cvar_xp_teamkill;
new cvar_xp_assist;
new cvar_xp_headshot;
new cvar_xp_skill;
new cvar_xp_negation;
new cvar_xp_plant;
new cvar_xp_explode;
new cvar_xp_defuse;
new cvar_xp_round;
new cvar_xp_bomber;
new cvar_xp_planter;
new cvar_xp_defuser;
new cvar_xp_long_term;
new cvar_xp_short_term;
new cvar_xp_minplayers;
new cvar_xp_share_radius;

//---------------------------------------------------------------------

new Float:g_cs_speed_vip = 227.0;

new Float:g_cs_weapon_speed[31] =
{
	0.0,
	250.0,      // CSW_P228
	0.0,
	260.0,      // CSW_SCOUT
	250.0,      // CSW_HEGRENADE
	240.0,      // CSW_XM1014
	250.0,      // CSW_C4
	250.0,      // CSW_MAC10
	240.0,      // CSW_AUG
	250.0,      // CSW_SMOKEGRENADE
	250.0,      // CSW_ELITE
	250.0,      // CSW_FIVESEVEN
	250.0,      // CSW_UMP45
	210.0,      // CSW_SG550
	240.0,      // CSW_GALI
	240.0,      // CSW_FAMAS
	250.0,      // CSW_USP
	250.0,      // CSW_GLOCK18
	210.0,      // CSW_AWP
	250.0,      // CSW_MP5NAVY
	220.0,      // CSW_M249
	230.0,      // CSW_M3
	230.0,      // CSW_M4A1
	250.0,      // CSW_TMP
	210.0,      // CSW_G3SG1
	250.0,      // CSW_FLASHBANG
	250.0,      // CSW_DEAGLE
	235.0,      // CSW_SG552
	221.0,      // CSW_AK47
	250.0,      // CSW_KNIFE
	245.0       // CSW_P90
};

new Float:g_cs_weapon_speed_zoom[31] =
{
	0.0,
	0.0,
	0.0,
	220.0,      // CSW_SCOUT
	0.0,
	0.0,
	0.0,
	0.0,
	240.0,      // CSW_AUG
	0.0,
	0.0,
	0.0,
	0.0,
	150.0,      // CSW_SG550
	0.0,
	0.0,
	0.0,
	0.0,
	150.0,      // CSW_AWP
	0.0,
	0.0,
	0.0,
	0.0,
	0.0,
	150.0,      // CSW_G3SG1
	0.0,
	0.0,
	235.0,      // CSW_SG552
	0.0,
	0.0,
	0.0
};
