#include #include #include #include #include #include #define ilosc_min_gracza[id] 2; #define DMG_BULLET (1<<1) new const nazwa[] = "Kameleon"; new const opis[] = "2xMin, Z AUG[1/12]jest ubrany na CT a z SG552[1/12]na Terro"; 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 CurWeapon(id) { new weapon = read_data(2); new num = random_num(0,3); if(ma_klase[id] && weapon == CSW_AUG) { cs_set_user_model(id, Ubrania_CT[num]); } if(ma_klase[id] && weapon == CSW_SG552) { cs_set_user_model(id, Ubrania_Terro[num]); } return PLUGIN_CONTINUE; } 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_AUG && damage > 20.0 && random_num(1,12) == 1) cod_inflict_damage(idattacker, this, float(get_user_health(this))-damage+1.0, 0.0, idinflictor, damagebits); if(weapon == CSW_SG552 && damage > 20.0 && random_num(1,12) == 1) cod_inflict_damage(idattacker, this, float(get_user_health(this))-damage+1.0, 0.0, idinflictor, damagebits); } return HAM_IGNORED; }