#include <amxmodx>
#include <hamsandwich>
#include <cstrike>
#include <fakemeta_util>

#define PLUGIN "n21_Deathrun_Free"
#define VERSION "1.0"
#define AUTHOR "Psycrow"

new bool:in_free

public plugin_init()
{
	register_plugin(PLUGIN, VERSION, AUTHOR)
	
	register_logevent("NewRound", 2, "1=Round_Start")
	RegisterHam(Ham_Use,"func_button","UseButton",0)
}

public NewRound()
	in_free = false

public set_free(id)
	in_free = true

public UseButton(ent, id, idactivator, use_type, Float:value)
{
	if(in_free && cs_get_user_team(id) == CS_TEAM_T)
		return HAM_SUPERCEDE  
		
	return HAM_IGNORED   
}
