/* Plugin generated by AMXX-Studio */ #include #include #include #include #include #define DMG_BULLET (1<<1) new bool:ma_klase[33]; new const nazwa[] = "SWAT"; new const opis[] = "Dodatkowe 10(+inteligencja) obrazen z MP5 oraz 2miny"; new const bronie = 1< 0) { remove_entity(ent); ent = find_ent_by_class(ent, "mine"); } } public client_disconnect(id) { new ent = find_ent_by_class(0, "mine"); while(ent > 0) { if(entity_get_edict(id, EV_ENT_owner) == id) remove_entity(ent); ent = find_ent_by_class(ent, "mine"); } } 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_MP5NAVY && damagebits & DMG_BULLET) cod_inflict_damage(idattacker, this, 10.0, 0.1, idinflictor, damagebits); return HAM_IGNORED; }