#include <amxmodx>
#include <fun>
#include <codmod>
#include <hamsandwich>
#include <engine>
new const perk_name[] = "Nanosuit";
new const perk_desc[] = "Jestes niewidoczny, masz 1 hp";
new bool:ma_perk[33];
public plugin_init()
{
register_plugin(perk_name, "1.0", "QTM_Peyote");

cod_register_perk(perk_name, perk_desc);
RegisterHam(Ham_Spawn, "player", "runda", 1)
}
public cod_perk_enabled(id)
{
ma_perk[id] = true;
}
public cod_perk_disabled(id)
{
ma_perk[id] = false;
set_rendering(id,kRenderFxNone, 0, 0, 0, kRenderTransAlpha, 255);
get_user_health (id);
}
public runda(id)
{
if(ma_perk[id])
{
set_user_health (id, 1);
set_rendering(id,kRenderFxNone, 0, 0, 0, kRenderTransAlpha, 5);
}
}