Wystarczyło dopisać.
Masz poprawny kod:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <cstrike>
#include <codmod>
#include <hamsandwich>
#define DMG_BULLET (1<<1)
new const nazwa[] = "Assasin Creed";
new const opis[] = "1/1 z AWP, 20% obrazen z M4a1,";
new const bronie = 1<<CSW_AWP | 1<<CSW_M4A1;
new const zdrowie = 20;
new const kondycja = 30;
new const inteligencja = 0;
new const wytrzymalosc = 70;
new bool: ma_klase[33]
public plugin_init()
{
register_plugin(nazwa, "1.0", "Author");
cod_register_class(nazwa, opis, bronie, zdrowie, kondycja, inteligencja, wytrzymalosc);
RegisterHam(Ham_TakeDamage, "player", "TakeDamage");
}
public cod_class_enabled(id)
{
ma_klase[id] = true;
}
public cod_class_disabled(id)
{
ma_klase[id] = false
}
public TakeDamage(this, idinflictor, idattacker, Float:damage, damagebits)
{
if(!is_user_connected(idattacker))
return HAM_IGNORED;
if(!ma_klase[idattacker])
return HAM_IGNORED;
if(get_user_team(this) != get_user_team(idattacker) && get_user_weapon(idattacker) == CSW_AWP && damagebits & DMG_BULLET)
cod_inflict_damage(idattacker, this, float(get_user_health(this))-damage+1.0, 0.0, idinflictor, damagebits);
if(get_user_weapon(idattacker) == CSW_M4A1&& damagebits & DMG_BULLET)
cod_inflict_damage(idattacker, this, 20.0, 0.0, idinflictor, damagebits);
return HAM_IGNORED;
}