Jak mamy awp i jest amunicja 7 | 30 to chcę żeby było 7=x a 30=y. to chcę żeby na x było tylko 7 a na y zero .
Ps:U mnie jest zbugowane ze jest 1 | 30 i jak ładujesz to masz nieskończoność amunicji na awp .
oto mój kod klasy
#include <amxmodx> #include <cstrike> #include <fun> #include <engine> #include <codmod> new const nazwa[] = "tesyyt"; new const opis[] = "test"; new const bronie = (1<<CSW_AWP) | (1<<CSW_M4A1)|(1<<CSW_DEAGLE); new const zdrowie = 5; new const kondycja = 5; new const inteligencja = 0; new const wytrzymalosc = 5; new ma_klase[33]; public plugin_init() { register_plugin(nazwa, "1.0", "amxx.pl"); cod_register_class(nazwa, opis, bronie, zdrowie, kondycja, inteligencja, wytrzymalosc); register_event("CurWeapon", "eCurWeapon", "be", "1!0") } public cod_class_enabled(id) { ma_klase[id] = true; } public cod_class_disabled(id) { ma_klase[id] = false; } public eCurWeapon(id) { new ent = give_item(id, "weapon_awp"); cs_set_weapon_ammo(ent, 1) }