/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <codmod>

new const perk_name[] = "Moc Obalajaca";
new const perk_desc[] = "Dostajesz +60 hp tracisz 20 kondycji";

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)
{
	ma_perk[id] = true;
	cod_set_user_bonus_trim(id, cod_get_user_trim(id, 0, 0)-20);
	cod_set_user_bonus_health(id, cod_get_user_health(id, 0, 0)+60);
}

public cod_perk_disabled(id)
{
	ma_perk[id] = false;	
	cod_set_user_bonus_trim(id, cod_get_user_trim(id, 0, 0)+20);
	cod_set_user_bonus_health(id, cod_get_user_health(id, 0, 0)-60);
}


/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1045\\ f0\\ fs16 \n\\ par }
*/
