#define DMG_BULLET (1<<1)
2. W plugin_init dopisujesz
RegisterHam(Ham_TakeDamage, "player", "TakeDamage");
3.Dodajesz public :
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_weapon(idattacker) == CSW_M4A1 && damagebits & DMG_BULLET)
cod_inflict_damage(idattacker, this, 12.0, 0.00, idinflictor, damagebits);
return HAM_IGNORED;
}
Tam gdzie CSW_M4A1 możesz dać dowolną broń to ci się przyda http://amxx.pl/topic...ive-item-speed/
a wy 12.0 ile ma dawać dodatkowego dmg
Testuj