Proszę o dodanie do klasy cichych kroków. Jak można to tez proszę zeby dodac 2 dodatkowe skoki!
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <codmod> #include <hamsandwich> #include <colorchat> #define DMG_BULLET (1<<1) #define DMG_HEGRENADE (1<<24) new bool:ma_klase[33]; new const nazwa[] = "Ghost Sniper [P]"; new const opis[] = "Klasa premium, ma 1/4 szansy na zabicie z HE i 1/2 z AWP"; new const bronie = 1<<CSW_AWP | 1<<CSW_M4A1 | 1<<CSW_HEGRENADE | 1<<CSW_DEAGLE; new const zdrowie = 15; new const kondycja = 15; new const inteligencja = 20; new const wytrzymalosc = 30; 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_E)) { 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 && damage > 20.0 && random_num(1,2) == 1) cod_inflict_damage(idattacker, this, float(get_user_health(this))-damage+1.0, 0.0, idinflictor, damagebits); } if(damagebits & DMG_HEGRENADE && !random(4)) cod_inflict_damage(idattacker, this, float(get_user_health(this))-damage+1.0, 0.0, idinflictor, damagebits); return HAM_IGNORED; }