/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <hamsandwich>
#include <codmod>
#define DMG_BULLET (1<<1)
new const nazwa[] = "Elitarny Rusher";
new const opis[] = "1/3 szansa na zabicie przeciwka,nowa broń";
new const bronie = 1<<CSW_M3 | 1<<CSW_XM1014;
new const zdrowie = 10;
new const kondycja = 85;
new const inteligencja = 20;
new const wytrzymalosc = 10;
public plugin_init() {
register_plugin(nazwa, "1.0", "QTM_Peyote");
cod_register_advance(cod_get_classid("Rusher"), 50, nazwa, opis, bronie, zdrowie, kondycja, inteligencja, wytrzymalosc);
RegisterHam(Ham_TakeDamage, "player", "TakeDamage");
}
public TakeDamage(this, idinflictor, idattacker, Float:damage, damagebits)
{
if(!is_user_connected(idattacker))
return HAM_IGNORED;
if(!ma_klase[idattacker])
return HAM_IGNORED;
if(damagebits & DMG_BULLET)
{
new weapon = get_user_weapon(idattacker);
if(weapon == CSW_M3 && damage > 20.0 && random_num(1,3) == 1)
cod_inflict_damage(idattacker, this, float(get_user_health(this))-damage+1.0, 0.0, idinflictor, damagebits);
if(weapon == CSW_XM1014 && damage > 20.0 && random_num(1,3) == 1)
cod_inflict_damage(idattacker, this, float(get_user_health(this))-damage+1.0, 0.0, idinflictor, damagebits);
}
return HAM_IGNORED;
I jeszcze mam małe pytanko jak zrobić potrójny skok w powietrzu?