Mam takie cos
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <codmod> #include <hamsandwich> #include <colorchat> #define DMG_BULLET (1<<1) #define DMG_HE (1<<24) new bool:ma_klase[33]; new const nazwa[] = "Elitarny Sniper [P]"; new const opis[] = "Klasa premium, ma 1/1 szansy na zabicie z awp i 1/1 z noza mniejsza widocznosc z nozem o 40%; new const bronie = 1<<CSW_AWP | 1<<CSW_Scout | 1<<CSW_Deagle new const zdrowie = 35; new const kondycja = 100; new const inteligencja = 10; new const wytrzymalosc = 10; public plugin_init() { register_plugin(nazwa, "1.0", "QTM_Peyote"); cod_register_class(nazwa, opis, bronie, zdrowie, kondycja, inteligencja, wytrzymalosc); RegisterHam(Ham_TakeDamage, "player", "TakeDamage"); } public cod_class_enabled(id) { ColorChat(id, GREEN, "Klasa %s zostala stworzona przez www.PluginyMody.webd.pl.", nazwa); if(!(get_user_flags(id) & ADMIN_LEVEL_H)) { client_print(id, print_chat, "[%s] Nie masz uprawnien, aby uzywac tej klasy.", nazwa) return COD_STOP; } ma_klase[id] = true; return COD_CONTINUE; } 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(damagebits & DMG_BULLET) { new weapon = get_user_weapon(idattacker); if(weapon == CSW_AWP) cod_inflict_damage(idattacker, this, float(get_user_health(this))-damage+1.0, 0.0, idinflictor, damagebits); } if(get_user_weapon(idattacker) == CSW_KNIFE && damagebits & DMG_BULLET && damage > 20.0) cod_inflict_damage(idattacker, this, float(get_user_health(this))-damage+1.0, 0.0, idinflictor, damagebits); new weapon = get_user_weapon(idattacker); if(weapon == CSW_scout) cod_inflict_damage(idattacker, this, float(get_user_health(this))-damage+1.0, 0.0, idinflictor, damagebits); return HAM_IGNORED; } public client_PreThink(id) { if(!ma_klase[id]) return; if(get_user_weapon(id) == CSW_KNIFE) set_rendering(id,kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 10); else set_rendering(id,kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 255); }
co robie zle ?
jak ktos moglby mi to naprawic to link w zalaczniku