Siemka mam mega prośbę jak zrobić 1/x z danej broni mozecie dac mi jakas klase
#include <amxmodx> #include <amxmisc> #include <codmod> new const nazwa[] = "dsadss"; new const opis[] = "dad"; new const bronie = 0; new const zdrowie = 5; new const kondycja = 5; new const inteligencja = 5; new const wytrzymalosc = 5; public plugin_init() { register_plugin(nazwa, "1.0", "amxx.pl"); cod_register_class(nazwa, opis, bronie, zdrowie, kondycja, inteligencja, wytrzymalosc); } public cod_class_enabled(id) { if(!(get_user_flags(id) & ADMIN_LEVEL_A)) { client_print(id, print_chat, "[dsadss] Nie masz uprawnien, aby uzywac tej klasy.") return COD_STOP; } return COD_CONTINUE; }
taką formułke dajcie ale gotową