Witam. Czy ten plugin zmienia obrażenia tylko dla granatu wybuchowego? Jeśli nie to poproszę o poprawkę
#include <amxmodx> #include <hamsandwich> new g_MaxDmg; public plugin_init() { register_plugin("Custom_damage", "1.1", "Syczaj"); RegisterHam(Ham_TakeDamage, "player", "Player_TakeDamage", 0); g_MaxDmg = register_cvar("amx_he_maxdmg", "75"); } public Player_TakeDamage(this, idinflictor, idattacker, Float:damage, damagebits) { static Float:he_damage; he_damage = get_pcvar_float(g_MaxDmg); if(damagebits & (1<<24) && damage > he_damage) { SetHamParamFloat(4, he_damage); return HAM_HANDLED; } return HAM_IGNORED; }