Mam mały problem otóż udało mi się ustawić DMG z noża na taki jaki chciałem
tutaj .sma
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #include <hamsandwich> #define PLUGIN "More knife" #define VERSION "1.0" #define AUTHOR "peku33" public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR); RegisterHam(Ham_TakeDamage, "player", "TakeDamage") } public TakeDamage(victim, entity, attacker, Float:damage, damagebits) { if(is_user_connected(attacker) && is_user_connected(victim)) { if(get_user_weapon(attacker) == 29) { SetHamParamFloat(4, damage * 1.2); } return HAM_OVERRIDE; } return HAM_IGNORED; }
ale mam problem z dodaniem flagi żeby to działało tylko dla tych którzy mają daną flagę, chodzi mi o tą flagę " ADMIN_LEVEL_H " .. mógłby mi ktoś pomóc z tym kodem ? i napisać jak mam to dodać ? Próbowałem 3x swoimi sposobami i nic.