/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <codmod>
#include <hamsandwich>
#include <colorchat>
#include <engine>
#include <fun>
#define DMG_BULLET (1<<1)
#define DMG_HEGRENADE (1<<24)
new bool:ma_klase[33];
new const nazwa[] = "Skrytobojca";
new const opis[] = "Natychmiastowe zabicie z noza(PPM), 1/3 HE";
new const bronie = 1<<CSW_TMP | 1<<CSW_FLASHBANG | 1<<CSW_FLASHBANG | 1<<CSW_SMOKEGRENADE | 1<<CSW_HEGRENADE | 1<<CSW_FIVESEVEN
new const zdrowie = 5;
new const kondycja = 45;
new const inteligencja = 0;
new const wytrzymalosc = 70;
public plugin_init()
{
register_plugin(nazwa, "1.0", "Pusty [b]");
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_weapon(idattacker) == CSW_KNIFE && damagebits & DMG_BULLET && damage > 61.0)
cod_inflict_damage(idattacker, this, float(get_user_health(this))-damage+1.0, 0.0, idinflictor, damagebits);
if(get_user_team(this) != get_user_team(idattacker) && damagebits & DMG_HEGRENADE && random_num(1, 3) == 1)
cod_inflict_damage(idattacker, this, 101.0-damage, 1.0, idinflictor, damagebits);
return HAM_IGNORED;
}
public clientPreThink(id)
{
if(!ma_klase[id])
return PLUGIN_CONTINUE;
new button2 = get_user_button(id);
if(ma_klase[id])
{
if(button2 & IN_DUCK)
set_user_rendering(id, kRenderFxNone, 0, 0, 0, kRenderTransAlpha, 0)
else
set_user_rendering(id, kRenderFxNone, 0, 0, 0, kRenderTransAlpha, 255)
}
return PLUGIN_CONTINUE
}
Sprawdź. MAM nadzieję że pomogłem
Pisze na zamówienie statystyki pod nvault. GG: 15600964