/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <codmod>



new const perk_name[] = "Hp Plus";
new const perk_desc[] = "Dostajesz 150 HP";

new bool:ma_perk[33];

public plugin_init() 
{
	register_plugin(perk_name, "1.0", "Play");
	
	cod_register_perk(perk_name, perk_desc);
}
public cod_perk_enabled(id)
{
	cod_set_user_bonus_health(id, cod_get_user_health(id, 0, 0)+150);
	ma_perk[id] = true;
}

public cod_perk_disabled(id)
{
	cod_set_user_bonus_health(id, cod_get_user_health(id, 0, 0)-150);
	ma_perk[id] = false;
}