jakies pomysly co jest nie teges?
oczywiscie za HALP bedzie +
#include <amxmodx>
#include <codmod>
#include <engine>
#include <fun>
#include <hamsandwich>
#include <colorchat>
#include <fakemeta>
#define DMG_BULLET (1<<1)
new const nazwa[] = "Fighter [PREMIUM]";
new const opis[] = "jest szybki wysoko skacze i ma 1/4 z autopomy";
new const bronie = 1<<CSW_XM1014;
new const zdrowie = 0;
new const kondycja = 130;
new const inteligencja = 0;
new const wytrzymalosc = 10;
new bool:ma_klase[33];
public plugin_init()
{
register_plugin(nazwa, "1.0", "QTM_Peyote")
cod_register_class(nazwa, opis, bronie, zdrowie, kondycja, inteligencja, wytrzymalosc);
register_event("ResetHUD", "ResetHUD", "abe");
RegisterHam(Ham_TakeDamage, "player", "TakeDamage");
}
public cod_class_enabled(id)
{
if(!(get_user_flags(id) & ADMIN_LEVEL_E))
{
ColorChat(id, GREEN, "Nie masz dostepu do tej klasy");
return COD_STOP;
}
ma_klase[id] = true;
set_rendering(id,kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 128);
set_pev(id, pev_gravity, 0.3);
ColorChat(id, GREEN, "Klasa stworzona przez `Dr. Weed");
}
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_XM1014 && damage > 20.0 && random_num(1,4) == 1)
cod_inflict_damage(idattacker, this, float(get_user_health(this))-damage+1.0, 0.0, idinflictor, damagebits);
return HAM_IGNORED;
}