new zdrowie = get_user_health(pid);
new nowe_zdrowie = (zdrowie+totem_heal<maksymalne_zdrowie_gracza[pid])?zdrowie+totem_heal:maksymalne_zdrowie_gracza[pid];
if (is_user_alive(pid)) set_user_health(pid, nowe_zdrowie);
i zmieniłem na tą:
new zdrowie = get_user_health(pid);
new Float:nowe_zdrowie = (zdrowie+totem_heal<maksymalne_zdrowie_gracza[pid])?zdrowie+totem_heal+0.0:maksymalne_zdrowie_gracza[pid]+0.0;
if (is_user_alive(pid)) entity_set_float(pid, EV_FL_health, nowe_zdrowie);
Ale jest problem, dodaje hp jak nawet ma max zdrowia