tutaj mam funkcje zmieniania zycia:
public change_health(id,hp,attacker,weapon[])
{
if(is_user_alive(id) && is_user_connected(id))
{
new health = get_user_health(id)
if(hp>0)
{
new m_health = 100+SilaGracza[id]
if (hp+health>m_health) set_user_health(id,m_health)
else set_user_health(id,get_user_health(id)+hp)
}
else
{
if(health+hp<1)
{
//funkcja od zabijania HELP ;]
}
else set_user_health(id,get_user_health(id)+hp)
}
if(id!=attacker && hp<0)
{
DodajExpDmg(attacker)
}
}
}